瀏覽代碼

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

tags/v0.2
Ben Kurtovic 9 年之前
父節點
當前提交
9e45d32725
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. +4
    -1
      earwigbot/commands/watchers.py

+ 4
- 1
earwigbot/commands/watchers.py 查看文件

@@ -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…
取消
儲存