Update to rtmbot 0.3.0
Merge tag '0.3.0'
This commit is contained in:
commit
80527cbe6e
23 changed files with 256 additions and 27 deletions
10
rtmbot.py
10
rtmbot.py
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue