CoreSettings

Aggregate struct containing runtime bot setting variables.

Kept inside one struct, they're nicely gathered and easy to pass around. Some defaults are hardcoded here.

Members

Variables

brightTerminal
bool brightTerminal;

Flag denoting that the terminal has a bright background.

colouredOutgoing
bool colouredOutgoing;

Whether or not to add colours to outgoing messages.

configDirectory
string configDirectory;

Path to configuration directory.

configFile
string configFile;

Main configuration file.

eagerLookups
bool eagerLookups;

Whether to eagerly and exhaustively WHOIS all participants in home channels, or to do a just-in-time lookup when needed.

exitSummary
bool exitSummary;

Whether or not to display a connection summary on program exit.

extendedColours
bool extendedColours;

Flag denoting that the bot should output text using extended ANSI sequences.

extendedOutgoingColours
bool extendedOutgoingColours;

Whether or not to add extended colours to outgoing messages.

flush
bool flush;

Whether or not to explicitly set stdout to flush after writing a linebreak to it.

force
bool force;

Whether or not to force connecting, skipping some sanity checks.

headless
bool headless;

Whether or not to be "headless", disabling all terminal output.

hideOutgoing
bool hideOutgoing;

Whether or not to hide outgoing messages, not printing them to screen.

monochrome
bool monochrome;

Logger monochrome setting.

monochrome
bool monochrome;

Non-colours version defaults to true.

numericAddresses
bool numericAddresses;

Whether to print addresses as IPs or as hostnames (where applicable).

observerMode
bool observerMode;

Enables observer mode, which makes the bot ignore all commands (but process other events).

preferHostmasks
bool preferHostmasks;

Flag denoting that usermasks should be used instead of accounts to authenticate users.

prefix
string prefix;

Character(s) that prefix a bot chat command.

reexecToReconnect
bool reexecToReconnect;

Re-executes the program instead of reconnecting hot.

resourceDirectory
string resourceDirectory;

Path to resource directory.

saveOnExit
bool saveOnExit;

Flag denoting that we should save configuration changes to file on exit.

trace
bool trace;

Whether or not *all* outgoing messages should be echoed to the terminal.

Meta