feat(examples): Migrate example bots to discordeno v19 (#3647)

* Migrate beginner and minimal bot to discordeno v19

* Add .swcrc and fix minimal yarn.lock

* update .gitignore files

* Update nodejs template

Discordeno.js (DD v13) -> DD v19 "raw"

Currently the permission checking is not working correctly

* Fix permission issue

* Rename the templates

* remove unused indents

* Rename starter to beginner

So now it is minimal (main branch) -> beginner

* Really small refactor & eslint fixes (bigbot template)

This is to make my life less miserable at a later time

* mark rabbitMQ plugins as binary files

git seems to be treating them as text

* Add v19 bigbot rest

* Add gateway code

and rabbitmq_message_deduplication v0.6.2 plugin

* fix yarn messy semevr version for @types/amqplib

* clear channel con amqp connection close

* Add bot code for bigbot v19

missing prisma setup, collector setup & language setup

* Add localization

The "command versioning" system works the same say as before, but instead of a command version the code updates the commands every time they change based on the SHA1 of the commands

* Use file relative paths instead of cwd relative paths

* Fix todos

* revert autocomplete tests

* Revert "Add localization"

This reverts commit 2b1da8d2cd.

* move env assertion to config.ts

* Add shard ping to /ping

* fix small issue

* Update readme files

* use Date.now() for the bigbot REST ping

* Remove bigbot v16 code

* Add docker (compose) setup to bigbot template

* remove healthchecks from rest & gateway

* Update dependencies of examples

* Apply readme(s) suggestions from code review

Hopefully i haven't missed any related to markdown files

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

* Apply code suggestions from code review

Co-authored-by: LTS20050703 <lts20050703@gmail.com>

---------

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
This commit is contained in:
Fleny
2024-07-07 10:40:43 -05:00
committed by GitHub
co-authored by LTS20050703
parent aecc55d150
commit 769d50ff93
168 changed files with 11846 additions and 3854 deletions
+10 -8
View File
@@ -1,18 +1,20 @@
# Beginner Bot Template
This template is designed for the beginner developer to start coding discord bots.
This template is designed for beginners to start coding discord bots.
Make sure to install the latest version when you use it.
This template includes caching (using `dd-cache-proxy`) and support for slash subcommands.
This template also includes a /ping command to show the bot latency
## Setup
- [Click here](https://github.com/discordeno/template/generate) to make your own copy.
- Delete all the template folders except the beginner folder.
- Move all files from this folder to the root of the project.
- You may encounter an issue with README.md file but force move the files to the root of the project.
- Rename the .env.example file to .env OR create a new .env file and copy the example file code to this new file.
- Download the source
- Install the dependencies using `yarn`
- Copy the .env.example file and rename it to .env
- Fill out the .env file
## Run Bot
- deno run -A mod.ts
- run `yarn` to install the dependencies
- run `yarn build` to build the source
- run `node dist/register-commands.js` to register the slash commands
- run `yarn start` to run the bot