Skip to content

Commit 2418c00

Browse files
committed
change names of slack config variables #50
1 parent 53dc4cd commit 2418c00

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

pybot/__main__.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919
VERSION = "0.1.0"
2020
logger = logging.getLogger(__name__)
2121

22+
slack_configs = {
23+
'token': os.environ.get('BOT_OATH_TOKEN'),
24+
'verify': os.environ.get('VERIFICATION_TOKEN'),
25+
'bot_id': os.environ.get('SLACK_BOT_ID'),
26+
'bot_user_id': os.environ.get('SLACK_BOT_ID'),
27+
}
28+
2229

2330
def make_sentry_logger():
2431
client = raven.Client(
@@ -46,7 +53,7 @@ def make_sentry_logger():
4653

4754
bot = SirBot()
4855

49-
slack = SlackPlugin()
56+
slack = SlackPlugin(**slack_configs)
5057
endpoints.slack.create_endpoints(slack)
5158
bot.load_plugin(slack)
5259

0 commit comments

Comments
 (0)