Deaths have benefits. They can fertilise the ground.
Warning
You must use the LTS version of Node.js, Stable will NOT work. Your computer will spontaneously combust.
If you try to install better-sqlite3
on Node.js Stable, reverting any damages will be, uh, quite difficult.
The bot was last tested on Node.js v22
Due to our dependency on better-sqlite3
, you need C++ build tools:
- On Windows these will automatically be installed by
npm
- On macOS, install Xcode
- On Linux, install GCC or any similar compiler
-
- For Ubuntu,
sudo apt install build-essential
- For Ubuntu,
- Run
npm i
to install packages - Rename
config.example.json
toconfig.json
and set your own values - Run
npx pm2 start ecosystem.config.js
- Profit
- PM2 will NOT survive a reboot, you have to restart the bot using
npx pm2 start mao
- On macOS/Linux you can configure automatic startup of the bot: PM2 - Startup Script
- Windows users, uhhhhhhhhhhhh, skill issue i guess????????????