To install dependencies:
bun installTo run:
bun dev(for dev)
bun start(for production)
Files:
├── LICENSE
├── README.md
├── cache (git ignored, autogenerated, can be safely deleted at anytime)
├── config.ts
├── data (git ignored, autogenerated, contains bot data)
├── eslint.config.js
├── logs (git ignored, autogenerated, can be safely deleted at anytime)
├── package.json
├── src
│ ├── cache.ts
│ ├── client.ts
│ ├── commands
│ │ ├── utilities.ts
│ │ └── youtube.ts
│ ├── commands.ts
│ ├── database.ts
│ ├── events
│ │ ├── autoCommands.ts
│ │ ├── chatCommands.ts
│ │ ├── error.ts
│ │ ├── ready.ts
│ │ └── warn.ts
│ ├── index.ts
│ ├── innertube
│ │ └── functions.ts
│ ├── logging.ts
│ ├── types
│ │ ├── channelType.d.ts
│ │ └── commands.d.ts
│ └── utilities.ts
└── tsconfig.json
events has Discord.JS events like interactionCreate (for each application command event type (chatInput, ...etc)) and clientReady here.
commands is a categorized folder full off commands like ping (utilities.ts) that the bot will read when its initializing.
types is types for things that needs types. Right now when I'm writing this there is only commands.d.ts which is just types for the commands folder and the commands inside it so that the command
innertube has functions for getting data from youtube without an api key.
btw, this project was created using bun init in bun v1.0.29. Bun is a fast all-in-one JavaScript runtime.
(This is my first time setting up an opensource repository so that other could read the code so im so sorry for the mess i have done lol)