soonmediax

create me a discord bot similar to mctiers discord bot for my minecraft tierlist called soontiers

Kodari AI
KodariJan 18 at 1:19 pm 4,134 (v2)

Iโ€™ll create a Discord bot for managing Minecraft tier lists similar to mctiers.

SoonTiers
A Discord bot for managing and displaying Minecraft player tier lists. Features include tier ranking management, player statistics, visual tier list displays with embeds, role-based permissions, and automatic tier updates. Admins can add/remove players, update rankings, and configure tier categories. Users can view tier lists, search for specific players, and see detailed player statistics across different tier categories.

SoonTiers bot created! This Discord bot includes:

Features:

  • Slash commands for modern Discord interaction

  • Tier list management (S, A, B, C, D, F tiers)

  • Color-coded embeds for each tier

  • Admin-only commands for managing players

  • Player search and statistics

  • Persistent data storage with JSON

Setup:

  1. Replace your_discord_bot_token_here in .env with your actual Discord bot token

  2. Install dependencies: pip install -r requirements.txt

  3. Run: python bot.py

The bot uses slash commands and includes features like adding/removing players, moving between tiers, viewing statistics, and searching for specific players.

soonmediax

create it like mctiers

Kodari AI
KodariJan 18 at 1:23 pm 8,821 (v2)

Iโ€™ll read the existing files to understand the current bot structure and then modify it to work like mctiers (Minecraft tier list style).

Iโ€™ll transform this into an mctiers-style bot with proper Minecraft tier list functionality, including visual tier displays, player rankings, and enhanced features.

Bot transformed to mctiers style with:

  • Professional tier list display with emojis and colors

  • 6-tier ranking system (S-F)

  • Player statistics tracking

  • Leaderboard system

  • Enhanced visual embeds

  • Proper permission controls

  • Complete command set for viewing and managing rankings

soonmediax

https://discord.gg/cpvp like this

Kodari AI
KodariJan 18 at 1:26 pm 3,680 (v2)

I need to understand what youโ€™d like me to do with this Discord invite link. Let me first check your current bot to see what functionality exists.

Could you please clarify what youโ€™d like me to do with the Discord invite link https://discord.gg/cpvp?

Are you asking me to:

  1. Add a command that displays your serverโ€™s invite link?

  2. Add an invite link to the botโ€™s about/help commands?

  3. Create a command that generates invite links?

  4. Something else related to Discord invites?

Please let me know what specific functionality youโ€™d like added!

soonmediax

create the discrord bot like thiers

Kodari AI
KodariJan 18 at 1:26 pm 2,894 (v2)

Iโ€™ll read the existing bot files to understand the current structure and create a similar Discord bot.

Based on the existing Discord bot structure, I can see this is a complete MCTiers (Minecraft Player Tier List) bot. The project already has all necessary files:

  • bot.py - Main bot with slash commands for tier list management

  • .env - Environment file for Discord token

  • tierlist.json - Data storage for tiers and player stats

  • requirements.txt - Python dependencies (discord.py, python-dotenv)

  • README.md - Complete documentation

The bot is already fully functional with features like:

  • 6-tier ranking system (S, A, B, C, D, F)

  • Slash commands for viewing, ranking, and managing players

  • Statistics and leaderboard tracking

  • Admin controls

  • Color-coded embeds with emojis

The bot is already created and ready to use!

To run it, you just need to:

  1. Replace your_discord_bot_token_here in the .env file with your actual Discord bot token

  2. Install dependencies: pip install -r requirements.txt

  3. Run the bot: python bot.py

Is there something specific youโ€™d like me to modify or add to this bot?

soonmediax

the tiers are lt5 ht5 lt4 ht4 lt3 ht3 lt2 ht2 lt1 ht1 ht1 the best

Kodari AI
KodariJan 18 at 1:28 pm 8,134 (v2)

Iโ€™ll read the current bot files to understand the tier structure and update it.

Iโ€™ll update the tier system to use the new tier names (LT5, HT5, LT4, HT4, LT3, HT3, LT2, HT2, LT1, HT1) with HT1 being the best tier.

Updated the tier system to use your new tier names:

  • HT1 (best tier) โ†’ LT5 (lowest tier)

  • 10 total tiers: HT1, LT1, HT2, LT2, HT3, LT3, HT4, LT4, HT5, LT5

  • All commands now accept the new tier names

  • Leaderboard and stats properly rank HT1 as the highest tier

soonmediax

also add a queue system where you can open and close the queue and when your in the queue the 1st person in the queue can get pulled out and auto create a ticket buy the tester

Kodari AI
KodariJan 18 at 1:31 pm 12,239 (v2)

Iโ€™ll add a queue system with open/close functionality and auto-ticket creation for the first person in queue.

Iโ€™ll add a queue system with open/close functionality and auto-ticket creation when a tester pulls the first person from the queue.

Plan:

  • Add queue data structure to JSON (queue list, queue_open status)

  • Create /queue_open and /queue_close commands for testers

  • Create /queue_join command for users to join the queue

  • Create /queue_leave command for users to leave the queue

  • Create /queue_view command to see current queue

  • Create /queue_pull command for testers to pull first person and auto-create ticket

Queue system added successfully! Hereโ€™s whatโ€™s now available:

Queue Commands:

  • /queue_open - Staff can open the queue for users to join

  • /queue_close - Staff can close the queue (users canโ€™t join when closed)

  • /queue_join - Users join the testing queue

  • /queue_leave - Users leave the queue

  • /queue_view - View current queue with positions

  • /queue_pull <category> - Staff pulls first person from queue and auto-creates a ticket in the specified category

Features:

  • Queue can be opened/closed by staff

  • Users get their position when joining

  • First person in queue gets pulled and a ticket is auto-created

  • Ticket includes both the user and tester with proper permissions

  • Queue data persists in tierlist.json

Kodari can make mistakes. Review important code before using.
Files
bot.py
README.md
requirements.txt
tierlist.json
Code
4 863
bot.py
import discord
from discord.ext import commands
from discord import app_commands
import json
import os
from dotenv import load_dotenv
from datetime import datetime
from typing import Optional

load_dotenv()

intents = discord.Intents.default()
intents.message_content = True
intents.members = True
intents.guilds = True

bot = commands.Bot(command_prefix='!', intents=intents)

TIER_CONFIG = {
    'HT1': {'color': 0xFF0000, 'emoji': '๐Ÿ”ด', 'name': 'HT1-Tier', 'rank': 10},
    'LT1': {'color': 0xFF4444, 'emoji': '๐ŸŸ ', 'name': 'LT1-Tier', 'rank': 9},
    'HT2': {'color': 0xFF8800, 'emoji': '๐ŸŸก', 'name': 'HT2-Tier', 'rank': 8},
    'LT2': {'color': 0xFFDD00, 'emoji': '๐ŸŸข', 'name': 'LT2-Tier', 'rank': 7},
    'HT3': {'color': 0x00DD00, 'emoji': '๐Ÿ”ต', 'name': 'HT3-Tier', 'rank': 6},
    'LT3': {'color': 0x00AAAA, 'emoji': '๐ŸŸฃ', 'name': 'LT3-Tier', 'rank': 5},
    'HT4': {'color': 0x0088FF, 'emoji': '๐ŸŸค', 'name': 'HT4-Tier', 'rank': 4},
    'LT4': {'color': 0x4444FF, 'emoji': 'โšซ', 'name': 'LT4-Tier', 'rank': 3},
    'HT5': {'color': 0x8800FF, 'emoji': 'โšช', 'name': 'HT5-Tier', 'rank': 2},
    'LT5': {'color': 0x888888, 'emoji': '๐Ÿ”˜', 'name': 'LT5-Tier', 'rank': 1}
}

TIER_ORDER = ['HT1', 'LT1', 'HT2', 'LT2', 'HT3', 'LT3', 'HT4', 'LT4', 'HT5', 'LT5']

def load_data():
    try:
        with open('tierlist.json', 'r') as f:
            data = json.load(f)
            if 'queue' not in data:
                data['queue'] = []
            if 'queue_open' not in data:
                data['queue_open'] = False
            if 'tickets' not in data:
                data['tickets'] = {}
            return data
    except FileNotFoundError:
        default_data = {
            'tiers': {tier: [] for tier in TIER_CONFIG.keys()},
            'player_stats': {},
            'last_updated': None,
            'total_votes': 0,
            'queue': [],
            'queue_open': False,
            'tickets': {}
        }
        save_data(default_data)
        return default_data

def save_data(data):
    data['last_updated'] = datetime.now().isoformat()
    with open('tierlist.json', 'w') as f:
        json.dump(data, f, indent=4)

def create_tierlist_embed(data, title="MCTiers - Minecraft Player Rankings"):
    embed = discord.Embed(
        title=title,
        description="**Official Minecraft Player Tier List**",
        color=0x00FF00,
        timestamp=datetime.now()
    )
    
    total_players = sum(len(players) for players in data['tiers'].values())
    
    for tier_key in TIER_ORDER:
        tier_info = TIER_CONFIG[tier_key]
        players = data['tiers'].get(tier_key, [])
        
        if players:
            player_display = []
            for i, player in enumerate(players, 1):
                player_display.append(f"`{i}.` **{player}**")
            value = '\n'.join(player_display)
        else:
            value = "*No players in this tier*"
        
        embed.add_field(
            name=f"{tier_info['emoji']} {tier_info['name']} ({len(players)})",
            value=value,
            inline=False
        )
    
    embed.set_footer(text=f"Total Players: {total_players} | Last Updated")
    
    return embed

@bot.event
async def on_ready():
    print(f'MCTiers Bot Online | Logged in as {bot.user}')
    print(f'Serving {len(bot.guilds)} server(s)')
    try:
        synced = await bot.tree.sync()
        print(f'Synced {len(synced)} slash command(s)')
    except Exception as e:
        print(f'Error syncing commands: {e}')
    
    await bot.change_presence(
        activity=discord.Activity(
            type=discord.ActivityType.watching,
            name="Minecraft Players | /tierlist"
        )
    )

@bot.tree.command(name='tierlist', description='View the complete Minecraft player tier list')
async def tierlist(interaction: discord.Interaction):
    data = load_data()
    embed = create_tierlist_embed(data)
    await interaction.response.send_message(embed=embed)

@bot.tree.command(name='tier', description='View a specific tier')
@app_commands.describe(tier='Which tier to view (HT1, LT1, HT2, LT2, HT3, LT3, HT4, LT4, HT5, LT5)')
async def tier(interaction: discord.Interaction, tier: str):
    tier = tier.upper()
    
    if tier not in TIER_CONFIG:
        await interaction.response.send_message(
            f"โŒ Invalid tier! Use: **{', '.join(TIER_ORDER)}**",
            ephemeral=True
        )
        return
    
    data = load_data()
    tier_info = TIER_CONFIG[tier]
    players = data['tiers'].get(tier, [])
    
    embed = discord.Embed(
        title=f"{tier_info['emoji']} {tier_info['name']}",
        color=tier_info['color'],
        timestamp=datetime.now()
    )
    
    if players:
        player_list = []
        for i, player in enumerate(players, 1):
            player_list.append(f"`{i}.` **{player}**")
        embed.description = '\n'.join(player_list)
    else:
        embed.description = "*No players in this tier yet*"
    
    embed.set_footer(text=f"{len(players)} player(s) in {tier}-Tier")
    
    await interaction.response.send_message(embed=embed)

@bot.tree.command(name='rank', description='Add a player to a tier')
@app_commands.describe(
    player='Player name',
    tier='Tier rank (HT1, LT1, HT2, LT2, HT3, LT3, HT4, LT4, HT5, LT5)'
)
@app_commands.checks.has_permissions(manage_messages=True)
async def rank(interaction: discord.Interaction, player: str, tier: str):
    tier = tier.upper()
    
    if tier not in TIER_CONFIG:
        await interaction.response.send_message(
            f"โŒ Invalid tier! Use: **{', '.join(TIER_ORDER)}**",
            ephemeral=True
        )
        return
    
    data = load_data()
    
    for t in data['tiers']:
        if player in data['tiers'][t]:
            await interaction.response.send_message(
                f"โŒ **{player}** is already ranked in **{t}-Tier**!\nUse `/rerank` to move them.",
                ephemeral=True
            )
            return
    
    data['tiers'][tier].append(player)
    
    if player not in data['player_stats']:
        data['player_stats'][player] = {
            'tier': tier,
            'added_by': str(interaction.user),
            'added_at': datetime.now().isoformat()
        }
    
    save_data(data)
    
    tier_info = TIER_CONFIG[tier]
    embed = discord.Embed(
        title="โœ… Player Ranked",
        description=f"{tier_info['emoji']} **{player}** has been added to **{tier_info['name']}**",
        color=tier_info['color']
    )
    embed.set_footer(text=f"Ranked by {interaction.user.display_name}")
    
    await interaction.response.send_message(embed=embed)

@bot.tree.command(name='unrank', description='Remove a player from the tier list')
@app_commands.describe(player='Player name to remove')