Browse Source

Improve help for !langcode.

tags/v0.2
Ben Kurtovic 11 years ago
parent
commit
af9f6a56fb
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      earwigbot/commands/langcode.py

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

@@ -23,14 +23,14 @@
from earwigbot.commands import Command from earwigbot.commands import Command


class Langcode(Command): class Langcode(Command):
"""Convert a language code into its name and a list of WMF sites in that
language, or a name into its code."""
"""Convert a language code into its name (or vice versa), and give a list
of WMF sites in that language."""
name = "langcode" name = "langcode"
commands = ["langcode", "lang", "language"] commands = ["langcode", "lang", "language"]


def process(self, data): def process(self, data):
if not data.args: if not data.args:
self.reply(data, "Please specify a language code.")
self.reply(data, "Please specify a language code or name.")
return return


code, lcase = data.args[0], data.args[0].lower() code, lcase = data.args[0], data.args[0].lower()


Loading…
Cancel
Save