diff options
author | root <root@cband> | 2014-01-07 13:31:18 -0600 |
---|---|---|
committer | root <root@cband> | 2014-01-07 13:31:18 -0600 |
commit | 54664e857346e402cd1030cce52bffa6814d9334 (patch) | |
tree | a5e7aefb0a5dd02470c8afca57d9de5a68786309 | |
parent | 087e20660883351d71b5cf0308ac853e04cbdf6d (diff) | |
parent | 452b234c61a2c4ba8d2c4af00e0c2cdc0007dced (diff) |
Merge branch 'master' of https://github.com/krebscode/painload
-rw-r--r-- | go/etc/conf.d/go.env | 2 | ||||
-rwxr-xr-x | ircbot/contoller.py | 2 | ||||
-rwxr-xr-x | ircbot/rssbot.py | 2 |
3 files changed, 2 insertions, 4 deletions
diff --git a/go/etc/conf.d/go.env b/go/etc/conf.d/go.env index 477c7eeb..6045deac 100644 --- a/go/etc/conf.d/go.env +++ b/go/etc/conf.d/go.env @@ -1,4 +1,2 @@ -HOSTN=go PORT=1337 -URI_PREFIX=http://go REDIS_KEY_PREFIX=go: diff --git a/ircbot/contoller.py b/ircbot/contoller.py index 8db32b8e..26e88ca9 100755 --- a/ircbot/contoller.py +++ b/ircbot/contoller.py @@ -118,7 +118,7 @@ class commands(): feedfile = 'new_feeds' -url_shortener = 'http://localhost:1337' +url_shortener = 'http://wall' init_channels = ['#news'] if 'FEEDFILE' in os.environ: 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) |