From 87a85392e4e198ab75e6f52c2cdd7a3a94299558 Mon Sep 17 00:00:00 2001 From: Ben Kurtovic Date: Sun, 21 Aug 2011 21:15:59 -0400 Subject: [PATCH] link to x's tool --- bot/commands/editcount.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bot/commands/editcount.py b/bot/commands/editcount.py index df136f7..061c473 100644 --- a/bot/commands/editcount.py +++ b/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))