Class: FocaBotCore

FocaBotCore

The mother of all seals.

Constructor

new FocaBotCore(settings)

Instantiates a new Bot.
Parameters:
Name Type Description
settings object The settings object.
Properties
Name Type Description
prefix string Default bot prefix
token string Bot token
selfBot string Defines this bot as a selfbot
owner Array.<string> Bot owner user IDs
admins Array.<string> Global admin user IDs
adminRoles Array.<string> Admin role names
djRoles Array.<string> "DJ" role names
shardIndex number Current shard id
shardCount number Total shard count
modulePath string Path to load modules from
debug boolean True to enable debug mode
Source:

Members

bot

The discordie Client
Source:

commands :CommandManager

The command manager
Type:
Source:

guilds :GuildManager

The guild manager
Type:
Source:

modules :ModuleManager

The module manager
Type:
Source:

permissions :PermissionsManager

The permissions manager
Type:
Source:

settings

The settings object
Source:

Methods

establishConnection()

Establishes connection with discord.
Source:

log(type)

Logs stuff to the console.
Parameters:
Name Type Default Description
type number 0 0 for important stuff, 1 for debug info, 2 for errors.
Source:

processMessage(msg)

Processes messages.
Parameters:
Name Type Description
msg object Discordie message object
Source: