Browse Source

Capitalise replies in !lag

tags/v0.1^2
Justin Yulli Kim 12 years ago
parent
commit
462d19abb4
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      earwigbot/commands/lag.py

+ 3
- 3
earwigbot/commands/lag.py View File

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


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

Loading…
Cancel
Save