cannawen / dota-gsi-discord-bot

Use Dota 2's Game State Integration API to make helpful announcements in a discord voice channel
MIT License
5 stars 2 forks source link

[chore] refactor decorators to just be a function that takes in a rule and adds behaviour to it instead of a class #65

Closed cannawen closed 1 year ago

cannawen commented 1 year ago

Instead of using the decorator pattern, just make the decorators a function that wrap a rule

Rename RuleDecoratorStartAndEndMinute to BetweenMinutes(min, max, rule)