1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-12-25 10:55:37 -05:00
TypeScript version of the original JavaScript-based bot for Official Daggerwin Discord. https://discord.gg/4SnUAFu
Go to file
github-actions[bot] b36aa55501
Combined Dependabot PR (#172)
* Bump dayjs from 1.11.12 to 1.11.13

Bumps [dayjs](https://github.com/iamkun/dayjs) from 1.11.12 to 1.11.13.
- [Release notes](https://github.com/iamkun/dayjs/releases)
- [Changelog](https://github.com/iamkun/dayjs/blob/v1.11.13/CHANGELOG.md)
- [Commits](https://github.com/iamkun/dayjs/compare/v1.11.12...v1.11.13)

---
updated-dependencies:
- dependency-name: dayjs
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @types/node from 22.4.1 to 22.5.2

Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 22.4.1 to 22.5.2.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump simple-git from 3.25.0 to 3.26.0

Bumps [simple-git](https://github.com/steveukx/git-js/tree/HEAD/simple-git) from 3.25.0 to 3.26.0.
- [Release notes](https://github.com/steveukx/git-js/releases)
- [Changelog](https://github.com/steveukx/git-js/blob/main/simple-git/CHANGELOG.md)
- [Commits](https://github.com/steveukx/git-js/commits/simple-git@3.26.0/simple-git)

---
updated-dependencies:
- dependency-name: simple-git
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump mathjs from 13.0.3 to 13.1.1

Bumps [mathjs](https://github.com/josdejong/mathjs) from 13.0.3 to 13.1.1.
- [Changelog](https://github.com/josdejong/mathjs/blob/develop/HISTORY.md)
- [Commits](https://github.com/josdejong/mathjs/compare/v13.0.3...v13.1.1)

---
updated-dependencies:
- dependency-name: mathjs
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Update more deps and fix AutoMod

* Update Yarn to 4.4.1

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: toast-ts <96593068+toast-ts@users.noreply.github.com>
2024-09-03 15:58:06 +10:00
.github Update dependabot.yml 2024-03-20 10:45:49 +11:00
.vscode Prevent Language Server from crashing 2024-05-28 10:57:15 +10:00
.yarn/patches Patch d.js for Discord issue that breaks interactions 2024-07-03 10:15:26 +10:00
src Combined Dependabot PR (#172) 2024-09-03 15:58:06 +10:00
.dockerignore Remove comments 2024-02-26 20:04:34 +11:00
.gitignore Patch d.js for Discord issue that breaks interactions 2024-07-03 10:15:26 +10:00
.mailmap Update GitHub username 2024-01-22 16:38:10 +11:00
.ncurc.json Merry Christmas! Here's the V3 2023-12-25 02:22:29 +11:00
.yarnrc.yml Update Yarn config and handle macOS paths properly 2024-02-28 20:16:11 +11:00
docker-compose.bot.yml Update Node.js to 22.1.0 and use its cache feature 2024-05-05 17:59:11 +10:00
docker-compose.yml Update Redis container 2024-08-14 11:40:58 +10:00
Dockerfile Find the webhook embed using the client instead of interaction 2024-08-14 11:36:17 +10:00
package.json Combined Dependabot PR (#172) 2024-09-03 15:58:06 +10:00
README.md Update commands section for V4 2024-08-11 16:59:57 +10:00
startDocker.sh Update dependencies 2024-08-11 08:29:07 +10:00
tsconfig.json These were unused apparently so buhbye 2024-05-05 15:51:55 +10:00
yarn.lock Combined Dependabot PR (#172) 2024-09-03 15:58:06 +10:00

Daggerbot V3 Description

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.

Q: So what are the changes if it almost looks the same as V2?
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.

If you're looking for V2 revision, it has been moved to a branch called old.

This is a revision history of how far we come in development cycle;

Revision Language Library Commands
V1 JavaScript Discord.JS v13 Message commands
V2-V3 TypeScript Discord.JS v14 Slash/message commands
V4 (Private) Rust/Lua Serenity v0.12 Slash/context/message commands

CLI arguments (process.argv[..])

yarn dev - Starts the development bot with predefined args.
The args in question is;

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]