-
Notifications
You must be signed in to change notification settings - Fork 0
/
bot.py
44 lines (33 loc) · 1.35 KB
/
bot.py
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
36
37
38
39
40
41
42
43
44
import discord
import os
from dotenv import load_dotenv
from discord.ext import commands
load_dotenv()
bot = discord.Bot(help_command=None)
intents = discord.Intents.all()
intents=intents
for fn in os.listdir("./Cogs/Commands/Animal"):
if fn.endswith(".py"):
bot.load_extension(f"Cogs.Commands.Animal.{fn[: -3]}")
for fn in os.listdir("./Cogs/Commands/Economy"):
if fn.endswith(".py"):
bot.load_extension(f"Cogs.Commands.Economy.{fn[: -3]}")
for fn in os.listdir("./Cogs/Commands/Emotes"):
if fn.endswith(".py"):
bot.load_extension(f"Cogs.Commands.Emotes.{fn[: -3]}")
for fn in os.listdir("./Cogs/Commands/Fun"):
if fn.endswith(".py"):
bot.load_extension(f"Cogs.Commands.Fun.{fn[: -3]}")
for fn in os.listdir("./Cogs/Commands/General"):
if fn.endswith(".py"):
bot.load_extension(f"Cogs.Commands.General.{fn[: -3]}")
for fn in os.listdir("./Cogs/Commands/Moderation"):
if fn.endswith(".py"):
bot.load_extension(f"Cogs.Commands.Moderation.{fn[: -3]}")
for fn in os.listdir("./Cogs/Events"):
if fn.endswith(".py"):
bot.load_extension(f"Cogs.Events.{fn[: -3]}")
for fn in os.listdir("./Cogs/Commands/Owner"):
if fn.endswith(".py"):
bot.load_extension(f"Cogs.Commands.Owner.{fn[: -3]}")
bot.run(os.getenv('TOKEN'))