Fix config.ts and add more comments
This commit is contained in:
@@ -3,9 +3,11 @@
|
||||
## Run
|
||||
|
||||
1. Setup the environment variables in `.env`
|
||||
2. `docker compose up -d`
|
||||
2. Modify `config.ts` if you want.
|
||||
3. `docker compose up -d`
|
||||
|
||||
## Usage
|
||||
## Functionality
|
||||
|
||||
- Apply default role to new members while joining.
|
||||
- `/ping` repond with latency.
|
||||
- `/applyrole` apply role to everyone in the guild. (max 1000 people)
|
||||
- `/applyrole` apply role to everyone in the guild.
|
||||
|
||||
16
config.ts
16
config.ts
@@ -3,20 +3,20 @@ import dotenv from 'dotenv';
|
||||
dotenv.config();
|
||||
|
||||
export const config = {
|
||||
// Token and client id can be found in Discord Developer Protol.
|
||||
token: process.env.DC_TOKEN!,
|
||||
clientId: process.env.DC_CLIENTID!,
|
||||
|
||||
// The user that the bot will DM when starts.
|
||||
adminId: process.env.ADMIN_ID ?? '',
|
||||
|
||||
nickname: '橘ありす',
|
||||
playing: 'アイドルマスター シンデレラガールズ U149',
|
||||
defaultRole: process.env.DEFAULT_ROLE ?? '',
|
||||
urls: {
|
||||
author: 'https://konchin.com',
|
||||
icon: 'https://secure.gravatar.com/avatar/c35f2cb664f366e3e3365b9c22216834?d=identicon&s=512',
|
||||
help: '',
|
||||
git: 'https://git.konchin.com/discord-bot/Tanikaze-Amane',
|
||||
issue: 'https://git.konchin.com/discord-bot/Tanikaze-Amane/issues'
|
||||
},
|
||||
logger: {
|
||||
logFile: 'test.log',
|
||||
},
|
||||
|
||||
// The default role id to apply when new member join.
|
||||
// Can be obtained in Discord from right clicking the role.
|
||||
defaultRole: process.env.DEFAULT_ROLE ?? '',
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user