The config file supports JSON5 syntax. It supports both .json and .json5 extensions if you prefer one over the other.

Constructors

Properties

activity: string = ...

The activity status shown under the bot's name in the user list

"!mark help" for help
!mark help

ACTIVITY

devGuildId: undefined | string = process.env.DEV_GUILD_ID

This guild ID should be declared if you want its commands to update immediately during development

1234567890

DEV_GUILD_ID

logLevel: string = ...

Log level in lower case. Can be [silent, error, warn, info, debug, trace]

debug
info

LOG_LEVEL

maxTries: number = ...

The number of tries the sentence generator will try before giving up

2000
1000

MAX_TRIES

messageCommandPrefix: string = ...

The command prefix used to trigger the bot commands (when not using slash commands)

!bot
!mark

MESSAGE_COMMAND_PREFIX

minScore: number = ...

The minimum score required when generating a sentence. A relative "score" based on the number of possible permutations. Higher is "better", but the actual value depends on your corpus.

15
10

MIN_SCORE

ownerIds: string[] = ...

A list of Discord user IDs that have owner permissions for the bot

["82684276755136512"]
[]

OWNER_IDS (comma separated)

slashCommandName: string = ...

The slash command name to generate a message from the bot. (e.g. /mark)

message
mark

SLASH_COMMAND_NAME

stateSize: number = ...

The stateSize is the number of words for each "link" of the generated sentence. 1 will output gibberish sentences without much sense. 2 is a sensible default for most cases. 3 and more can create good sentences if you have a corpus that allows it.

3
2

STATE_SIZE

timezone: string = ...
America/Chicago
UTC

TZ

token: string = ...

Your Discord bot token

k5NzE2NDg1MTIwMjc0ODQ0Nj.DSnXwg.ttNotARealToken5p3WfDoUxhiH

TOKEN

userRoleIds: string[] = ...

If provided, the standard "generate response" command will only work for a user in this list of role IDs. Moderators and owners configured in ownerIds do not bypass this check, so make sure to add them to a valid role as well.

["734548250895319070"]
[]

USER_ROLE_IDS (comma separated)