diff options
| author | 2021-01-24 13:16:30 +0800 | |
|---|---|---|
| committer | 2021-01-24 13:16:30 +0800 | |
| commit | 43cdae4e495b03fabf41805ca4e9e93f60f3ec7a (patch) | |
| tree | 9d3f741a724a31f20d8cf0aa9b8dfd08827934e0 | |
| parent | Merge branch 'master' into feat/info/server-cmd-enhancements (diff) | |
Remove redundant parenthesis.
| -rw-r--r-- | bot/exts/info/information.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 917465538..619204e5d 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -55,15 +55,15 @@ class Information(Cog): def get_extended_server_info(self) -> str: """Return additional server info only visible in moderation channels.""" talentpool_info = "" - if (cog := self.bot.get_cog("Talentpool")): + if cog := self.bot.get_cog("Talentpool"): talentpool_info = f"Nominated: {len(cog.watched_users)}\n" bb_info = "" - if (cog := self.bot.get_cog("Big Brother")): + if cog := self.bot.get_cog("Big Brother"): bb_info = f"BB-watched: {len(cog.watched_users)}\n" defcon_info = "" - if (cog := self.bot.get_cog("Defcon")): + if cog := self.bot.get_cog("Defcon"): defcon_status = "Enabled" if cog.enabled else "Disabled" defcon_days = cog.days.days if cog.enabled else "-" defcon_info = f"Defcon status: {defcon_status}\nDefcon days: {defcon_days}\n" |