sinnalwayssimle

Create me a discord bot like mctiers but name StrikeTiers here the link pls research and you also see the image i sent you too have verify account minecraft and for button enter waitlist have enter ign , region , gamemode , preffer server and you can see the result image i sent to you but add gamemode in it the skin player maybe you know and have All Time Testing Leaderboard and commands for like for result /result userdiscord ign previous earned gamemode notes like that for command commands open queue /queue open for /queue close and have queue status and /leaderboard and queuelist /setpeaktier /next for next player test only can use for tester what tester can use have /result /leaderbaord /setpeaktier /next /queue open /queue close /queue status and i build python bot for cooldown test 14days and command to add tester is /tester add discorduser and more pls research thanks

5 images attached
Kodari AI
KodariMay 1 at 11:13 am 21,569 (v2)
StrikeTiers
A Discord bot inspired by MCTiers for managing Minecraft PvP tier evaluations. Features Minecraft account verification via Mojang API, a waitlist system with IGN/region/gamemode/server info, a live queue with real-time Join/Leave buttons, 14-day test cooldowns, tester-only commands (/next, /result, /setpeaktier, /queue open/close/status), all-time and monthly testing leaderboards, player skin display in results, and full tester management via /tester add/remove.

Here’s my plan:

  • main.py — Bot entry with setup_hook to load all cogs and re-register persistent views

  • utils/data.py — JSON load/save helpers for all data files

  • cogs/verify.py — Waitlist embed with Verify Account / Enter Waitlist / View Cooldown buttons + Mojang API verification

  • cogs/queue.py — /queue open/close/status, /queuelist, /next, live queue embed with Join/Leave buttons + 5-second background updater

  • cogs/results.py — /result command posting skin embed, logging results, setting 14-day cooldown

  • cogs/leaderboard.py — /leaderboard all-time + monthly

  • cogs/admin.py — /tester add/remove, /setpeaktier

Here’s a summary of everything built:


StrikeTiers Bot — Setup Guide

1. Install dependencies

Shell
pip install -r requirements.txt

2. Configure .env

Replace your_discord_bot_token_here with your bot token.

3. Configure config.json

Fill in your server’s IDs:

Key
Description
guild_id
Your server ID
tester_role_id
Role given to testers
verified_role_id
Role given on Minecraft verify
queue_channel_id
Channel where queue embed posts
results_channel_id
Channel where results post
waitlist_log_channel_id
Channel to log waitlist entries

4. Run the bot

Shell
python main.py

5. Post the waitlist embed

Use /setup_waitlist in any channel (requires Administrator).


Command Reference

Command
Who
Description
/setup_waitlist
Admin
Posts the verify/waitlist embed with 3 buttons
/queue open
Tester
Opens queue, posts live embed with Join/Leave
/queue close
Tester
Closes queue, clears all entries
/queue status
Anyone
Shows open/closed + player count
/queuelist
Anyone
Shows full queue with IGN/region/gamemode
/next
Tester
Pings next player, removes from queue
/result @user ign region gamemode prev rank_earned [notes]
Tester
Posts result embed with skin, sets 14-day cooldown
/leaderboard
Anyone
All-time + monthly tester leaderboard
/setpeaktier @user tier
Tester
Sets a player’s peak tier
/tester add @user
Admin
Adds tester + grants tester role
/tester remove @user
Admin
Removes tester + removes role
/tester list
Admin
Lists all registered testers
sinnalwayssimle

bro add all channel id so it auto log and auto roles when tester submit and auto reaction like mctiers and more pls

Kodari can make mistakes. Review important code before using.
Files
cogs
utils
config.json
main.py
requirements.txt
Code
11 1,051
main.py
import discord
from discord.ext import commands
import os
import logging
from dotenv import load_dotenv

load_dotenv()

logging.basicConfig(
    level=logging.INFO,
    format="%(asctime)s [%(levelname)s] %(name)s: %(message)s",
)
logger = logging.getLogger("StrikeTiers")


class StrikeTiersBot(commands.Bot):
    def __init__(self):
        intents = discord.Intents.all()
        super().__init__(command_prefix="!", intents=intents, help_command=None)

    async def setup_hook(self):
        cogs = [
            "cogs.verify",
            "cogs.queue",
            "cogs.results",
            "cogs.leaderboard",
            "cogs.admin",
        ]
        for cog in cogs:
            await self.load_extension(cog)
            logger.info(f"Loaded cog: {cog}")

        await self.tree.sync()
        logger.info("Slash commands synced.")

    async def on_ready(self):
        logger.info(f"StrikeTiers bot ready! Logged in as {self.user} (ID: {self.user.id})")
        await self.change_presence(
            activity=discord.Activity(type=discord.ActivityType.watching, name="Tier Evaluations")
        )

    async def on_app_command_error(self, interaction: discord.Interaction, error: discord.app_commands.AppCommandError):
        msg = "An error occurred while running this command."
        if isinstance(error, discord.app_commands.MissingPermissions):
            msg = "❌ You don't have permission to use this command."
        elif isinstance(error, discord.app_commands.CommandOnCooldown):
            msg = f"⏳ This command is on cooldown. Try again in {error.retry_after:.1f}s."
        logger.error(f"Command error in {interaction.command}: {error}")
        if not interaction.response.is_done():
            await interaction.response.send_message(msg, ephemeral=True)
        else:
            await interaction.followup.send(msg, ephemeral=True)


bot = StrikeTiersBot()
bot.run(os.getenv("DISCORD_TOKEN"))