Update to rtmbot 0.3.0

Merge tag '0.3.0'
This commit is contained in:
Eryn Wells 2016-09-11 12:19:01 -04:00
commit 80527cbe6e
23 changed files with 256 additions and 27 deletions

View file

@ -1,11 +1,13 @@
#!/usr/bin/env python
import sys
from argparse import ArgumentParser
import sys
import os
import yaml
from rtmbot import RtmBot
import client
import service
sys.path.append(os.getcwd())
def parse_args():
parser = ArgumentParser()
@ -23,7 +25,7 @@ config = None
with open(args.config or 'rtmbot.conf', 'r') as f:
config = yaml.load(f)
service.slack = service.SlackService(config.get('SLACK_TOKEN'))
bot = RtmBot(config)
bot = client.init(config)
try:
bot.start()
except KeyboardInterrupt: