Andygmb / twitchy_the_bot

A reddit bot that gets twitch.tv streams from wiki pages and adds them to the subreddit's sidebar if they are live.
MIT License
18 stars 12 forks source link

Error out if /wiki/twitchbot_config does not have correct permissions #29

Closed Andygmb closed 9 years ago

Andygmb commented 9 years ago

as /wiki/twitchbot_config can add links to the sidebar, it should only ever be editable by moderators. It's possible that forgetful mods may forget to make the twitchbot_config wiki page mods-only, so in setup.py make sure to set the permissions to mod only, and in twitchy.py if the permissions are not correct, refuse to run.

Andygmb commented 9 years ago

Decided to go with using warnings.warn instead of stopping the bot - there may be wiki page permission setups that are necessary for other things that the mods may decide to use which conflict with having it as mod-only. In setup.py the permissions will be set properly however.