From 3e616132d47516bcc4496ee47f78caddf1844f6b Mon Sep 17 00:00:00 2001 From: DerGrumpf Date: Wed, 9 Oct 2024 20:23:24 +0200 Subject: [PATCH] Added Icons --- bot/assets/clock.png | Bin 0 -> 3451 bytes bot/assets/cloud.png | Bin 0 -> 2898 bytes bot/assets/docker.png | Bin 0 -> 1951 bytes bot/assets/rip.png | Bin 0 -> 1442 bytes bot/cogs/spawner.py | 35 +++++++++++++++++++++++++++-------- 5 files changed, 27 insertions(+), 8 deletions(-) create mode 100644 bot/assets/clock.png create mode 100644 bot/assets/cloud.png create mode 100644 bot/assets/docker.png create mode 100644 bot/assets/rip.png diff --git a/bot/assets/clock.png b/bot/assets/clock.png new file mode 100644 index 0000000000000000000000000000000000000000..3941d5d0676708c62ff6125d00a53e120d638afc GIT binary patch literal 3451 zcmV->4TSQEP)Ob&F7Fqk01CK(il+0W5fBX3h?wVP} z0R<3{PopC-!G%l-$fssz0hcA_bHM+};TJC;YKU5*rl_sBoAA$PQcyl;g7YCbpAUla z`1|p$8BoNdin{?#K9j=oI1~0Hgg!Ywiyx}?EXz0#L6grUbq;4VxuD761MM)24>2=Y zlZ{!EL$x}W!|Gf<)a3G+CYN4y4n3M&K2hiJTXhbt>Rf)R$t6ph#rK`*VcdqG$!C%_ zhcnt7h{zs#@u5%gur`}T+HBqwzRofthwIuLj%jl!2`}Jp9O-4uhoH%4Qe-w~qOu`s zh{fy7xI|gl6lvj_>?e3NGMko23oE1NkQ`~jQ!|H$0*bgVzJ!V5Xlt|ZipnNE%EGFs zY}%qMd}WJ|%;s`rHdRq(CJ)!sm<=J`z$Bf8Gdc@ITkc%ESWL8q(&#x{6Fxc%eY!cc z#>~N>&Eo-Q>m?WQS2_zuorTw>T-KbQ>ntqMYWa@6-r~k$2ytc_mT2N~q8Sp+ ze3W1&=4Rs-rX-kIpJ3)=+3pO_Cz@HCXt=f0MD7GLzZdod6Q9Lrkuq=yqDRr|s1IN; zBpWGAHgP@01j#1$##{JXp-)fekrWf#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!32KrFjk?3n-n002ovPDHLkV1itmtMC8- literal 0 HcmV?d00001 diff --git a/bot/assets/cloud.png b/bot/assets/cloud.png new file mode 100644 index 0000000000000000000000000000000000000000..d915345c0ed4c4bf6d34aa00c0cc35cf7af576ab GIT binary patch literal 2898 zcmV-Y3$65tP)56h;|klu*Ndo2l=MpCB6u%`6h@juVIV>0$$A4dlgC1~sU>t=5 z;&@JRzso$9p%$|_XE7TDjv5FogqQ}1KM3;}H^~kAmA04HMJhtkJ2C83e1I|%AKRTQ!S2g7>YP7E5oOe-k$t9fcT-1Ews^++BI3=#( z%yS9H;!blMqj}0DoGq^5{N$>Ju+{Kt2P``zGrJJPF;_KTdZ~C!aW6GClu4c{j(Vz~ zH+ZNx?WrQcTlY@)R%62O^;Ge#@S3p(R(2Q?G+&n!#=^eewL+or3c+Fgbl#j03Id-9 zP^Cd)4lJsKzwCvTt+47KWHiF!U68m1A~Y~*hSa0uKjTA5c8{Q6Z)X@EipTg+ewYvj zsb#RHT_&|$@*f|{zuevVU7v2=XF72{A^hMQ0+XX4X(ME|!n(Gek#!JKw?SAE2oD|a zO$=squV2L?mnG?=>_UTcNywmU~t0%5TrJOhIH zpTCl%-pr#^@=#zfU7~-%W<&49m3rSbeX{wfQ%O}$g=rz6DS*wd%Vak}dM?a)1=P_} z&9rHtih#(O5VsIg*TdRs!#=^r7D!$J!AcPR$|)2mdvP-}bt+2H7ZGFVo3TUh*M8TV zpB_Zu^dNo?odV0Z!j^*)xvikt01+yf9&~#||D2a#b&2e8jb-_u3f9$5rd6rr(Vkuf z(}Va#^kr7aepyxe-1qNl^AQpBQwQ>~IuMp-LSd^!!2w7~1+gv&58y~dAhW^)u~2#O znCOd8@|elm=ow%8!fD{wRCm73I$pQT{BB_UDr5 zjSqwD9frO+RWLh5=j~5@Pd*OOeyBu!N|NkT*eH2)iyz-c`?2&FuQa8ShhlyCa`q(H zR0Jh060hZeSexz3L5< zgzx%vIZIGf01GDQGRKLB9^H6&@sX%0-U=leab!f#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M?ezw{Hj;-*!?;iy4!?^)DYm_%W86_am;Y7)edW;# z{(V%>CP&A8z9empL{S=!L*yzAV_$JtH*a`4!y94DD|-UULOHV|%=z>2n4YJO>-p?m zJ=}D4G#=ACFG0bMP;$yb`KQRVBa{a1%{+O5SWk6!t)uFcj!#ePpu3(b=Zn)itfzE5+g|zgGdj_5-EdaxhI66g_`~=_7wo)6 z?^AXu7;FgQ9b+&UgSlV~W@(k&`EyxtNXs4Xl{2+4dm-BvmIp-ba z&|c2Pb}eTeT8=rim>uQ3+OB1>nD_p6=MBwQm;#U)g87Xxh;vtui6IDGm7GVV{=yQ( zJv9N8)dWI^0eoB?z^|)=h_S>msHgkiBO{+gYnr#^s0 zvkZ$_4laIDC&N%D=cPJ1Ic9%iEkXG0mGh`&i1T}+b_93V`tV@AAHI77h%?K`HOpBe z=9%UE;~V>vanUTJxYnN#$y2fVGqTZ-wT=E9Zt{no+UUobMt^oR`H{Z=5jRh3JsI2M z46*y6YVqY4b{}@weX!enIBxgBVfW>n-4|>=T(tXg*6zcJtMzR*9|~K1$$V4RiDz|Q lym;~A#fuj&UZk7Ce*h`)0u=fW4p{&I002ovPDHLkV1ipG#kv3h literal 0 HcmV?d00001 diff --git a/bot/assets/rip.png b/bot/assets/rip.png new file mode 100644 index 0000000000000000000000000000000000000000..7c257565a94ef59691112aa024481a77f4319c1d GIT binary patch literal 1442 zcmV;T1zq}yP)9(Qn<6^r=!Mx9y5*<+ zZkG-3@JM*i;mGcH`)ud;|NYMI`@QErfT9EyR8T<$6_oCpxt7S#7Ca%%>=g=1V zLt3~a$hDk>w6Jrg2lp&D5z4rborz%{%EO!K4sVA4!QF5VU180vksZpTs3+_ zt8yn!rA^*pt$Sis{)$t%5a;5A%*U!E4ff>TSe4h}Tnu=3x;PW9@|;5)Jy(2tNUWzjv5|0@lbzNEe)ab1Ih|>yuY=9W4qF}A>gZcg z!wV0!td$A2dh9kQmt<#B9sRaCvb{bkvyz-#_j!G!m_aGEHxt2RAPSOLlH?5AT z$xb@GyPe!#P{(39pI=K_axDWs&m3heWw$di)j>~M4Wv0}4Y)xo6H;r~Ci_zz+{mb6 zwj3{V@P_Z~oMceOO6d;DGaQia;96c4Q*<$DWkQC7PM=S={4mb7Gby8*i*mNuL8&rU z%B-e4s~WPZXx7uGpps{^s<|d!+10!vXW3P#KJQb?SSY)U$lOZq=2UV!-_A6>{c=TaqEO?7zPhhN_?(&yosQQqDI<_+@7Dcz!v3;+a>0RnGD&_}Z7D zQ88MDW$Y?i1ODjjxm`R8%h)V+Q8|r1->(#-wY-d9mY0D)dU~!{!&32BR?2a2hEf*# ze1B4m*2+@)SCzt2J0V7SuCNm$o~ugfk$UxNo|k%MDK`|ORb0&Nk`kyf@Ly89ooB?e zxR_f~7ZmWM)FmYhC`PNS7=~ha0KXiD8&|A`p%@;(FNfjA)vG|zn%U6J(oJ3TZR!SL zV;5I8oT6~Bzp0BqHg?fJ()rQm&_&LbAZX3Bo#aZ}Nf^rJlk^Vhd(TEXKiV9+s9`w> zS~FXJ053l>ZQC)X57z$uk2`O)UkMe7Pd(3<|SHn?o0E%m+bh=1eDe=^*}eC;y!3;P0-3yyV}%Umd6%y6E*h5VU5_9RR_5 zy`O!)dh2lg;p#x;&_!?Nf}k~Xshxg7u6y@lx!lgc<#sL(*B`D9R1RJARt^Y;8=ECZ zTNVh08=ED^+nFF3ZfuquTNZ<0wBP+ujMjVUAQtbF}3I*0N}3J7E6>yObnl+PA`V7Reaa(q4?1jCKZlHuT<3UhNF5Pk-o(qCva_N@y+c*%k&K^`7A>BN`j{!mJ>_N2=3aICa wXc!NS`T?AZg7H8=J`F(y6;x0`DdSK70yeyGL{&Vn-~a#s07*qoM6N<$f{4Dkx&QzG literal 0 HcmV?d00001 diff --git a/bot/cogs/spawner.py b/bot/cogs/spawner.py index 603fe56..c779b33 100644 --- a/bot/cogs/spawner.py +++ b/bot/cogs/spawner.py @@ -24,6 +24,8 @@ class Server: # Global List of all running Containers containers = list() +color = discord.Color.from_rgb(13, 183, 237) + def seed_generator(): seed = random.randrange(1_000_000_000, 100_000_000_000_000) if random.randrange(0,2) == 0: @@ -80,11 +82,12 @@ class Spawner(commands.Cog): This could take up to **5 minutes** ''', - color=discord.Color.random(), + color=color, timestamp=datetime.now(pytz.timezone('Europe/Berlin')) ) - - start = await ctx.send(embed=embed) + file = discord.File("../assets/clock.png", filename="clock.png") + embed.set_thumbnail(url="attachment://clock.png") + start = await ctx.send(file=file, embed=embed) port = find_free_port() server_name = server_name.title() @@ -170,11 +173,13 @@ class Spawner(commands.Cog): **Connection URL**: garde-studios.de:{port} ''', - color=discord.Color.random(), + color=color, timestamp=datetime.now(pytz.timezone('Europe/Berlin')) ) + file = discord.File("../assets/docker.png", filename="docker.png") + embed.set_thumbnail(url="attachment://docker.png") await start.delete() - await ctx.send(embed=embed) + await ctx.send(file=file, embed=embed) @commands.hybrid_command(name='servers') async def servers(self, ctx: commands.Context): @@ -190,7 +195,7 @@ class Spawner(commands.Cog): embed = discord.Embed( title="Currently Running Servers", description="List of all currently running Minecraft Servers", - color=discord.Color.random(), + color=color, timestamp=datetime.now(pytz.timezone('Europe/Berlin')) ) @@ -200,7 +205,11 @@ class Spawner(commands.Cog): *URL*: garde-studios.de:{container.port} ''' embed.add_field(name=f'{container.name} 0/{container.players}', value=desc) - await ctx.send(embed=embed) + + file = discord.File("../assets/cloud.png", filename="cloud.png") + embed.set_thumbnail(url="attachment://cloud.png") + + await ctx.send(file=file, embed=embed) @commands.hybrid_command(name='kill') async def kill(self, ctx: commands.Context, server_name: str): @@ -234,7 +243,17 @@ class Spawner(commands.Cog): #self.client.volumes.get(server_name).remove() containers.remove(conn) - await ctx.send(f"Server {server_name} killed successfully") + embed = discord.Embed( + title="Killed", + description=f"{server_name} killed!", + color=color, + timestamp=datetime.now(pytz.timezone('Europe/Berlin')) + ) + + file = discord.File("../assets/rip.png", filename="rip.png") + embed.set_thumbnail(url="attachment://rip.png") + + await ctx.send(file=file, embed=embed) if __name__ == '__main__': for _ in range(10):