[rndstatus] competing (#186)

* competing

* space
This commit is contained in:
PhenoM4n4n
2020-11-16 10:14:23 -08:00
committed by GitHub
parent 89785c955d
commit 90c9c80aec

View File

@@ -101,15 +101,16 @@ class RndStatus(commands.Cog):
0 = Playing
1 = Streaming
2 = Listening
3 = Watching"""
if 0 <= status_type <= 3:
rnd_type = {0: "playing", 1: "streaming", 2: "listening", 3: "watching"}
3 = Watching
5 = Competing"""
if 0 <= status_type <= 3 or 0 != 5:
rnd_type = {0: "playing", 1: "streaming", 2: "listening", 3: "watching", 5: "competing"}
await self.config.type.set(status_type)
await self.presence_updater()
await ctx.send(f"Rndstatus activity type set to {rnd_type[status_type]}.")
else:
await ctx.send(
f"Status activity type must be between 0 and 3. "
f"Status activity type must be between 0 and 3 or 5. "
f"See `{ctx.prefix}help rndstatus type` for more information."
)