Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

Latest commit

 

History

History
46 lines (29 loc) · 1.77 KB

setup.md

File metadata and controls

46 lines (29 loc) · 1.77 KB

How to run

Local setup

For Linux

  1. Run git clone https://github.com/xCrypt0r/Crucian.git to clone this repository

  2. Run cd Crucian to move to Crucian folder

  3. Run sudo apt-get install nodejs npm to install node.js and npm

  4. Run npm install to install all dependencies listed in package.json

  5. Run sudo apt-get install ffmpeg to install ffmpeg (for music bot features)

  6. Run npm start or node bot.js to start bot

Heroku setup

For Linux

  1. Run git clone https://github.com/xCrypt0r/Crucian.git to clone this repository

  2. Run cd Crucian to move to Crucian folder

  3. Run sudo snap install --classic heroku to install heroku-cli

  4. Run heroku local to start bot

Docker setup

For Linux

  1. Run git clone https://github.com/xCrypt0r/Crucian.git to clone this repository

  2. Run cd Crucian to move to Crucian folder

  3. Run sudo apt install docker.io to install docker

  4. Run sudo systemctl start docker && sudo systemctl enable docker to start docker and run automatically at startup

  5. Run sudo docker build -t crucian . to make docker image with Dockerfile This takes about 5-10 minutes, so be patient

  6. Run sudo docker run crucian to start bot

Common settings

  1. Edit .env.example to set process environment variables and Rename this file to ".env" The OWNER_ID field should contain your user ID (example: 504338669268631562) Click here to see how to get your user ID

  2. Edit assets/json/config.json according to your preference