[V3 RndStatus] [p]rndstatus type fixes

Merge pull request #39 from Flame442/v3
This commit is contained in:
aikaterna
2019-02-15 08:32:31 -08:00
committed by GitHub

View File

@@ -81,11 +81,15 @@ class RndStatus(BaseCog):
"""Define the rndstatus type.
Type list:
1 = Playing
0 = Playing
1 = Streaming
2 = Listening
3 = Watching"""
await self.config.type.set(type)
await ctx.send("Rndstatus type set.")
if 0 <= type <= 3:
await self.config.type.set(type)
await ctx.send("Rndstatus type set.")
else:
await ctx.send("Type must be between 0 and 3.")
async def switch_status(self, message):
try: