import discord from discord.ext import commands from dotenv import load_dotenv import os load_dotenv() class Vaius(commands.Bot): async def on_ready(self): print(f"Logged in as {self.user.name}") async def on_message(self, message: discord.Message): if (message.guild and message.guild.id != 1362175947612098892) and message.channel.id != 1363685774800978074: return ctx = await self.get_context(message) if ctx.valid: await self.invoke(ctx) client = Vaius(command_prefix="v", user_bot=True, chunk_guilds_at_startup=False) @client.command() async def ping(ctx): await ctx.reply("Pong!") client.run(os.getenv("TOKEN"))