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/discordversion: "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=PrismarineJSfile 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 startgit clone https://github.com/Zn10plays/PJS
cd PJS
yarn
yarn devUse 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