Skip to content

Commit

Permalink
starboard config
Browse files Browse the repository at this point in the history
  • Loading branch information
ezrizhu committed Mar 17, 2022
1 parent 8c03b17 commit 62e50cb
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 0 deletions.
9 changes: 9 additions & 0 deletions roles/discbot/tasks/bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,15 @@
force: false
owner: duck
group: duck

- name: copy over starboard db
copy:
remote_src: true
src: /srv/Duck26.{{ item.env }}/starboard_messages.json.example
dest: /srv/Duck26.{{ item.env }}/starboard_messages.json
force: false
owner: duck
group: duck

- name: setup systemd service
template:
Expand Down
5 changes: 5 additions & 0 deletions roles/discbot/templates/duck_bot_config.toml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,8 @@ prefix = "{{ item.prefix }}"

[Permissions]
addReactionRoles = {{ item.addReactionRoles }}

[Starboard]
reactionThreshold = {{ item.reactionThreshold }}
starboardEmoji = "{{ item.starboardEmoji }}"
starboardChannelId = {{ item.starboardChannelId }}
6 changes: 6 additions & 0 deletions roles/discbot/vars/envs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ env:
cogs: ["cogs.commands.reaction_roles_command", "cogs.events.reaction_event", "cogs.commands.ping_command"]
prefix: "!db"
addReactionRoles: ["950400206506168411"]
reactionThreshold: 2
starboardEmoji: ""
starboardChannelId: 940462466134052864
- prod:
env: "prod"
token: "{{ token_prod }}"
cogs: ["cogs.commands.reaction_roles_command", "cogs.events.reaction_event", "cogs.commands.ping_command"]
prefix: "!db"
addReactionRoles: ["950230130087833680"]
reactionThreshold: 5
starboardEmoji: ""
starboardChannelId: 953831620643790939

0 comments on commit 62e50cb

Please sign in to comment.