@@ -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."
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user