瀏覽代碼

link to x's tool

tags/v0.1^2
Ben Kurtovic 13 年之前
父節點
當前提交
87a85392e4
共有 1 個文件被更改,包括 7 次插入2 次删除
  1. +7
    -2
      bot/commands/editcount.py

+ 7
- 2
bot/commands/editcount.py 查看文件

@@ -1,5 +1,7 @@
# -*- coding: utf-8 -*-

from urllib import quote_plus

from classes import BaseCommand
import wiki

@@ -30,5 +32,8 @@ class Command(BaseCommand):
self.connection.reply(data, msg.format(username))
return

msg = "\x0302{0}\x0301 has {1} edits."
self.connection.reply(data, msg.format(username, count))
url = "http://toolserver.org/~soxred93/pcount/index.php?name={0}&lang=en&wiki=wikipedia"
url = url.format(quote_plus(user.name()))

msg = "\x0302{0}\x0301 has {1} edits ({2})."
self.connection.reply(data, msg.format(username, count, url))

Loading…
取消
儲存