瀏覽代碼

Clarify !lag output

tags/v0.3
Justin Kim 8 年之前
父節點
當前提交
2294de395f
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: CA3AB6555BE5EA73
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      earwigbot/commands/lag.py

+ 3
- 3
earwigbot/commands/lag.py 查看文件

@@ -37,7 +37,7 @@ class Lag(Command):
msg = base.format(site.name, self.get_replag(site))
elif data.command == "maxlag":
base = "\x0302{0}\x0F: {1}."
msg = base.format(site.name, self.get_maxlag(site).capitalize())
msg = base.format(site.name, self.get_maxlag(site))
else:
base = "\x0302{0}\x0F: {1}; {2}."
msg = base.format(site.name, self.get_replag(site),
@@ -45,10 +45,10 @@ class Lag(Command):
self.reply(data, msg)

def get_replag(self, site):
return "replag is {0}".format(self.time(site.get_replag()))
return "SQL replag is {0}".format(self.time(site.get_replag()))

def get_maxlag(self, site):
return "database maxlag is {0}".format(self.time(site.get_maxlag()))
return "API maxlag is {0}".format(self.time(site.get_maxlag()))

def get_site(self, data):
if data.kwargs and "project" in data.kwargs and "lang" in data.kwargs:


Loading…
取消
儲存