Skip to content

Commit

Permalink
feat(schedulers): smart schedulers (#13)
Browse files Browse the repository at this point in the history
* feat(tests): unit tests
* feat(sheculers): schedulers tools command
* fix(tests): policies
* feat(schedulers): enable/disable schedulers action
  • Loading branch information
Ealenn authored Apr 4, 2021
1 parent e5469bc commit 5ab6eda
Show file tree
Hide file tree
Showing 26 changed files with 7,864 additions and 68 deletions.
21 changes: 18 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,25 @@ LARBIN_TWITCH_CHANNEL: example
### Sample

``` yaml
tools:
commands:
# Command to start/stop schedulers
# Example:
# !schedulers status
# !schedulers on
# !schedulers off
- type: schedulers
name: '!schedulers'
policies:
onlyMods: true # IMPORTANT
argOn: 'on'
argOff: 'off'
argStatus: 'status'
commands:
- name: '!facebook' # Command to write
random: true # Takes a random message from the list rather than following the order of the list
onlyMods: true # Only moderators can run this command
random: true # Takes a random message from the list rather than following the order of the list
policies:
onlyMods: true # Only moderators can run this command
messages:
- 'My Facebook is https://facebook.com/example'
- name: '!twitter'
Expand All @@ -88,7 +103,7 @@ events:
- 'Ah! We are talking about you {{ Username }} !'
- name: 'raided'
messages:
- 'Thanks to @{{ Username }} for this raid of {{ Viewers }} viewers !'
- 'Thanks to {{ Username }} for this raid of {{ Viewers }} viewers !'
- name: 'resub'
messages:
- 'Thanks {{ Username }} for your {{ Months }} with us ! -- {{ Username }} say: {{ Message }}'
Expand Down
Loading

0 comments on commit 5ab6eda

Please sign in to comment.