瀏覽代碼

Improve help for !langcode.

tags/v0.2
Ben Kurtovic 11 年之前
父節點
當前提交
af9f6a56fb
共有 1 個檔案被更改,包括 3 行新增3 行删除
  1. +3
    -3
      earwigbot/commands/langcode.py

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

@@ -23,14 +23,14 @@
from earwigbot.commands import 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"
commands = ["langcode", "lang", "language"]

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

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


Loading…
取消
儲存