From af771433d724c2383081716873ca1829cf5b3183 Mon Sep 17 00:00:00 2001 From: Tim Abbott Date: Wed, 7 Aug 2013 12:31:00 -0400 Subject: [PATCH] Rename Humbug-based variables/paths in twitter search plugin. (imported from commit a5e1df1f6c58321974c34bacb7515672be55e88e) --- demos/twitter-search-bot | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/demos/twitter-search-bot b/demos/twitter-search-bot index 33a6259..c4e9281 100755 --- a/demos/twitter-search-bot +++ b/demos/twitter-search-bot @@ -6,7 +6,7 @@ import ConfigParser import zulip -CONFIGFILE = os.path.expanduser("~/.humbug_twitterrc") +CONFIGFILE = os.path.expanduser("~/.zulip_twitterrc") def write_config(config, since_id): if 'search' not in config.sections(): @@ -42,7 +42,7 @@ Run this on a personal or trusted machine, because your API key is visible to local users through the command line or config file. This bot uses OAuth to authenticate with twitter. Please create a -~/.humbug_twitterrc with the following contents: +~/.zulip_twitterrc with the following contents: [twitter] consumer_key = @@ -91,10 +91,10 @@ try: access_token_key = config.get('twitter', 'access_token_key') access_token_secret = config.get('twitter', 'access_token_secret') except (ConfigParser.NoSectionError, ConfigParser.NoOptionError): - parser.error("Please provide a ~/.humbug_twitterrc") + parser.error("Please provide a ~/.zulip_twitterrc") if not (consumer_key and consumer_secret and access_token_key and access_token_secret): - parser.error("Please provide a ~/.humbug_twitterrc") + parser.error("Please provide a ~/.zulip_twitterrc") try: since_id = config.getint('search', 'since_id') @@ -157,7 +157,7 @@ for status in statuses[::-1][:opts.limit_tweets]: if ret['result'] == 'error': # If sending failed (e.g. no such stream), abort and retry next time - print "Error sending message to humbug: %s" % ret['msg'] + print "Error sending message to zulip: %s" % ret['msg'] break else: since_id = status.GetId()