This is a proof of concept for Fleco. designed to work with the latest discord.js version. The changes include a switch to typescript for types, addition of eslint rules, multiple package managers and multiple runtimes (NodeJS & Bun).
I feel it is important that these changes are implemented for a better development expierence and to try to keep the codebase neater. With the multiple runtimes, why not?
This will be updated as time goes on adding on the features of the bot.
More deployment features will also be added.
First, fill in your db credentials in whatever config file you would like to use:
database:
host: 127.0.0.1
user: <user>
pass: <pwd>
name: fleco
port: 5432Then, execute the command below, replacing <config> with the path to your config.
npm run db:setup -- --config '<config>'curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrcnvm install --lts --default --latest-npmcurl -fsSL https://bun.sh/install | bashbun start:bun -- --config /path/to/confignpm run start -- --config test_config.ymlpnpm run start --config test_config.yml