Recandied is a simplistic discord bot that displays Eeveelution images and some other commands. This bot functions through http interactions rather than the gateway, making this bot really lightweight as it doesn't need to load any events.
- node.js 18 or newer is needed to run this bot.
- You need a vps or web server to host this bot. It's the easiest way tbh.
To get Recandied up and running, you need to follow these steps. By self hosting Recandied, it's assumed you have a vps, and you know what you're doing. If you plan on running Recandied locally, you need to setup a https tunnel or Discord will not allow you to run step 5. The steps are as followed:
- Setup your vps/web server, and fork the Recandied's source code.
- Create a new app on the Discord developer website.
- Configure the
example.env
file, copy the needed values from the site to the variables. - Rename
example.env
to.env
. - Modify Interactions Endpoint URL on the developer website to your web server's url.
- Run
npm i
to install Recandied's dependencies. - Run
npm run register
to register all of Recandied's slash commands and context menus. - Run
npm start
to start the bot.
Note: In most cases, the bot will not restart if the process dies due to a crash or any other reasons. In this case you should install pm2 on your vps as it will restart Recandied in the case of a crash. You can set pm2 up here.
Contributing to Recandied requires making a pull request. To do so, fork this repository. When you are done, make a pull request.
Every image Recandied has is stored in the images.json
file. Changing these values will add and remove images from Recandied's responses. Images must be links to other websites as http apps cannot post images to the cdn (at least, not easily). You can use sites like imgbox or Google photos to do so.
You can add commands by creating a new file in the commands
folder. You can use other commands as templates for your command.