A standard run-of-the-mill economy bot with plenty of customizability that can be self-hosted.
- Clone this repository (
git clone https://github.com/CantisW/Sandconomy
) - Open Visual Studio Code or similar and open a terminal.
- Download PostgreSQL and set it up. Optionally, download a DB management service such as DBeaver.
- Put your username and password into
data-source.ts.default
undersrc
then rename it todata-source.ts
. Everything else is already set up. - Type in
npm i
in the terminal and wait for dependencies to install. - Set up the bot (see section below on instructions to set up the bot) and edit the settings under
src/data/bot-settings.json
. - Type in
npm start
.
Enjoy! Make sure it is set up and you have node.js (v16.14.0
or higher).
Go to the Discord Developer Portal and make a bot. Do this by making an application, then making it a bot.
You will need the bot's token, which is put into src/data/bot-settings.json
.
Please make sure that when inviting the bot to your server using the OAuth2 tab, you tick bot
AND application.commands
else the bot will not work. Because the bot is self-hosted, you can give the bot administrator, although you could also limit its permissions to sending messages and embeds.
- Fairly simple to set up system
- Slash commands
- Customizable economy commands
All bot settings are located in src/data
.
bot-settings.json
handles all bot-specific settings. Here is where you'll input your token and guild id.
'settings.json' handles the settings for your currency. Put in a name, adjust cooldowns, etc.