From 9d91f297622e45a79d6ed752615e635eccdc0707 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 7 Jan 2014 20:27:56 +0100 Subject: ircbot: notshorturl now in ircbot --- ircbot/rssbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ircbot/rssbot.py b/ircbot/rssbot.py index 531e50c5..14126f7a 100755 --- a/ircbot/rssbot.py +++ b/ircbot/rssbot.py @@ -58,7 +58,7 @@ class RssBot(irc.bot.SingleServerIRCBot): # self.send(entry.title + " " + entry.link + " com: " + entry.comments) #except AttributeError: shorturl = subprocess.check_output(["curl", "-sS", "-F", "uri=" + entry.link, self.url_shortener]).decode() - self.send(entry.title + " " + shorturl) + self.send(entry.title + " " + shorturl + '#' + entry.link.partition('://')[2].partition('/')[0]) self.oldnews.append(entry.link) self.lastnew = datetime.now() sleep(self.to) -- cgit v1.2.3