+
Skip to content

drewwhiz/first-discord-bot

Repository files navigation

FIRST Discord Bot

build workflow publish workflow

Docker

This project can be started by using the docker-compose.yml file.

This project requires a secrets folder in the same directory as the docker-compose.yml file, containing one file for each secret. The expected values include:

  • discord_token.txt: Your Discord API token.
  • application_id.txt: Your Discord application ID.
  • server_guild_id.txt: Your Discord server ID.
  • weather_api_key.txt: The API key for https://www.weatherapi.com.
  • default_zip.txt: The default ZIP code to use for https://www.weatherapi.com.
  • restricted_channel.txt: A safe channel for mentor-only content.
  • mod_report_channel.txt: The channel red and yellow cards should be reported to.
  • serious_channels.txt: A comma-separated list of channels that joke actions should not run in.
  • db_host.txt: The container name of the MySQL database in the Docker network.
  • db_password.txt: The root password for the MySQL database in the Docker network.
  • db_port.txt: The port for the MySQL database container in the Docker network.

Migrations

To add a new migration:

knex migrate:make NAME --client mysql2 --migrations-directory src/migrations -x ts

Seed

To add a new seed:

knex seed:make ../src/seeds/NAME -x ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载