a discord bot programmed with spite
anything you can do, i can do better
programmed with node.js, utlizing the discord.js v13 library hosted on debian 11 (bullseye) OS via AWS
this repo exists to showcase the barebones features of the production bot. expect end result from some of these to differ from Bartholomew
newbie here learning? add these to the bottom of your index file to trace errors.
process.on("uncaughtException", (error) => {
console.log("Exception Error: " + error)
});
process.on("unhandledRejection", (reason, promise) => {
console.log("Promise Error: ", promise, " info: ", reason.message)
});
spoodfeed for installing node on debian:
# login as root
su -
# add repo and install
curl -fsSL https://deb.nodesource.com/setup_17.x | bash -
apt-get install -y nodejs
# exit root
exit
# install dependencies
npm install discord-api-types discord.js @discordjs/builders @discordjs/rest shuffle-array
spoonfeed for installing better-sqlite3 (optional persistent db) on debian:
# install compilers and python
sudo apt-get install build-essential
sudo apt-get install python
# install better-sqlite3 and dependency
npm install node-gyp better-sqlite3