From eb9ba7f57616dbbe91c2c664a83a2a91121e3bd1 Mon Sep 17 00:00:00 2001 From: Logan Cusano Date: Tue, 28 Dec 2021 02:27:25 -0500 Subject: [PATCH] Update: Updated the activity whenever the freq changes --- bot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index f3f172c..de62f37 100644 --- a/bot.py +++ b/bot.py @@ -73,7 +73,8 @@ class Bot(commands.Bot): self.start_sdr() await self.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, - name=f"{self.freq[:-1]} {str(self.mode).capitalize()}"), + name=f"{self.freq[:-1]}" + f" {str(self.mode).upper()}"), status=discord.Status.online) else: await ctx.send("Opus won't load") @@ -99,6 +100,10 @@ class Bot(commands.Bot): await ctx.send(f"Ok {member}, I'm changing the mode to {self.mode} and frequency to {self.freq}") if self.sdr_started: self.start_sdr() + await self.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, + name=f"{self.freq[:-1]}" + f" {str(self.mode).upper()}"), + status=discord.Status.online) else: await ctx.send(f"{member}, {mode} is not valid. You may only enter 'fm' or 'wbfm'") else: