diff options
author | makefu <github@syntax-fehler.de> | 2014-01-08 15:24:51 +0100 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-01-08 15:24:51 +0100 |
commit | d8764b3327cfe772965b3f4a947071159a1d6161 (patch) | |
tree | 7f9866c5760ddb0e55322b2e59f7895b265d616e /ircbot/rssbot.py | |
parent | 64420ecb20bc7616bacfdca7788dc2d517ea8600 (diff) | |
parent | 0d1d7d2202a0bb370d896c1c8562139fbc31b395 (diff) |
Merge branch 'master' of ssh://github.com/krebscode/painload
Diffstat (limited to 'ircbot/rssbot.py')
-rwxr-xr-x | ircbot/rssbot.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ircbot/rssbot.py b/ircbot/rssbot.py index 531e50c5..225e6f13 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.strip('\n').strip('\r') + '#' + entry.link.partition('://')[2].partition('/')[0]) self.oldnews.append(entry.link) self.lastnew = datetime.now() sleep(self.to) |