roberthawdon / toonbot

A plugin for Slack's python-rtmbot to send web comics via direct messages.
GNU General Public License v3.0
0 stars 0 forks source link

Toonbot

A plugin for Slack's python-rtmbot to send web comics via direct messages.

Install

Warning: These instructions are incomplete and will be refined as the project matures

Upgrading

Please backup your database before upgrading

Automatic upgrade instructions to be added at a later date

Manual upgrade instructions

Notes on upgrading from versions prior to 0.8.0

The configurations files have been changed for use with rtmbot 0.4, please see the installation instructions above. Comics are no longer included with the bot. Upon upgrading, the comics installed will unsupported and should be replaced with the classic comic pack. To do this, please do the following:

User Commands

Individual settings can be reset to defauls by passing reset as the argument.

Anything else passed to Toonbot is treated as a request to either subscribe or unsubscribe to a comic, if no comic matches what was entered, Toonbot will display an error.

Administrator Commands

Notes on timezones

As mentioned earlier, Toonbot uses the timezone you've set on your Slack profile to determine when it's best to send you comics. If you change your timezone, please allow for Toonbot to update its cache, this generally happens overnight depending on where you're located. Changes for DST are not required as Slack sends updated timezone offsets.

Notes on feedback function

The feedback function can be disabled by changing the FEEDBACK setting in the rtmbot.conf file to False. If upgrading from an old version, this line will be absent. By default the bot assumes the feedback option should be enabled.

Stored procedures

It's currently impossible to totally stop using the service, or to remove a comic from the database if someone's subscribed to it.

The following stored procedure can be run on the database in the event a user requires removing, this will also unsubscribe them from any comics:

CALL delete_user('U12345678');

The following can be called to remove a comic and unsubscribe users from it:

CALL delete_comic('comicname');

A whole comic pack can be removed from the database with this:

CALL delete_comic_pack('packname');

The following can be run to upgrade a user to an admin:

CALL make_admin('U12345678');