From 9a8883e7ce21480c1e5805a096b83e4da593c13a Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Fri, 18 Feb 2022 22:50:11 -0600 Subject: [PATCH 1/8] chore(CNAME) : add cname --- docs/CNAME | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/CNAME diff --git a/docs/CNAME b/docs/CNAME new file mode 100644 index 0000000..4572bac --- /dev/null +++ b/docs/CNAME @@ -0,0 +1 @@ +sern-handler.js.org \ No newline at end of file From 024aab5f732f7995f204a00be7ee22eadfc03ec3 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Fri, 18 Feb 2022 23:01:12 -0600 Subject: [PATCH 2/8] docs(readme.md) : fix bugged example code --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index aef6ee0..bafa967 100644 --- a/README.md +++ b/README.md @@ -64,9 +64,7 @@ export default { visibility : 'private', test : false, type: Sern.CommandType.SLASH | Sern.CommandType.TEXT, - execute : async ({ message, interaction }, args) => { - interaction.reply({ content: 'Pong! }); - } + execute : async ({ message, interaction }, args) => 'pong!' }; ``` From a506219f19b57ff0816e7a35af8cc46eec1c7c0e Mon Sep 17 00:00:00 2001 From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com> Date: Sat, 19 Feb 2022 15:40:03 +0300 Subject: [PATCH 3/8] docs: Updated README TODO --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index bafa967..cf2c047 100644 --- a/README.md +++ b/README.md @@ -83,9 +83,9 @@ See [documentation](https://sernhandler.js.org) for TypeScript examples and more ## TODO -- [ ] Default commands -- [ ] Categories -- [ ] Ruling out all bugs in the command system -- [ ] Better support for slash commands -- [ ] More Build scripts -- [ ] Logger +- ▫️ Default commands +- ▫️ Categories +- ▫️ Ruling out all bugs in the command system +- ▫️ Better support for slash commands +- ▫️ More Build scripts +- ▫️ Logger From fa622f67e6669993a4ef9dc51728ad42b27260da Mon Sep 17 00:00:00 2001 From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com> Date: Sat, 19 Feb 2022 15:41:35 +0300 Subject: [PATCH 4/8] docs: Updated README TODO --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index cf2c047..2a88120 100644 --- a/README.md +++ b/README.md @@ -83,9 +83,9 @@ See [documentation](https://sernhandler.js.org) for TypeScript examples and more ## TODO -- ▫️ Default commands -- ▫️ Categories -- ▫️ Ruling out all bugs in the command system -- ▫️ Better support for slash commands -- ▫️ More Build scripts -- ▫️ Logger +- Default commands +- Categories +- Ruling out all bugs in the command system +- Better support for slash commands +- More Build scripts +- Logger From 94141e7048b54256074c18ba82b72356ef1e5ff8 Mon Sep 17 00:00:00 2001 From: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com> Date: Sat, 19 Feb 2022 16:08:07 +0300 Subject: [PATCH 5/8] docs: updated pronounce ('me' => 'us') --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2a88120..fb929c2 100644 --- a/README.md +++ b/README.md @@ -78,7 +78,7 @@ See [documentation](https://sernhandler.js.org) for TypeScript examples and more ## Contribute -- Pull up on [issues](https://github.com/jacoobes/Sern/issues) and tell me if there are bugs +- Pull up on [issues](https://github.com/jacoobes/Sern/issues) and tell us, if there are bugs - All kinds of contributions are welcomed! ## TODO From f4b6642b73638901b9c9bac872ea6505d241e6e5 Mon Sep 17 00:00:00 2001 From: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com> Date: Sat, 19 Feb 2022 20:01:10 +0530 Subject: [PATCH 6/8] chores: add back cursorsdottsx credits --- src/types/handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/handler.ts b/src/types/handler.ts index 07fca97..7484f4d 100644 --- a/src/types/handler.ts +++ b/src/types/handler.ts @@ -16,7 +16,7 @@ export type Visibility = 'private' | 'public'; export type possibleOutput = T | (MessagePayload & MessageOptions); export type Nullable = T | null; export type execute = Sern.Module['execute']; - +// Thanks @cursorsdottsx export type ParseType = { [K in keyof T]: T[K] extends unknown ? [k: K, args: T[K]] : never; }[keyof T]; From f6b85d876327ed5b7e623993b4915aed68a2f5ed Mon Sep 17 00:00:00 2001 From: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com> Date: Sat, 19 Feb 2022 20:03:40 +0530 Subject: [PATCH 7/8] chore: add back @Townsy45's credits --- src/handler/utilities/readFile.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/handler/utilities/readFile.ts b/src/handler/utilities/readFile.ts index ee9e0c7..1a5fadb 100644 --- a/src/handler/utilities/readFile.ts +++ b/src/handler/utilities/readFile.ts @@ -12,6 +12,7 @@ export type CommandVal = { export const Commands = new Map(); export const Alias = new Map(); +// Courtesy @Townsy45 async function readPath(dir: string, arrayOfFiles: string[] = []): Promise { try { const files = readdirSync(dir); From 92c3bacd15f10ee2df5adb9f6775efee1edbdc83 Mon Sep 17 00:00:00 2001 From: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com> Date: Sat, 19 Feb 2022 20:11:28 +0530 Subject: [PATCH 8/8] chore: removed Nullable type --- src/types/handler.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/types/handler.ts b/src/types/handler.ts index 7484f4d..062113a 100644 --- a/src/types/handler.ts +++ b/src/types/handler.ts @@ -14,7 +14,6 @@ export type Visibility = 'private' | 'public'; // Anything that can be sent in a `#send` or `#reply` export type possibleOutput = T | (MessagePayload & MessageOptions); -export type Nullable = T | null; export type execute = Sern.Module['execute']; // Thanks @cursorsdottsx export type ParseType = {