import discord from discord.ext import commands from cogs.minecraft import Minecraft from cogs.user_management import UserManager # Setup Environment import os from dotenv import load_dotenv load_dotenv() # Discord Stuff TOKEN = os.environ['TOKEN'] # Server Stuff RCON_SERVER = os.environ['RCON_SERVER'] RCON_PASS = os.environ['RCON_PASS'] RCON_PORT = int(os.environ['RCON_PORT']) # Setup Basic Permission intents = discord.Intents.default() intents.message_content = True # Define the actual Bot bot = commands.Bot(command_prefix='-', intents=intents) async def setup(): await bot.add_cog(Minecraft(bot, RCON_SERVER, RCON_PASS, RCON_PORT)) await bot.add_cog(UserManager(bot)) @bot.event async def on_ready(): await setup() bot.run(TOKEN)