17
17
from mcstatus import MinecraftServer
18
18
# import cairosvg
19
19
20
- __version__ = "Alpha 3.3.1"
20
+ __version__ = "Alpha 3.3.1 (WIP) "
21
21
prefix = os .getenv ("PREFIX" )
22
22
color = os .getenv ("COLOR" )
23
23
@@ -79,16 +79,11 @@ def experimental_ascii():
79
79
yyyyyyhhhhhhhhhhhhhh{ Style .RESET_ALL } v{ __version__ }
80
80
{ Style .RESET_ALL } """ )
81
81
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]" )
92
87
93
88
# logsenv() and Flask("")
94
89
def logsenv ():
@@ -104,12 +99,12 @@ def logsenv():
104
99
logsenv ()
105
100
106
101
# Color
107
- if color == ("red" ): botcolor = (0xff0000 )
102
+ if color == ("red" ): botcolor = (0xff0000 )
108
103
elif color == ("grey" ): botcolor = (0xffffff )
109
104
elif color == ("white" ): botcolor = (0xffffff )
110
- elif color == ("black" ): botcolor == (0x000000 )
105
+ elif color == ("black" ): botcolor = (0x000000 )
111
106
elif color == ("blue_metalic" ): botcolor = (0xfff )
112
- elif color == ("green" ): botcolor == (0xff000 )
107
+ elif color == ("green" ): botcolor = (0xff000 )
113
108
elif color == ("light_blue" ): botcolor = (0x00fbff )
114
109
elif color == ("yellow" ): botcolor = (0xffee00 )
115
110
elif color == ("orange" ): botcolor = (0xff8800 )
@@ -226,6 +221,12 @@ async def motd(ctx):
226
221
await ctx .send ("Message of the day:\n ```\n " + motdread .read () + "\n ```" )
227
222
motdread .close ()
228
223
224
+ @bot .command ()
225
+ async def changes (ctx ):
226
+ motdread = open ("changes.md" ,"r" )
227
+ await ctx .send (motdread .read ())
228
+ motdread .close ()
229
+
229
230
@bot .command ()
230
231
async def img (ctx , * , something ):
231
232
if something == "coffee" :
@@ -810,8 +811,7 @@ async def christmas(ctx):
810
811
else : enwebserver = False
811
812
host_flask = os .getenv ("HOST" )
812
813
813
- if os .getenv ("PORT" ) == "80" : port_flask = "5000"
814
- else : port_flask = os .getenv ("PORT" )
814
+ port_flask = os .getenv ("PORT" )
815
815
816
816
if enwebserver == True :
817
817
@app .errorhandler (404 )
0 commit comments