Make sure you have made a discord bot account!
Docker and Docker-compose are needed for docker installations.
Pipenv and Python 3.7 are needed for non-docker installs.
RethinkDB needs to be installed for non-docker installs.
If you want to use the scipts provided, this is the easiest way to install the bot.
This will work for docker and non-docker installs.
Clone or download the repository.
$ git clone https://github.com/Sharpz7/sharpbot-discord.git $ cd sharpbot-discord
For unix, make sure the script is executable.
$ chmod u+x scripts/deploy.sh
Now that it is executable, run the bash or powershell script and it should install!
$ scripts/deploy.sh $ scripts/deploy.ps1
You can use these scripts everytime you want to run the bot - It will automatically keep it updated!
This is a example without docker. If you want to use docker, its highly recommended you use the scripts.
Clone or download the repository.
$ git clone https://github.com/Sharpz7/sharpbot-discord.git $ cd sharpbot-discord
Install all the requirements using pipenv.
$ pipenv install
Create a .env file and put your key inside this file.
$ touch .env
SECRET=<YOUR-KEY>
NO_DOCKER=TRUE
Download and install a recent RethinkDB package and run. Now run the code by doing:
$ pipenv run python run.py
Non docker installs require python 3.7!!
-
Sharp / @Sharpz7
-
Kingsley McDonald / @kingdom5500
-
issuemeaname / @issuemeaname
// Required
SECRET=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
RESTART=no
// Not Required
NO_DOCKER=FALSE
USE_DOCKERHUB=TRUE
RethinkDB=location/of/rethink/install
DEVMODE=TRUE
CICD=TRUE
DOCKERU=<docker_username>
DOCKERP=<docker_password>
SKIPBUILD=TRUE