things
This commit is contained in:
commit
5fc9fd0171
5 changed files with 70 additions and 0 deletions
16
backend/bot/main.py
Normal file
16
backend/bot/main.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
import discord
|
||||
import discord.types
|
||||
from dotenv import load_dotenv
|
||||
import os
|
||||
load_dotenv()
|
||||
|
||||
class Client(discord.Client):
|
||||
async def on_ready(self):
|
||||
print("Logged in as", self.user)
|
||||
|
||||
async def on_message(self, message: discord.Message):
|
||||
if message.channel.id not in [1156349646965325824, 1299351968443142228] or message.type != discord.MessageType.auto_moderation_action:
|
||||
return
|
||||
|
||||
client = Client()
|
||||
client.run(os.environ["TOKEN"])
|
Loading…
Add table
Add a link
Reference in a new issue