mirror of
https://wiilab.wiimart.org/wiimart/WiiMartBot
synced 2025-09-03 20:11:08 +02:00
forgot to let hoster set a status
This commit is contained in:
parent
65c80d4f6e
commit
a3efb31e44
4
bot.py
4
bot.py
@ -304,14 +304,14 @@ async def statusy(ctx):
|
|||||||
await ctx.send(f"WiiMart Status: {url_status}\nAdmin Status: {status}")
|
await ctx.send(f"WiiMart Status: {url_status}\nAdmin Status: {status}")
|
||||||
|
|
||||||
@bot.hybrid_command(name="setstatus",description="Sets the current server status to your liking")
|
@bot.hybrid_command(name="setstatus",description="Sets the current server status to your liking")
|
||||||
@commands.has_any_role("Owner", "Admin", "Moderators")
|
@commands.has_any_role("Owner", "Admin", "Moderators", "Hoster")
|
||||||
async def setstatus(ctx, stat: str):
|
async def setstatus(ctx, stat: str):
|
||||||
global status
|
global status
|
||||||
status = stat
|
status = stat
|
||||||
await ctx.send(f"Status has been set to: {status}")
|
await ctx.send(f"Status has been set to: {status}")
|
||||||
|
|
||||||
@bot.hybrid_command(name="unsetstatus", description="Unsets the current status")
|
@bot.hybrid_command(name="unsetstatus", description="Unsets the current status")
|
||||||
@commands.has_any_role("Owner", "Admin", "Moderators")
|
@commands.has_any_role("Owner", "Admin", "Moderators", "Hoster")
|
||||||
async def unset(ctx):
|
async def unset(ctx):
|
||||||
global status
|
global status
|
||||||
status = "Not Set"
|
status = "Not Set"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user