Skip to content

Latest commit

 

History

History
76 lines (50 loc) · 1.45 KB

README.md

File metadata and controls

76 lines (50 loc) · 1.45 KB

⚠️ Fleco Proof of Concept

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.

Delpoyments

Setup DB

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: 5432

Then, execute the command below, replacing <config> with the path to your config.

npm run db:setup -- --config '<config>'

How to Install

NodeJS

NVM Installation

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
source ~/.bashrc

Node Installation

nvm install --lts --default --latest-npm

Bun

Bun Installation

curl -fsSL https://bun.sh/install | bash

How to run

Bun

bun start:bun -- --config /path/to/config

NPM

npm run start -- --config test_config.yml

PNPM

pnpm run start --config test_config.yml