feat: Slash Commands (#337)

* feat: add discord interactions worker

* feat(interactions): update CI/CD and terraform to add interactions

* chore: fix lint issues

* chore: fix build & emulation

* fix(interactions): deployment + handler

* chore: remove worker-dist via gitignore

* feat: add /pickable-roles and /pick-role basis

* feat: add pick, remove, and update the general /roleypoly command

* fix: lint missing Member import
This commit is contained in:
41666 2021-08-01 20:26:47 -04:00 committed by GitHub
parent dde05c402e
commit 066f68ffef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
59 changed files with 1219 additions and 248 deletions

View file

@ -59,8 +59,14 @@ variable "api_public_uri" {
variable "api_path_to_worker" {
type = string
description = "Path to worker JS, relative to this file/terraform folder."
default = "worker-dist/backend-worker.js"
description = "Path to API worker JS, relative to this file/terraform folder."
default = "worker-dist/api.js"
}
variable "interactions_path_to_worker" {
type = string
description = "Path to interactions worker JS, relative to this file/terraform folder."
default = "worker-dist/interactions.js"
}
variable "root_users" {
@ -86,7 +92,18 @@ variable "bot_tag" {
description = ":tag or @sha265: of ghcr.io/roleypoly/bot"
}
variable "worker_tag" {
type = string
default = ""
description = "Usually the commit hash, this invalidates some secrets that can always be rotated"
}
variable "allowed_callback_hosts" {
type = string
default = ""
}
variable "discord_public_key" {
type = string
description = "Discord Interactions Public Key"
}