Setting up a simple bot command framework and linter/formatter #1

Merged
w388zhan merged 1 commits from init-setup into master 2021-05-10 23:50:21 -04:00
2 changed files with 6 additions and 2 deletions
Showing only changes of commit ab5ab15a29 - Show all commits

View File

@ -1,6 +1,10 @@
# Codey Bot
## Required environment variables
- `BOT_TOKEN`: the token found in the bot user account.
- `NOTIF_CHANNEL_ID`: the ID of the channel the bot will send system notifications to.
## Running the bot locally
1. Run `yarn` to install dependencies.
1. Add the bot token in your `.env` file, i.e. add `BOT_TOKEN="YOUR_TOKEN"` in `.env`.
1. Add the required environment variables in a `.env` file in the root directory.
1. Run `yarn dev` to start the bot locally.

View File

@ -4,7 +4,7 @@ dotenv.config()
import Discord = require('discord.js')
import _ = require('lodash')
const NOTIF_CHANNEL_ID = "701335585272627203"
const NOTIF_CHANNEL_ID: string = process.env.NOTIF_CHANNEL_ID
const BOT_TOKEN: string = process.env.BOT_TOKEN
const BOT_PREFIX = "."