Skip to content

Commit

Permalink
changed to tke server
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinz committed Oct 25, 2018
1 parent f6cba57 commit cdbac44
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
18 changes: 6 additions & 12 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions slackbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
from slackclient import SlackClient

from game import Game
# from league import League
from league_sqlite import League
from league import League
# from league_sqlite import League

# instantiate Slack client
# tkezm xoxb-32580638016-463335718673-Z4VqRPPcdYmrH86qwHQaITPh
# testing xoxb-292507756724-aROyaerbZPfCnwc3gbwjdPTj
slack_client = SlackClient("xoxb-292507756724-aROyaerbZPfCnwc3gbwjdPTj")
slack_client = SlackClient("xoxb-32580638016-463335718673-Z4VqRPPcdYmrH86qwHQaITPh")
# starterbot's user ID in Slack: value is assigned after the bot starts up
starterbot_id = None

Expand Down Expand Up @@ -122,7 +122,7 @@ def handle_command(command, channel, user):
while True:
command, channel, user = parse_bot_commands(slack_client.rtm_read())
if command:
# if channel == "CDMTQ45V0": # If mariokart channel on tkezm
if channel == "CDMTQ45V0": # If mariokart channel on tkezm
handle_command(command.split(), channel, user)
time.sleep(RTM_READ_DELAY)
else:
Expand Down

0 comments on commit cdbac44

Please sign in to comment.