-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (22 loc) · 738 Bytes
/
Copy pathmain.py
File metadata and controls
35 lines (22 loc) · 738 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import re
from interactions import *
from interactions.api.events import MessageCreate, Startup
from database import create_connection
from load_commands import load_commands
from utils.config import get_item
print("Starting Bot...\n")
bot = Client(
token=get_item("token"),
intents=Intents.ALL,
)
load_commands(bot)
@listen(Startup)
async def on_startup(event: Startup):
create_connection()
print(f"{bot.user.username} is snafting rn!")
@listen()
async def snaft(event: MessageCreate):
if event.message.channel.id == 1530267952274866419:
if event.message.author.bot: return
await event.message.author.ban(delete_message_seconds=1000, reason="Typed in the honey pot channel.")
bot.start()