mirror of
https://github.com/pacnpal/markov-discord.git
synced 2025-12-20 19:01:06 -05:00
Added several things: Parser to import JSON from DiscordChatExporter, ability to train without bot running and more.
This commit is contained in:
@@ -163,4 +163,19 @@ export class AppConfig {
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
devGuildId = process.env.DEV_GUILD_ID;
|
||||
|
||||
/**
|
||||
* A list of channel IDs where the bot will respond to mentions.
|
||||
* If empty, the bot will respond to mentions in any channel.
|
||||
* @example ["734548250895319070"]
|
||||
* @default []
|
||||
* @env RESPONSE_CHANNEL_IDS (comma separated)
|
||||
*/
|
||||
@IsArray()
|
||||
@IsString({ each: true })
|
||||
@Type(() => String)
|
||||
@IsOptional()
|
||||
responseChannelIds = process.env.RESPONSE_CHANNEL_IDS
|
||||
? process.env.RESPONSE_CHANNEL_IDS.split(',').map((id) => id.trim())
|
||||
: [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user