Navigation Menu

Skip to content

Commit

Permalink
fix proxy list
Browse files Browse the repository at this point in the history
  • Loading branch information
jimlyndon committed Jun 18, 2015
1 parent 7cd4297 commit f5f6fee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/changetip_twitch.py
Expand Up @@ -47,7 +47,7 @@ def process_command(self, channel, sender, message):
"receiver": "%s" % receiver,
"message": message,
"context_uid": self.unique_id(channel+" "+sender+": "+message),
"meta": {"context_url": "twitch.tv/%s" % channel.replace("#", "")}
"meta": {"context_url": "http//:www.twitch.tv/%s" % channel.replace("#", "")}
}
response = self.send_tip(**tip_data)
if response.get("error_code") == "invalid_sender":
Expand Down
11 changes: 5 additions & 6 deletions src/master.py
Expand Up @@ -22,12 +22,11 @@ def __init__(self):

# Connections and Proxies
self.proxies = []
proxy_list = None # os.getenv("TWITCH_PROXIES", None)
if proxy_list is not None:
proxy_list = os.getenv("TWITCH_PROXIES", "").split(",")
for proxy in proxy_list:
proxy_info = proxy.split(":")
self.proxies.append({"address": proxy_info[0], "port": int(proxy_info[1])})

proxy_list = os.getenv("TWITCH_PROXIES", "").split(",")
for proxy in proxy_list:
proxy_info = proxy.split(":")
self.proxies.append({"address": proxy_info[0], "port": int(proxy_info[1])})

# Change Tip
self.ChangeTip = ChangeTipTwitch()
Expand Down

0 comments on commit f5f6fee

Please sign in to comment.