Bladeren bron

Capitalise replies in !lag

tags/v0.1^2
Justin Yulli Kim 12 jaren geleden
bovenliggende
commit
462d19abb4
1 gewijzigde bestanden met toevoegingen van 3 en 3 verwijderingen
  1. +3
    -3
      earwigbot/commands/lag.py

+ 3
- 3
earwigbot/commands/lag.py Bestand weergeven

@@ -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

Laden…
Annuleren
Opslaan