Browse Source

link to x's tool

tags/v0.1^2
Ben Kurtovic 13 years ago
parent
commit
87a85392e4
1 changed files with 7 additions and 2 deletions
  1. +7
    -2
      bot/commands/editcount.py

+ 7
- 2
bot/commands/editcount.py View File

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


from urllib import quote_plus

from classes import BaseCommand from classes import BaseCommand
import wiki import wiki


@@ -30,5 +32,8 @@ class Command(BaseCommand):
self.connection.reply(data, msg.format(username)) self.connection.reply(data, msg.format(username))
return 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…
Cancel
Save