2023-08-24 12:06:39 -04:00
< p align = "center" >
2024-01-22 00:35:47 -05:00
< img width = "630" height = "250" src = "https://github.com/toast-ts/Daggerbot-TS/assets/96593068/87a3c8b2-2209-42f0-851c-6cdebf9ef740" >
2023-12-24 10:21:40 -05:00
< h1 align = "center" > Daggerbot V3 Description< / h1 >
2023-09-12 02:11:31 -04:00
< / p >
2024-03-02 07:14:39 -05:00
2023-12-24 10:21:40 -05:00
This is a repository for V3 revision that has been transitioned and rewritten from V2 bot to be more robust and reliable with today's standards.
This revision took **4 months** (Late September to Mid December) working on and off to do literally everything that needed a rewrite so badly that it cannot be done in V2.
2024-02-04 06:43:43 -05:00
**Q:** So what are the changes if it almost looks the same as V2?
2023-12-24 10:21:40 -05:00
**A:** Here's the bullet points of the changes so far;
- Reworked some of the files
- Commands and events are now classes
- Bot no longer stores short-term and long-term data locally
- Transitioned MongoDB schemas to PostgreSQL models
- MPModule got a facelift and rewritten from scratch
- Moved the module files to another directory called `modules`
- Renamed `funcs` to `components` as I don't think `funcs` directory makes sense anymore at this point.
2024-01-22 00:35:47 -05:00
If you're looking for V2 revision, it has been moved to a [branch called `old` ](https://github.com/toast-ts/Daggerbot-TS/tree/old ).
2023-12-24 10:21:40 -05:00
This is a revision history of how far we come in development cycle;
| Revision | Language | Library | Commands |
2024-03-02 07:14:39 -05:00
|----------|----------|---------|----------|
2023-12-24 10:21:40 -05:00
| V1 | JavaScript | Discord.JS v13 | Message commands |
| V2-V3 | TypeScript | Discord.JS v14 | Slash/message commands |
2024-07-17 05:14:33 -04:00
| V4 (Private) | Rust/Lua | Serenity v0.12 | Slash/context commands |
2024-03-02 07:14:39 -05:00
## CLI arguments (`process.argv[..]`)
`yarn dev` - Starts the development bot with predefined args.
2024-05-27 20:52:35 -04:00
The args in question is;
2024-03-02 07:14:39 -05:00
| Argument | Usage |
|----------|-------|
| `src/DB-Beta.config.json` | Location of config file - [2] |
| `daggerbotbeta` | Service name in TokenService to fetch tokens data from - [3] |
| `true` | Toggle debug mode in Discord.js library - [4] |