BeeFox-sys / CinnamonRoll

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CinnamonRoll

This is a discord bot for roleplay. Inspired by PluralKit!

How to run!

You can add the bot to the server with this link

And you can join our support sever too!

Or keep reading for self-hosting options

With Docker

  1. Clone the repo: git clone https://github.com/PlatypodeCode/CinnamonRoll.git
  2. Create config.json in the same directory as sample-config.json (see for the layout), and set bot token: cp sample-config.json config.json
  3. Build the bot: docker-compose build
  4. Run it: docker-compose up -d

Manually

  1. Clone the repo: git clone https://github.com/PlatypodeCode/CinnamonRoll.git
  2. Run npm install to install dependencies
  3. Create config.json in the same directory as sample-config.json (see for the layout), and set bot token: cp sample-config.json config.json
  4. Run a mongo database on localhost and set the database URI in config.json to mongo://localhost (or wherever your mongo instance is running)
  5. Run node bot/main.js from the top of the directory to run the bot

Configuration

This bot uses a JSON file for configuration. The elements are explained below. owner and logChannel are optional.

  • defaultPrefix - default prefix that the bot sets on first-time setup
  • token - Bot token from Discord
  • db - Database URI pointing to a mongoDB instance
  • idCharacters - A string of characters that unique IDs will be generated from
  • idLength - Number of characters to generate IDs with
  • owner - Object containing Discord user ID and name of the bot owner (or anyone you want to grant superuser permission for)
    • id - The 18-digit user ID
    • name - Name to display (can be left blank)
  • logChannel - Discord channel ID where you want tracebacks to be posted (make sure this is private!)

Dependencies

  • discord.js 11.5.0 and up
  • mongoose 5.5.8 and up

About

License:GNU General Public License v3.0


Languages

Language:JavaScript 99.1%Language:Shell 0.8%Language:Dockerfile 0.1%