Skip to content

Commit 6db0d9b

Browse files
committed
fixed grammar
Signed-off-by: RedTeaDev <[email protected]>
1 parent 509c33c commit 6db0d9b

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

Teapot.py

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@
5454

5555
if os.getenv('CONFIG_VERSION') != teapot.config_version():
5656
if os.path.isfile('.env'):
57-
print("Missing environment variables. Please backup and delete .env, then run Teapot.py again.")
57+
print("Missing environment variables. Please backup and delete .env, then run Teapot.py again.")
5858
quit(2)
59-
print("Unable to find required environment variables. Running setup.py...")
60-
teapot.setup.__init__()
59+
print("Unable to find required environment variables. Running setup.py...") # if .env not found
60+
teapot.setup.__init__() # run setup.py
6161

6262
print("Initializing bot...")
63-
if teapot.config.storage_type() == "mysql": # if .env use mysql, use
63+
if teapot.config.storage_type() == "mysql": # if .env use mysql, create the table if table not exists
6464
time_start = time.perf_counter()
6565
database = teapot.managers.database.__init__()
6666
db = teapot.managers.database.db(database)
@@ -101,9 +101,9 @@ async def on_ready():
101101
for guild in bot.guilds:
102102
teapot.managers.database.create_guild_table(guild)
103103
elif teapot.config.storage_type() == "sqlite":
104-
print("[!] Warning: SQLite storage has not been implemented yet. MySQL database is recommended")
104+
print("[!] Warning: SQLite storage has not been implemented yet. MySQL database is recommended") # WIP
105105
print(f"Registered commands and events in {round(time.perf_counter() - time_start, 2)}s")
106-
await bot.change_presence(status=discord.Status.online, activity=discord.Game(teapot.config.bot_status()))
106+
await bot.change_presence(status=discord.Status.online, activity=discord.Game(teapot.config.bot_status())) # Update Bot status
107107

108108

109109

@@ -115,3 +115,4 @@ async def on_ready():
115115
if teapot.config.storage_type() == "mysql":
116116
db.execute("INSERT INTO `bot_logs`(timestamp, type, class, message) VALUES(%s, %s, %s, %s)",
117117
(teapot.time(), "ERROR", __name__, e))
118+
exit(9)

0 commit comments

Comments
 (0)