Skip to content
This repository was archived by the owner on Jan 6, 2022. It is now read-only.

Commit e28d23f

Browse files
authored
Update bot.py
1 parent f14fd71 commit e28d23f

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

bot.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
from mcstatus import MinecraftServer
1818
# import cairosvg
1919

20-
__version__ = "Alpha 3.3.1"
20+
__version__ = "Alpha 3.3.1 (WIP)"
2121
prefix = os.getenv("PREFIX")
2222
color = os.getenv("COLOR")
2323

@@ -79,16 +79,11 @@ def experimental_ascii():
7979
yyyyyyhhhhhhhhhhhhhh{Style.RESET_ALL} v{__version__}
8080
{Style.RESET_ALL}""")
8181
def ascii():
82-
if os.getenv("ASCII_ART") == "classic":
83-
classic_ascii()
84-
elif os.getenv("ASCII_ART") == "matrix":
85-
matrix_ascii()
86-
elif os.getenv("ASCII_ART") == "extra":
87-
extra_ascii()
88-
elif os.getenv("ASCII_ART") == "experimental":
89-
experimental_ascii()
90-
else:
91-
print("[BANNER NOT FOUND]")
82+
if os.getenv("ASCII_ART") == "classic": classic_ascii()
83+
elif os.getenv("ASCII_ART") == "matrix": matrix_ascii()
84+
elif os.getenv("ASCII_ART") == "extra": extra_ascii()
85+
elif os.getenv("ASCII_ART") == "experimental": experimental_ascii()
86+
else: print("[BANNER NOT FOUND]")
9287

9388
# logsenv() and Flask("")
9489
def logsenv():
@@ -104,12 +99,12 @@ def logsenv():
10499
logsenv()
105100

106101
# Color
107-
if color == ("red"): botcolor= (0xff0000)
102+
if color == ("red"): botcolor = (0xff0000)
108103
elif color == ("grey"): botcolor = (0xffffff)
109104
elif color == ("white"): botcolor = (0xffffff)
110-
elif color == ("black"): botcolor == (0x000000)
105+
elif color == ("black"): botcolor = (0x000000)
111106
elif color == ("blue_metalic"): botcolor = (0xfff)
112-
elif color == ("green"): botcolor == (0xff000)
107+
elif color == ("green"): botcolor = (0xff000)
113108
elif color == ("light_blue"): botcolor = (0x00fbff)
114109
elif color == ("yellow"): botcolor = (0xffee00)
115110
elif color == ("orange"): botcolor = (0xff8800)
@@ -226,6 +221,12 @@ async def motd(ctx):
226221
await ctx.send("Message of the day:\n```\n" + motdread.read() + "\n```")
227222
motdread.close()
228223

224+
@bot.command()
225+
async def changes(ctx):
226+
motdread = open("changes.md","r")
227+
await ctx.send(motdread.read())
228+
motdread.close()
229+
229230
@bot.command()
230231
async def img(ctx, *, something):
231232
if something == "coffee":
@@ -810,8 +811,7 @@ async def christmas(ctx):
810811
else: enwebserver = False
811812
host_flask = os.getenv("HOST")
812813

813-
if os.getenv("PORT") == "80": port_flask = "5000"
814-
else: port_flask = os.getenv("PORT")
814+
port_flask = os.getenv("PORT")
815815

816816
if enwebserver == True:
817817
@app.errorhandler(404)

0 commit comments

Comments
 (0)