archangelic / pinhook

the pluggable python framework for IRC bots and Twitch bots
https://archangelic.github.io/pinhook/
MIT License
31 stars 4 forks source link

Output type as an Enum #35

Closed Lucidiot closed 5 years ago

Lucidiot commented 5 years ago

Use an Enum class for output types instead of hardcoded strings. This should make maintenance and unit testing easier.

Since enums were added in Python 3.4, this adds a enum34 requirement to backport it to all supported pinhook versions.

Fixes #32

archangelic commented 5 years ago

thanks so much! I was a bit confused about this, and this is actually nice instead of relying on the hardcoded strings