aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar SebastiaanZ <[email protected]>2019-02-08 18:36:15 +0100
committerGravatar SebastiaanZ <[email protected]>2019-02-08 18:36:15 +0100
commit7fd83ab0176842886dabe9669c35d4401a68a910 (patch)
tree3b5739809d737e18c70964252ace62024ae6283d
parentAdding improvements to the watch prefix so reasons don't get overwritten (diff)
Updating watched user embed title to include cache status
-rw-r--r--bot/cogs/bigbrother.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/cogs/bigbrother.py b/bot/cogs/bigbrother.py
index 919d2252f..421f68ba7 100644
--- a/bot/cogs/bigbrother.py
+++ b/bot/cogs/bigbrother.py
@@ -328,6 +328,9 @@ class BigBrother:
if not updated:
await ctx.send(f":x: Failed to update cache: non-200 response from the API")
return
+ title = "Watched users (updated cache)"
+ else:
+ title = "Watched users (from cache)"
lines = tuple(
f"• <@{user_id}> in <#{self.watched_users[user_id].id}>"
@@ -336,7 +339,7 @@ class BigBrother:
await LinePaginator.paginate(
lines or ("There's nothing here yet.",),
ctx,
- Embed(title="Watched users (cached)", color=Color.blue()),
+ Embed(title=title, color=Color.blue()),
empty=False
)