Commit Graph

139 Commits

Author SHA1 Message Date
Jacob Nguyen
84fc853dd6 refactor(handler) change init param to Wrapper, add eventConfig type 2022-03-08 13:02:42 -06:00
Jacob Nguyen
cfb7df8451 feat(sern.ts) attempting to remove the bloated class in favor of smaller
functions, install rxjs
2022-03-08 11:43:38 -06:00
Jacob Nguyen
ff2427f876 perf(sern.ts) remove return await 2022-03-08 00:48:07 -06:00
Jacob Nguyen
9e4adf8bcf refactor(structures) create structures dir 2022-03-08 00:30:18 -06:00
Jacob Nguyen
36831def0f chore(module.ts) Move Command Modules to different file, change context objs to class counterparts 2022-03-07 23:49:38 -06:00
Jacob Nguyen
707840bc76 feat(context.ts) Adding context class and getters and setters 2022-03-04 00:48:11 -06:00
Jacob Nguyen
3b8a7f3cbc feat(markup.ts) add arcs changes 2022-03-03 22:44:16 -06:00
Jacob Nguyen
e4a88ff306 feat(markup.ts) merge higharcs changes 2022-03-03 22:16:16 -06:00
Jacob Nguyen
9e17a80ca2 style(markup.ts): formatted a little for readability 2022-03-02 09:47:40 -06:00
Jacob Nguyen
15d8a6a794 refactor(utilities): made markup.ts eslint compliant and added formatting to logger 2022-03-01 23:05:25 -06:00
Arcy
3a4e286381 Create markup.ts 2022-02-21 21:39:19 -06:00
jacoobes
00a5fa43ad feat(sern.ts): adding logging instead of large complaining messages from bot 2022-02-21 17:07:08 -06:00
jacoobes
40fb723143 feat(sern.ts): changed how module is passed around, now has name property at runtime 2022-02-21 02:00:12 -06:00
jacoobes
ef9d53e6b1 feat(sern.ts): beginning to add new basic logger system 2022-02-21 01:58:25 -06:00
jacoobes
d17f999d69 style(sern.ts): minimized code, refactor style 2022-02-21 00:51:00 -06:00
jacoobes
1cff46c0ab fix(utilexports.ts): forgot to remove the deleted feat of option builder 2022-02-21 00:44:52 -06:00
jacoobes
81921937b5 refactor: removed options builder as it is redundant 2022-02-21 00:41:34 -06:00
Jacob Nguyen
15ab87aac5 refactor(handler): exported the option builder v0.0.1 2022-02-20 10:48:45 -06:00
Jacob Nguyen
1397974fb6 feat(sern.ts): changing default value of args in text based cmd to string[], from string 2022-02-19 13:34:30 -06:00
Jacob Nguyen
b11f999674 feat(sern.ts): changing text-based command parser fn value to string[]
Keeping the type of args for fn parse as a string[] should allow users more flexibility
2022-02-19 13:21:44 -06:00
Jacob Nguyen
b19a41ddf0 style(src): ran eslint through project 2022-02-19 13:16:29 -06:00
Jacob Nguyen
c8bf7aeb92 refactor(options.ts): move options type declarations to types folder 2022-02-19 13:14:54 -06:00
Jacob Nguyen
651009c9ed feat(higherorders.ts): a new function that acts as a command options builder 2022-02-19 13:12:42 -06:00
EvolutionX
92c3bacd15 chore: removed Nullable type 2022-02-19 20:11:28 +05:30
EvolutionX
f6b85d8763 chore: add back @Townsy45's credits 2022-02-19 20:03:40 +05:30
EvolutionX
f4b6642b73 chores: add back cursorsdottsx credits 2022-02-19 20:01:10 +05:30
xxDeveloper
0e795e63dd Merge branch 'main' of https://github.com/jacoobes/Sern 2022-02-16 22:57:53 +03:00
xxDeveloper
dad3042a64 feat: Improved TypeScript experince 2022-02-16 22:57:40 +03:00
jacoobes
29943366a7 style(higherorders.ts): change name of parameter fn -> fns and f -> g 2022-02-15 20:36:35 -06:00
jacoobes
7166947d28 fix(sern.ts): checking ctx instanceof Message always returned false 2022-02-15 20:23:35 -06:00
jacoobes
a2e43f518b refactor(sern.ts): interaction is guaranteed non null, i used null assertion 2022-02-15 18:23:52 -06:00
jacoobes
420c4dfe64 refactor(sern.ts): noticed a check for undefined already occuring, removed redundant recheck 2022-02-15 17:53:53 -06:00
jacoobes
2e3c65ad09 docs(higherorder.ts): ran linter and add documentation to AllTrue 2022-02-15 17:36:52 -06:00
jacoobes
803840c84b refactor(sern.ts): unifying the function signature for command n interactionResult to enable HoFs 2022-02-15 17:32:56 -06:00
jacoobes
0f0b0fb61c feat(handler): adding higher-order-function wrappers to increase readability and shorten code
Experimenting with functional paradigm to hopefully reduce redundancy and try improving readability,
shorten code, and create a cleaner code base
2022-02-15 16:09:42 -06:00
xxDeveloper
779011a124 feat: Added SECURITY file & formatted some TypeScript code 2022-02-15 19:37:16 +03:00
jacoobes
9b5942babf refactor(logger.ts): saw a double template literal for no apparent reason 2022-02-14 23:03:55 -06:00
jacoobes
f062a33868 fix(handler.ts): added the changes of Module<T>.execute to type delegate (now type execute) 2022-02-14 13:12:39 -06:00
jacoobes
870287674a feat(sern.ts): renaming Module.delegate to Module.execute 2022-02-14 12:34:13 -06:00
EvolutionX
a47f6a1159 added jsdocs 2022-02-14 22:10:08 +05:30
EvolutionX
16e3adf0c9 Merge branch 'jacoobes:main' into docs 2022-02-14 21:59:44 +05:30
jacoobes
38963ffa19 rf 2022-02-14 09:21:32 -06:00
jacoobes
3d660fea71 Merge branch 'main' of https://github.com/EvolutionX-10/Sern 2022-02-14 09:21:13 -06:00
EvolutionX
99daca5fa6 added docs for functions in messageHelpers 2022-02-14 13:42:20 +05:30
EvolutionX
a648f347f1 finished formatting 2022-02-14 13:18:14 +05:30
EvolutionX
5102563869 added preprocessors 2022-02-14 13:09:35 +05:30
jacoobes
5c2701fba7 fix eslint-caught semis 2022-02-13 22:39:51 -06:00
jacoobes
d5ad51d0e9 eslint require semis! 2022-02-13 22:37:38 -06:00
EvolutionX
ff0694f072 Merge branch 'main' of https://github.com/EvolutionX-10/Sern 2022-02-14 09:55:41 +05:30
EvolutionX
ab7c5e09ee lowercased preprocessors 2022-02-14 09:55:24 +05:30