-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbot.py
More file actions
35 lines (27 loc) · 670 Bytes
/
bot.py
File metadata and controls
35 lines (27 loc) · 670 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 discord
import os
from dotenv import load_dotenv
load_dotenv()
intents = discord.Intents.default()
intents.message_content = True
intents.members = True
status = discord.Status.online
activity = discord.Activity(
type=discord.ActivityType.watching,
name="https://www.twitch.tv/nurnemo_"
)
bot = discord.Bot (
intents=intents,
debug_guilds=[1223748094886412420],
status=status,
activity=activity
)
@bot.event
async def on_ready():
print(f"{bot.user} ist online!")
# LOAD COGS
for file in os.listdir("./cogs"):
if file.endswith(".py"):
bot.load_extension(f"cogs.{file[:-3]}")
load_dotenv()
bot.run(os.getenv("Token"))