Browse Source

Fix, since we can't get low watch counts.

tags/v0.2
Ben Kurtovic 9 years ago
parent
commit
9e45d32725
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      earwigbot/commands/watchers.py

+ 4
- 1
earwigbot/commands/watchers.py View File

@@ -43,7 +43,10 @@ class Watchers(Command):
self.reply(data, msg.format(title))
return

watchers = page["watchers"]
if "watchers" in page:
watchers = page["watchers"]
else:
watchers = "<30"
plural = "" if watchers == 1 else "s"
msg = "\x0302{0}\x0F has \x02{1}\x0F watcher{2}."
self.reply(data, msg.format(title, watchers, plural))

Loading…
Cancel
Save