Skip to content

Commit 07aaf31

Browse files
committed
Fixed typo, update requirements
Signed-off-by: RedTeaDev <redtea@redtea.red>
1 parent 9ece6db commit 07aaf31

File tree

2 files changed

+19
-16
lines changed

2 files changed

+19
-16
lines changed

Teapot.py

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@
88
from discord.ext import commands as dcmd
99
from dotenv import load_dotenv
1010

11-
import teapot # import teapot.py core
11+
import teapot # import teapot.py core
1212

13-
print("""
13+
print(f"""
1414
_____ _
1515
|_ _|__ __ _ _ __ ___ | |_
1616
| |/ _ \\/ _` | '_ \\ / _ \\| __|
@@ -35,16 +35,16 @@
3535
if not versionlisted:
3636
print("You are currently using an unlisted version!\n")
3737
elif req.status_code == 404:
38-
# 404 Not Found
38+
# 404 Not Found
3939
print("Latest Teapot.py version not found!\n")
4040
elif req.status_code == 500:
41-
# 500 Internal Server Error
41+
# 500 Internal Server Error
4242
print("An error occurred while fetching the latest Teapot.py version. [500 Internal Server Error]\n")
4343
elif req.status_code == 502:
44-
# 502 Bad Gateway
44+
# 502 Bad Gateway
4545
print("An error occurred while fetching the latest Teapot.py version. [502 Bad Gateway]\n")
4646
elif req.status_code == 503:
47-
# 503 Service Unavailable
47+
# 503 Service Unavailable
4848
print("An error occurred while fetching the latest Teapot.py version. [503 Service Unavailable]\n")
4949
else:
5050
print("An unknown error has occurred when fetching the latest Teapot.py version\n")
@@ -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...") # if .env not found
60-
teapot.setup.__init__() # run setup.py
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, 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
6464
time_start = time.perf_counter()
6565
database = teapot.managers.database.__init__()
6666
db = teapot.managers.database.db(database)
@@ -101,9 +101,11 @@ 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") # WIP
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())) # Update Bot status
106+
await bot.change_presence(status=discord.Status.online,
107+
activity=discord.Game(teapot.config.bot_status())) # Update Bot status
108+
107109

108110
try:
109111
discord_time_start = time.perf_counter()
@@ -114,4 +116,4 @@ async def on_ready():
114116
db.execute("INSERT INTO `bot_logs`(timestamp, type, class, message) VALUES(%s, %s, %s, %s)",
115117
(teapot.time(), "ERROR", __name__, e))
116118
time.sleep(5)
117-
exit(1)
119+
exit(1)

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ beautifulsoup4==4.9.1
55
bs4==0.0.1
66
certifi==2020.6.20
77
chardet==3.0.4
8-
discord.py==1.3.4
8+
discord.py==1.4.0
99
idna==2.10
1010
lavalink==3.1.2
1111
multidict==4.7.6
@@ -14,6 +14,7 @@ psutil==5.7.2
1414
python-dotenv==0.14.0
1515
requests==2.24.0
1616
soupsieve==2.0.1
17-
urllib3==1.25.9
17+
typing-extensions==3.7.4.2
18+
urllib3==1.25.10
1819
websockets==8.1
19-
yarl==1.4.2
20+
yarl==1.5.1

0 commit comments

Comments
 (0)