Skip to content
/ Kronos Public

Discord.JS Bot that uses MongoDB to store users game sessions. Currently setup to be used through Docker.

Notifications You must be signed in to change notification settings

Dsiman/Kronos

Repository files navigation


Logo

Kronos

A Discordjs Bot built with the intention of collecting user sessions in games and saving them to a database. You can also use the Docker container listed below. Recently I have rewritten the database to include the activity object discord returns for each member.

Built With

(back to top)

Prerequisites

  • You will need to obtain a Discord Bot TOKEN
    https://discord.com/developers/applications
  • Npm (If you intend to use this as a nodejs app)
    npm install npm@latest -g
  • Docker (If you intend to use docker use this)
    https://hub.docker.com/repository/docker/damianisaacs/kronos

NodeJs Installation

  1. Clone the repo
git clone https://github.com//Dsiman/Kronos.git
  1. Navigate to the download location and install NPM packages
npm install
  1. Make a mongodb database to store your sessions
https://www.mongodb.com/
  1. Enter your enter your Discord bot token and mongodb connection string in your environment variables( or in a .env folder in the root of the bot)
token=somestringprovidedbydiscorddeveloperportal
mongoURI=mongodb+srv://<Username>:<Password>@mongodb.com/<Database>
  1. Run your bot
npm start

Docker Installation

  1. Install docker
https://docs.docker.com/get-docker/
  1. Get Kronos from dockerhub
docker pull damianisaacs/kronos
  1. Define your environment variables
/* make a .env file containing */
token=somestringprovidedbydiscorddeveloperportal
mongoURI=mongodb+srv://<Username>:<Password>@mongodb.com/<Database>
  1. Run your bot
docker run --env-file .env damianisaacs/kronos
  1. Invite your bot to the server
https://discord.com/developers/applications/<YourBotAppID>/oauth2/url-generator

(back to top)

Contact

Discord

Email

Docker

Github

(back to top)

Donate

Cashapp

(back to top)

About

Discord.JS Bot that uses MongoDB to store users game sessions. Currently setup to be used through Docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published