import discord import os from os import system from os import environ from discord.ext import commands intents = discord.Intents( guilds=True, members=True, messages=True, ) token = os.environ['TOKEN'] prefix = os.environ['PREFIX'] bot = commands.Bot(intents=intents, command_prefix=prefix) client = discord.Client() @bot.event async def on_ready(): print("Bot ready on Version %s..." % discord.__version__) bot.run(token)