Skip to content
This repository was archived by the owner on Apr 17, 2025. It is now read-only.

Developer documentation

theBowja edited this page Apr 30, 2022 · 12 revisions

Setup in Pi

sudo apt install nodejs
sudo apt install npm
sudo npm install -g npm
npm install
sudo npm install -g forever
Create a new file called auth.json and add your bot's token into it.

{
  "token": "BOT_TOKEN_HERE"
}

Here's what worked for me: Linux. Node v12.22.5

To start: forever start bot.js

pwbContent, pwbUser, pwbChannel, pwbTarget

objects destructured in all the functions in commands.js

pwbContent = {
  summon: string,
  command: string,
  body: string
}
pwbUser = {
  dkidID: integer,
  permission: integer,
  discordid: string,
  guildid: string
}
pwbChannel = {
  chID: integer,
  discordchid: string,
  guildid: string,
  limitedto: integer
}

Clone this wiki locally