From 6456fd689fa72930b0fe7484d311424899fbe6b9 Mon Sep 17 00:00:00 2001 From: jowj Date: Tue, 28 May 2019 21:40:30 -0500 Subject: [PATCH] Reference the new Webclient instead of SlackClient. --- mojojojo-bot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mojojojo-bot.py b/mojojojo-bot.py index 438b2ca..9e61a59 100644 --- a/mojojojo-bot.py +++ b/mojojojo-bot.py @@ -5,13 +5,13 @@ import logging import json from pathlib import Path -from slackclient import SlackClient +from slack import WebClient from json import JSONDecoder from random import randint from functools import partial # instantiate Slack client -slack_client = SlackClient(os.environ.get('SLACK_BOT_TOKEN')) +slack_client = WebClient(os.environ.get('SLACK_BOT_TOKEN')) # starterbot's user ID in Slack: value is assigned after the bot starts up starterbot_id = None # channel i want to get ID from