Created streaks

This commit is contained in:
2020-11-18 20:08:21 +01:00
parent 306b2e858d
commit acd7285695
18 changed files with 78 additions and 50 deletions

37
bot.py
View File

@@ -1,18 +1,27 @@
from discord.ext import commands
import os
from discord.ext import commands
class DiscordBot:
def __init__(self, config):
prefixes = ["/"]
self.client = commands.Bot(command_prefix=prefixes, case_insensitive=True)
self.client.prefixes = prefixes
# Load this cog first so the other cogs can use properties initialized here
self.client.load_extension("cogs.events")
for file in os.listdir("./cogs"):
if file.endswith(".py") and not (file.startswith(("events",))):
self.client.load_extension(f"cogs.{file[:-3]}")
def run(self):
self.client.run("NzYwNTI5NDY2MDI3MDE2MjUy.X3NYQg.Nz3bwxgltlayMStfT7F-OCbx9pE")
def get_client(self):
return self.client
prefixes = ["/"]
client = commands.Bot(command_prefix=prefixes, case_insensitive=True)
client.prefixes = prefixes
# Load this cog first so the other cogs can use properties initialized here
client.load_extension("cogs.events")
for file in os.listdir("./cogs"):
if file.endswith(".py") and not (file.startswith(("events",))):
client.load_extension(f"cogs.{file[:-3]}")
client.run("NzYwNTI5NDY2MDI3MDE2MjUy.X3NYQg.Nz3bwxgltlayMStfT7F-OCbx9pE")
bot = DiscordBot(None)
bot.run()