This bot provides editorial guidance on request. The guidance is based on the University of Bath's digital style guides.
Clone this repo and run bundle install
.
Follow the slack-ruby-bot documentation to create and register your bot and get an API token.
Invite the bot to a channel.
To start the bot:
- Set the SLACK_API_TOKEN environment variable
cd
to the folder where the bot is- Run
bundle exec ruby editorial-bot.rb
Say hi to the bot.
@editorial-bot hi
It will say hi back.
Say 'rtm', followed by a keyword.
rtm images
The bot will try to find guidance that matches this keyword and post a link to it.
Say 'style guide for', followed by a keyword.
style guide for dates
The bot will check the editorial style guide for relevant guidance and post it to the channel.
If someone in the channel tries to bring up bulleted lists, the bot will react appropriately to avert any debate.
This project is licensed under an Apache 2.0 license. See the LICENSE file for details.