sox/classes/bot.py

18 lines
552 B
Python

from disnake.ext import commands
import disnake
import dotenv
import os
dotenv.load_dotenv()
class MyBot(commands.InteractionBot):
def __init__(self):
super().__init__(intents=disnake.Intents.all())
async def on_message(self, message: disnake.Message):
if "rewrite" in message.content.lower() and "rust" in message.content.lower() and message.guild.id == int(os.environ["FUN_GUILD"]):
await message.channel.send("never, stop asking")
async def on_ready(self):
print(f"logged in as {str(self.user)}")