From fc5716644bdfda541e2fc4785b8141b2020fd14f Mon Sep 17 00:00:00 2001 From: sfan5 Date: Sat, 30 Aug 2014 17:15:36 +0200 Subject: [PATCH] [RSSNotify] Make commit announcements look better --- rssnotify.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/rssnotify.py b/rssnotify.py index c7c77c8..e002355 100755 --- a/rssnotify.py +++ b/rssnotify.py @@ -108,11 +108,9 @@ def rsscheck(phenny, input): print("[RssNotify]: Something went wrong!") for ch in chans: if commiter.lower() != commiter_realname.lower(): - #phenny.say("GIT: %s (%s) commited to %s: %s %s %s" % (commiter,commiter_realname,reponame,feed_entry.title,commit_hash,commit_time)) - phenny.write(['PRIVMSG', ch],"GIT: %s (%s) commited to %s: %s %s %s %s" % (commiter, commiter_realname, reponame, feed_entry.title, commit_hash, commit_time, commit_link)) + phenny.write(['PRIVMSG', ch], "\x0302[Git]\x0f \x0304%s\x0f (\x0304%s\x0f) -> \x0303%s\x0f: \x02%s\x0f \x0313%s\x0f %s (\x0315%s\x0f)" % (commiter, commiter_realname, reponame, feed_entry.title, commit_hash, commit_link, commit_time)) else: - #phenny.say("GIT: %s commited to %s: %s %s %s" % (commiter,reponame,feed_entry.title,commit_hash,commit_time)) - phenny.write(['PRIVMSG', ch],"GIT: %s commited to %s: %s %s %s %s" % (commiter, reponame, feed_entry.title, commit_hash, commit_time, commit_link)) + phenny.write(['PRIVMSG', ch], "\x0302[Git]\x0f \x0304%s\x0f -> \x0303%s\x0f: \x02%s\x0f \x0313%s\x0f %s (\x0315%s\x0f)" % (commiter, reponame, feed_entry.title, commit_hash, commit_link, commit_time)) if len(feed.entries) > 0: m = -1 for i in range(0, len(feed.entries)):