Skip to content

Instantly share code, notes, and snippets.

@alairock
Created June 5, 2017 01:51
Show Gist options
  • Save alairock/13f50bc8987ae0d8132df2bd44d927fc to your computer and use it in GitHub Desktop.
Save alairock/13f50bc8987ae0d8132df2bd44d927fc to your computer and use it in GitHub Desktop.
sirbot boilerplate
git+git://github.com/pyslackers/sir-bot-a-lot.git@master
git+https://github.com/pyslackers/sirbot-slack.git@master
git+https://github.com/pyslackers/sirbot-plugins.git@master
sirbot:
port: 8080
plugins:
- sirbot.plugins.sqlite
- sirbot.slack
slack:
priority: 20
save:
messages: true
events: false
commands: true
actions: true
endpoints:
commands: "/commands"
actions: "/buttons"
sqlite:
priority: 80
file: 'sirbot.sqlite'
logging:
version: 1
formatters:
simple:
format: '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
handlers:
console:
class: logging.StreamHandler
level: DEBUG
formatter: simple
stream: ext://sys.stdout
file:
class: logging.handlers.RotatingFileHandler
filename: sirbot.log
maxBytes: 5242880
backupCount: 7
level: WARNING
formatter: simple
loggers:
sirbot:
level: DEBUG
handlers: [file, console]
propagate: no
sirbot.plugins.sqlite:
level: WARNING
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment