From c27d53c636d405dc7beef9a60e61a8ce5bd3f882 Mon Sep 17 00:00:00 2001 From: aikaterna <20862007+aikaterna@users.noreply.github.com> Date: Thu, 24 Sep 2020 11:33:01 -0700 Subject: [PATCH] [RndStatus] Update presences and types on 1 status --- rndstatus/rndstatus.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/rndstatus/rndstatus.py b/rndstatus/rndstatus.py index aaab660..9409ba5 100644 --- a/rndstatus/rndstatus.py +++ b/rndstatus/rndstatus.py @@ -203,14 +203,13 @@ class RndStatus(commands.Cog): else: if len(statuses) > 0: new_status = self.random_status(guild, statuses) - if current_game != new_status: - if (current_game != new_status) or current_game is None: - if _type == 1: - await self.bot.change_presence(activity=discord.Streaming(name=new_status, url=url)) - else: - await self.bot.change_presence( - activity=discord.Activity(name=new_status, type=_type), status=status - ) + if (current_game != new_status) or (current_game is None) or (len(statuses) == 1): + if _type == 1: + await self.bot.change_presence(activity=discord.Streaming(name=new_status, url=url)) + else: + await self.bot.change_presence( + activity=discord.Activity(name=new_status, type=_type), status=status + ) def random_status(self, guild, statuses): try: