🚧 I did not test any of the functions or the commands. It's all blind coded but with TypeScript's help, I think it will work fine. Still, I don't take responsibility of any kind of result but the good ones...
Yes, I did it, I recoded everything in a better file structure and system with TypeScript. Everything is even better now. But it is harder to run now :)
You'll need some simple things to run this bot Node.js, Yarn (npm i -g yarn
), TypeScript (npm i -g typescript
), a Discord Bot Application and a running MySQL server (because it was mainly built on MySQL).
- Clone the repo to your computer and
cd
into it. - Install modules with
yarn
. - Go to
src/
and renameconfig.example.ts
toconfig.ts
and fill every field. - If you want to run it in development mode with hot reloading on file change, run
yarn dev
. - If you want to build and get the compiled (Node executable) files, run
yarn build
. To start the bot, runyarn start
.
Follow me on GitHub, my website and/or my Twitter, this was fun to make.