chr-1x / hmh_bot

Python modules for the Willie IRC bot used in the Handmade Hero twitch chat.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conditionally enable modules/commands based on proximity to stream time

chr-1x opened this issue · comments

This could happen in response to time or in response to irc user count.

[Claimed] This issue is now in progress. I plan to add function decorators at 4 levels:

  • Always whitelisted
  • Always admin-only
  • Whitelisted during stream times only
  • Admin-only during stream times only

I will also look into ways of doing this to whole modules - this may necessitate on-the-fly unloading and reloading of modules in response to time-based events and should build on the system used in issue #6

The decorators have been implemented as of commit 4b2e3ca with some bugfixes after that commit. Module accessibility still needs to be done. Look into willie's build in "!reload" command which does something to unload and reload modules at runtime.