瀏覽代碼

Capitalise replies in !lag

tags/v0.1^2
Justin Yulli Kim 12 年之前
父節點
當前提交
462d19abb4
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      earwigbot/commands/lag.py

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

@@ -47,7 +47,7 @@ class Lag(Command):

if len(data.args) > 1:
name = " ".join(data.args)
self.reply(data, "unknown site: \x0302{0}\x0F.".format(name))
self.reply(data, "Unknown site: \x0302{0}\x0F.".format(name))
return
name = data.args[0]
if "." in name:
@@ -58,7 +58,7 @@ class Lag(Command):
try:
return self.bot.wiki.get_site(name)
except exceptions.SiteNotFoundError:
msg = "unknown site: \x0302{0}\x0F.".format(name)
msg = "Unknown site: \x0302{0}\x0F.".format(name)
self.reply(data, msg)
return
return self.get_site_from_proj_and_lang(data, project, lang)
@@ -70,7 +70,7 @@ class Lag(Command):
try:
site = self.bot.wiki.add_site(project=project, lang=lang)
except exceptions.APIError:
msg = "site \x0302{0}:{1}\x0F not found."
msg = "Site \x0302{0}:{1}\x0F not found."
self.reply(data, msg.format(project, lang))
return
return site

Loading…
取消
儲存