A discord bot for PrismarineJS
Using Docker is recommended for production
docker build -t prismarinejs/discord https://github.com/Zn10plays/PJS
docker run -e TOKEN=123 prismarinejs/discord
version: "3.8"
# Tip: Since this does not store any data, you don't have to add volumes
services:
pjs:
image: dada513/pjs-bot
environment:
- TOKEN=replace_this
- PREFIX=$pjs
- OWNER=discord_id
- INVITE=https://discord.gg/bcsU8wX8KX
- STATUS=PrismarineJS
file is located here
You need node.js and yarn or npm.
git clone https://github.com/Zn10plays/PJS
cd PJS
### If using yarn
yarn
yarn run build
yarn start
### If using npm
npm install
npm run build
npm start
git clone https://github.com/Zn10plays/PJS
cd PJS
yarn
yarn dev
Use a bot.json file
{
"token": "123"
}
OR you can use enviroment variables:
TOKEN="123"
You can also provide the arguments on the command line:
node dist/index.js --token 123