This guide is for people who were running their own 2.x instance of the bot.
This bot now runs Discord.js v14, which requires Node.js 16.11.0 or later.
Something like nvm can make the transition
easier.
This bot is also now written in TypeScript and runs natively using ts-node.
We do not transpile down to JavaScript! For hosting the bot, the only thing this
should affect is the install size (2.0 was ~64 MB, 3.0 is ~114 MB).
- Get the updated bot code. Either:
git pull origin masterif you cloned with git (which you should).- Download the
masterbranch from GitHub as a zip file, and extract it.
- In your
config.json:- Rename
app_idtoapp. - Rename
guild_idtoguild(if you have it).
- Rename
- Install updated dependencies:
npm ci. - You may need / want to update your
reactionrolebot.servicedefinition.- Added instructions on how to run as a user service.
- Changed
WantedByto bedefault.targetinstead ofmulti-user.target. - Removed
Userfield in favor of running as a user service.
- Restart the bot.
- Running as a service:
systemctl restart reactionrolebot.service - Running in dev-mode:
npm start --config path/to/your/config.json
- Running as a service: