Commit Graph

38 Commits

Author SHA1 Message Date
Jonathan Ho
98f964e294 Bigbot: multiple gateway, bot process (#2545)
* refactor: remove experimental-specifier-resolution flag

* fix: listen on all interface

* fix: tsconfig set target es2022

* refactor: use top level await

* style: deno fmt

* feat: add rabbitmq

* fix:  DEVELOPMENT env not working

* style

* feat: add using message queue

* chore: readme add influx and rabbitmq info to node

* chore: increase rest replica
2022-10-23 07:32:17 -05:00
Jonathan Ho
a8a89d4b16 feat(Bigbot): added docker-compose (#2538)
* chore: fix script extension

* chore: remove extention

* fix: at least it run can now

* chore: fix dev script

* refactor: change to use env file for config

* chore: update readme

* refactor: put dotenv to top

* feat: add docker and influxdb

* chore: disable deno fmt on bigbot node_modules

* style: deno fmt

* style: deno fmt after upgrade deno

* chore: remove dev console.log

* chore: reverse the influxdb env

* chore: limit the influxdb to localhost

* refactor: seperate build process

* chore: add user pass docs

* refactor: route all to handler

* fix: skip if webhook not exist

* fix: change to use runMethod for send response

* chore: gateway don't depend on bot

* fix: skip if webhook not exist

* fix: first command and error reply not sending

* fix: add try catch to error reply

* fix: reverse interactive.reply

* feat: add fetch analytics to bot process
2022-10-22 07:28:33 -05:00
Jonathan Ho
cedf75f28e fix: bigbot template (#2535)
* chore: fix script extension

* chore: remove extention

* fix: at least it run can now

* chore: fix dev script

* refactor: change to use env file for config

* chore: update readme
2022-10-20 09:44:34 -05:00
Skillz4Killz
3154133663 fix: fmt 2022-10-08 03:40:42 +00:00
Awesome Stickz
b9766c6cb6 Update all templates' dd version, readme, added example env/config (#2500)
* Update bigbot template to v16, update readme, added .env.example for an example env

* Update minimal template to dd v16, update readme

* Update minimal template readme for consistency

* Update beginner template to v16, update readme

* Added config.json file, readme to nodejs template

* Fix kwik db stuff in beginner template

* deno fmt

* Update template readme

* Fix bigbot template raw event ignoring GUILD_CREATE instead of GUILD_LOADED_DD

* deno fmt

* fix deno fmt again

* Use .env file instead of config.json in nodejs template

* fix: kwik's version in beginner template

* Apply suggestions from code review

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>

* Update template/README.md

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-10-07 16:41:11 -05:00
Awesome Stickz
8be759f30e Fix BigBot Template (#2498)
* fix: bigbot template

* Apply suggestions from code review

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-10-03 15:27:22 -05:00
meister03
e431e0e044 fix: Rest proxy error (#2471)
* Rebase Update on main

* Rebase Update on main

* Rebase Update on main

* Fix deno fmt

Co-authored-by: meister03 <meisterpi@gmail.com>
2022-09-15 11:23:49 -04:00
Dorian Oszczęda
ec6b7459bd fix: Invalid HTTP method in upserting commands. (#2448)
* fix: Export of `ApplicationCommandOptionChoice`.

* fix: Invalid HTTP method for upserting application commands.

* fmt: Run Deno formatter.

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-09-09 19:43:32 -05:00
Awesome Stickz
fec9d6e869 BREAKING: remove GUILD_LOADED_DD as it's no longer an event (#2411)
* fix: remove GUILD_LOADED_DD as it's no longer an event

* deno fmt

* deno fmt

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2022-09-03 12:20:46 -04:00
Awesome Stickz
73452f43f5 fix: ignore GUILD_DELETE events for unavailable guilds in big bot template (#2412)
* fix: ignore GUILD_DELETE events for unavailable guilds in big bot template

* update worker.ts

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

* fix: small stuff

Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2022-09-01 12:34:48 -05:00
Skillz4Killz
4a3feaf5d6 fix: fmt 2022-08-31 16:19:49 +00:00
Skillz4Killz
7f8abb7862 fix: annoying ts requires .js imports now in node16 2022-08-30 16:40:02 +00:00
Skillz4Killz
9a823cb0f5 fix: prisma requests and typings 2022-08-28 23:09:18 +00:00
Skillz4Killz
e064aa2aab fix: fmt 2022-08-28 11:19:13 +00:00
Skillz4Killz
6aafccacb8 feat: bot layer for big bot temp(incomplete) 2022-08-28 11:18:48 +00:00
Skillz4Killz
1e21f95655 feat: big bot gateway proxy 2022-08-26 17:51:41 +00:00
Skillz4Killz
9183ade29d fix: type error in rest proxy 2022-08-26 02:02:39 +00:00
Skillz4Killz
7d19b42cd8 fix: fmt 2022-08-26 01:55:03 +00:00
Skillz4Killz
4cf3e61e96 feat: big bot rest analytics 2022-08-26 00:29:25 +00:00
Skillz4Killz
61614babba fix: big bot template rest proxy 2022-08-25 20:14:25 +00:00
meister03
0fb4e1f398 Update minimal template (#2314)
* Outdate template

* don't use `.env.example`

* deno fmt

Co-authored-by: meister03 <meisterpi@gmail.com>
Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
Co-authored-by: LTS20050703 <lts20050703@gmail.com>
2022-08-23 10:30:19 -04:00
Jonathan Ho
34d7a47f24 feat: reverse transformers (#2387)
* merged change

* deno fmt
2022-08-23 10:18:30 -04:00
ITOH
03996c5f58 refactor: revert "feat: base plugin lib idea (#2308)" (#2336)
* Revert "feat: base plugin lib idea (#2308)"

This reverts commit ffe7cdbc6f.

* fmt
2022-07-02 14:24:43 +01:00
Reboot-Codes
0986fa9704 More BigBot Fixes (#2233)
* Add `.DS_Store` to `.gitignore`

* Format and improve DX.

* Add extra logging and fix gateway workers.

* Deno fmt.

* Be more explicit in `.env.example`.

* Add a `watch-bot` task and format.

* Deno FMT

* Deno FMT (all `template/bigbot` files)

Co-authored-by: ITOH <to@itoh.at>
2022-05-25 22:33:49 +02:00
Skillz4Killz
6c49536603 fix: worker options 2022-05-08 14:10:39 +00:00
Reboot-Codes
e31ee82d37 Fixing the BigBot Template (#2189)
* Add `create-discordeno-bot` reference in README.md

* Switch to deno tasks.

* Fix `DISCORD_TOKEN` var

* Fix `gateway` workers

Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
2022-05-08 09:57:42 -04:00
Skillz4Killz
5a4fef855e Proxy delete channel tests (#2174)
* feat: delete channel tests

* fix: use new tests in ci

* Update testss/deps.ts

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
2022-05-08 09:57:06 -04:00
viinz
b24893541b fix: prevent crashing the rest process (#2159)
* fix: prevent crashing the rest process

There where instances where some requests crashed the rest process. I found that checking for a body pretty much fixed it. 
There is probably a better way to do this, please improve this if you have an idea :)

* chore: use undefined instead of empty string

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>

* chore: use ternary operator

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
2022-04-10 13:23:08 -04:00
ITOH
9980856eef refactor!: fix some spelling mistakes (#2144)
* refactor!: fix some spelling mistakes
This fixes some spelling mistakes around the code base. Note not all are fixed.

* subComponent
2022-03-31 14:16:34 +02:00
Skillz4Killz
7ed30c61fc fix: fmt 2022-03-30 23:00:22 +00:00
Skillz4Killz
5a7a8c2c90 fix: use workers in big bot template with resharding 2022-03-30 17:38:21 +00:00
Skillz4Killz
00c4227560 fix: big bot rest 2022-03-26 00:18:54 +00:00
Skillz4Killz
8bac0ebf2d fix: function call 2022-03-25 21:39:43 +00:00
Skillz4Killz
6d018a38ab fix: use private function 2022-03-25 18:33:16 +00:00
Skillz4Killz
0ec7fac393 fix: fmt 2022-03-25 14:13:45 +00:00
Skillz4Killz
27e863def0 fix: big bot template 2022-03-25 12:44:21 +00:00
Skillz4Killz
a0a1554756 refactor: typings using ReturnType (#2105)
* fix: check new types idea

* fix: type errors

* fix: new style

* fix: more cleanup

* fix: more cleanup

* fix: cleanup audit logs

* fix: cleanup stickers

* fix: cleanup integrations

* fix: more cleanup

* fix: organize into 1 place

* fix: few errors

* fix: some broken import fixes

* fix: quite a lot of fixes across the board

* fix: more fixes for broken imports

* fix: more fixes for broken imports

* fix: handler imports

* fix: all remaining import errors

* fix: more errors needing fixes

* fix: clearing up transformers

* fix: few moer types

* fix: more cleanup of extra types

* fix: fmt

* fix: cleanup discordeno file

* Nuke Base Types (#2102)

* fix: cleanup snake stuff

* convert camelCase to snake_case (#2103)

* fix: add camelize

* fix: finalize remaining errors

* fix: imports in test

Co-authored-by: LTS20050703 <87189679+lts20050703@users.noreply.github.com>
2022-03-14 22:11:22 -04:00
ITOH
5f25263bd4 chore(template): to main repo (#1988)
* chore: move template to main repo

* ci

* Update sync_repos.yml
2022-02-03 18:02:44 +00:00