1.2.1 • Published 3 years ago

discord-coc-bot v1.2.1

Weekly downloads
3
License
MIT
Repository
github
Last release
3 years ago

Discord COC Bot

Downloads Version License Node.js CI

This bot is a fork of Discord RPbot. Updates have been made for a better experience of playing Call of Cthulu. It is built with GRAF.

Have any questions/feedback? If you find any bugs or have suggestions, feel free to create an issue.

Install

Global bot

This is currently only a private used bot. Please contact me if you want to invite this bot in your Discord server.

Your own instance

You must be running Node.js 6.0.0 or newer.
Run sudo npm install -g discord-coc-bot --production --no-optional.

Note: Anonymous analytics are enabled by default. There is no identifiable or potentially private/unsafe information sent whatsoever. The only things that are being shared is the name of commands being run (no message contents), and an event for the bot starting up. This is so that I know how many people are using the bot, and what commands are being used the most. If you don't want anything being sent at all, run RPBot with the --no-analytics option, or set analytics to false in your config file.

Chat commands

See GRAF's command documentation for information about its built-in commands, and how to use commands.

CommandDescription
rollRolls specified dice. (Uses dice-expression-evaluator)
maxrollCalculates the maximum possible roll for a dice expression.
minrollCalculates the minimum possible roll for a dice expression.
characterViews a character's information.
charactersLists/searches characters in the database.
addcharacterAdds a character to the database, or updates the existing one.
deletecharacterDeletes a character from the database.

Usage

Run rpbot --help for detailed usage, options, and examples.

Configure

Configuration can be specified on the command line, or in a JSON or YAML config file. Specify the config file with --config path/to/config.yml. The settings:

SettingDescription
tokenAPI token for the bot account
emailEmail of the Discord account for the bot to use (not needed if using token)
passwordPassword of the Discord account for the bot to use (not needed if using token)
databasePath to SQLite3 database file
database-verboseWhether or not SQLite3 should be put into verbose mode
storagePath to the storage directory
ownerDiscord user ID of the bot owner
inviteDiscord instant invite to a server to contact the owner
playing-gameText to show in the "Playing..." status
pagination-itemsNumber of items per page in paginated commands
update-checkHow frequently to check for an update (in minutes - use 0 to disable)
analyticsWhether or not to enable anonymous, non-unique, non-identifiable analytics
auto-reconnectWhether or not the bot should automatically reconnect when disconnected
command-prefixDefault command prefix (blank to use only mentions)
command-editableHow long a command message is editable (in seconds, use 0 to disable)
non-command-editWhether or not a non-command message can be edited into a command
logPath to the log file to output to
log-max-sizeMaximum size of a single log file (in bytes)
log-max-filesMaximum log files to keep
log-levelLog level to output to the log file (error, warn, info, verbose, message, debug)
console-levelLog level to output to the console (error, warn, info, verbose, message, debug)
log-messagesWhether or not all chat messages should be logged

For a more detailed list of configuration values, use rpbot --help.