You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2b-bot-v2/src/lib/utils/Config.ts

42 lines
807 B
TypeScript

import {LogLevel} from "./BotLogger";
export abstract class Config {
/**
* The time a presence is shown before rotating to the nex one.
*/
public presenceDuration: number = 300000;
/**
* The number of commands that are allowed in a minute by one user.
*/
public rateLimitMessageCount: number = 30;
/**
* The discord bot token.
*/
public botToken: string;
/**
* logging configuration
*/
public logging: {
directory: string;
level: LogLevel;
};
/**
* The connection URI for the database.
*/
public dbUri: string;
/**
* The owners of the bot that have elevated privileges
*/
public owners: string[];
/**
* The prefix of the bot.
*/
public prefix: string;
}