sharkbound / PythonTwitchBotFramework

asynchronous twitchbot framework made in pure python
MIT License
100 stars 26 forks source link

Added an implementation of counters with custom command integration #47

Closed Fab-Ko closed 2 years ago

Fab-Ko commented 2 years ago

The framework is extendet by a database based counter functionallity.

Additions: Permissions: manager_counter Commands: addcounter, delcounter, setcounter, listcounters Counter support for custom commands with placeholder %counter. The complete command name "!command" is used as alias.

For easier usage a function "increment_or_add_counter" is implemented, which will just create a counter, if not already existing. All counters can be manipulated with the above mentioned commands.

Limitations: Only one counter per custom (database) command is supported.