add cogs folder & main file
This commit is contained in:
15
bot.py
Normal file
15
bot.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
|
||||
from discord.ext import commands
|
||||
|
||||
|
||||
prefixes = ["/"]
|
||||
|
||||
client = commands.Bot(command_prefix=prefixes, case_insensitive=True)
|
||||
client.prefixes = prefixes
|
||||
|
||||
for file in os.listdir("./cogs"):
|
||||
if file.endswith(".py"):
|
||||
client.load_extension(f"cogs.{file[:-3]}")
|
||||
|
||||
client.run("NzYwNTI5NDY2MDI3MDE2MjUy.X3NYQg.Nz3bwxgltlayMStfT7F-OCbx9pE")
|
||||
Reference in New Issue
Block a user