|
8 | 8 | from discord.ext import commands as dcmd |
9 | 9 | from dotenv import load_dotenv |
10 | 10 |
|
11 | | -import teapot # import teapot.py core |
| 11 | +import teapot |
12 | 12 |
|
13 | 13 | print(f""" |
14 | 14 | _____ _ |
|
57 | 57 | print("Missing environment variables. Please backup and delete .env, then run Teapot.py again.") |
58 | 58 | quit(2) |
59 | 59 | print("Unable to find required environment variables. Running setup.py...") # if .env not found |
60 | | - teapot.setup.__init__() # run setup.py |
| 60 | + teapot.setup.__init__() # run setup.py |
61 | 61 |
|
62 | 62 | print("Initializing bot...") |
63 | | -if teapot.config.storage_type() == "mysql": # if .env use mysql, create the table if table not exists |
| 63 | +if teapot.config.storage_type() == "mysql": # if .env use mysql, create the table if table not exists |
64 | 64 | time_start = time.perf_counter() |
65 | 65 | database = teapot.managers.database.__init__() |
66 | 66 | db = teapot.managers.database.db(database) |
@@ -96,12 +96,13 @@ async def on_ready(): |
96 | 96 | teapot.cogs.osu.setup(bot) |
97 | 97 | teapot.cogs.github.setup(bot) |
98 | 98 | teapot.cogs.cat.setup(bot) |
| 99 | + teapot.cogs.eightball.setup(bot) |
99 | 100 | teapot.cogs.neko.setup(bot) |
100 | 101 | if teapot.config.storage_type() == "mysql": |
101 | 102 | for guild in bot.guilds: |
102 | 103 | teapot.managers.database.create_guild_table(guild) |
103 | 104 | elif teapot.config.storage_type() == "sqlite": |
104 | | - print("[!] Warning: SQLite storage has not been implemented yet. MySQL database is recommended") # WIP |
| 105 | + print("[!] Warning: SQLite storage has not been implemented yet. MySQL is recommended") # WIP |
105 | 106 | print(f"Registered commands and events in {round(time.perf_counter() - time_start, 2)}s") |
106 | 107 | await bot.change_presence(status=discord.Status.online, |
107 | 108 | activity=discord.Game(teapot.config.bot_status())) # Update Bot status |
|
0 commit comments