Jacob Nguyen
395549c173
feat: add proper error handling ( #115 )
2022-08-29 08:09:52 +05:30
Jacob Nguyen
7da7bff700
fix: crash on collectors pt
2022-07-20 14:36:32 -05:00
Jacob Nguyen
17eb816ec9
refactor(events): use of classes for scalability & maintainability ( #83 )
...
Co-authored-by: EvolutionX-10 <evolutionx9777@gmail.com >
2022-07-16 23:38:11 +05:30
Evo
9340cf229c
refactor(*): use enums for payloadtype & fix type warns ( #69 )
...
* refactor(*): use enums and fix type warns
* style: pretty pretty prettier
2022-06-30 00:55:54 -05:00
Jacob Nguyen
e71b63d261
feat(*)!: improve quality of code, refactorings, QOL intellisense ( #64 )
...
* feat: remove unit testing
* feat: make command modules return Awaitable void | unknown
* feat: more clear error for access message or interaction
* feat: make TextCommand and SlashCommand return more specific arg type
* feat: make TextCommand and SlashCommand return more specific arg type
* fix: Remove type reduction to never in onReady.ts
* feat: narrow typings for args Text and SlashCommand x3
* feat: make description optional, default is '...'
* feat: add sern events natively register in sern.init
* feat: remove jest.config.ts
* fix: forget to add SernEvent to Wrapper declaration
* feat: Make name and description defined when making plugins!
* Update README.md
* docs: Highly encourage to use cli
* chore: Improved package.json
* feat: Add .edit method and let .reply accept string
* fix: intellij warnings
* build: update discord.js to latest
* chore(deps): Removed typedoc
Removed typedoc dependency due we won't use it anymore
* fix: Fixed typo at SECURITY.md file
* feat: remove edit context method for future
* feat: remove docs folder
* feat: loading strategy slightly changed, does not throw error on finding no module in file
* feat: change typings of sern emitter
* feat: add generic to readFile.ts buildData, adding different event loading strategies
* feat: add events.ts for more customizable event handling
* refactor: type changes to adjust to event commands
* feat: revamp module types to support event plugins
* feat: rolling out more event loading support
* style: Improved plugin.ts comments
* style: Improved plugin.ts comments
* style: Improved readyEvent.ts comments
* feat: more support for event loading!!
* fix: re add import after rebase
* feat: more event handling progress
* feat: Cleaning up types
* refactor: Cleaning up and adding docs
* feat: Changing types of wrapper for external and sern emitter
* refactor: Adding some type aliases
* feat: switch to match expression, add docs
* feat: more progress on event handling
* fix: complying to djs v14 build
* feat: Add basic event handling, no plugins checked yet!
* fix: Crash on interactionCreate event
* build(package.json): bump version
* build: bump to 1.0.4-beta
* feat: move new things to top level import
* feat: Separating events from command modules, leads separation of responsibility
* feat: add enum for event modules
* feat: Add more typings for event modules
* feat: Add more plugin definitions
* refactor: add asyncResolveArray.ts to resolve Awaitables easier
* feat: throw error on plugin usage for event listeners
* feat: throw error on plugin usage for event listeners
* feat: change from client -> wrapper
* style: eslint
* style: add comment
* feat: add absPath into commandPlugins!
* build: remove 'tests' exclude
* build: delete test.yml, change .prettierignore
* build: bump version to 1.1.0-beta
* docs(sern.ts): add comments for addExternal
* fix: forgot to add required type property in comment
* fix: load external event emitters correctly
* chore: rebased api update branch (#65 )
Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com >
Co-authored-by: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com >
Co-authored-by: xxDeveloper <77380166+Murtatrxx@users.noreply.github.com >
Co-authored-by: Evo <85353424+EvolutionX-10@users.noreply.github.com >
2022-06-28 12:38:01 -05:00
xxDeveloper
163e48f3eb
feat(*): Revamp Docs ( #47 )
...
* style: Formatted 17 files & changes messageHelper util
* style: Formatted HTML and CSS files
* Revert "style: Formatted 17 files & changes messageHelper util"
This reverts commit 988d7fa6d2 .
* style(style.css): Formatted main style file with tabwidth 2
* chore: Added docs maintainer
* chore: Changed typedoc configration
* chore(README.md): Removed coming soon from links
* chore: Updated Prettier formatter tab width
* docs(readme): Improved Readme readability
* docs(README): Fixed installation box
* style(README.md): Improved readability
* chore: Added CONTRIBUTING.md
* docs(README.md): Removed old repo link and it's line
* docs(README): Updated Intents to djs v14
Co-authored-by: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com >
* docs: Updated README example to djs v14
* docs: Formatted README examples
* Update README.md
* docs: Updated organization description
* docs(README): Rename 'fixed' to 'patched'
* chore: Updated LICENSE
* chore: Updated LICNESE
* chore: Changed license to MIT
* Delete LICENSE.md
* chore: Recreated LICENSE
* chore: First License boilerplate preview
* style(index.ts): Added a space
* chore(index.ts): First license boilerplate preview
* chore(PRETTIER): Re-updated the tab width
* chore(SECURITY): Updated security.md file
* docs(README): Improved readability
* fix(README): Fixed typo
* style: Updated license boilerplate
* style(*): Updated license boilerplate
* style: Updated license boilerplate
* style: Updated license boilerplate
* style: Updated license boilerplate
* style: Updated License boilerplate
* style: Updated License boilerplate
* docs(README): Added stats
* docs(README): Temporarily or permanently removed stats
* refactor: DRY Principles
* feat: finished interactionCreate.ts handling? (need test)
* chore: Updated CONTRIBUTING.md file
* chore: Updated credits
* chore(NPM): Prepared package.json for release
* revert: Some changes
* revert: Revert back to MIT LICENSE (#50 )
* chore: Updated LICENSE boilerplate
* style: Improved comments
* style: Updated comments
* fix: Non-exhaustiveness led to commands not registering readyEvent.ts
* feat: Add DefinetlyDefined type, more todo statements
* feat: Aliases optional
* feat: Optional plugins to reduce bloat
* feat: better looking typings for modules
* refactor: Simplify sernModule handler signature
* refactor: make ApplicationCommandOptions optional
* refactor: make description optional
* refactor: Bring CommandType and PluginType to top level
* fix: Fix return type of sernModule
* refactor: Why is that not assignable bruh
* revert: Re-add plugins overload
* fix(CODE_OF_CONDUCT): Removed unusual dot
* Update package.json
* fix: Resolve conflicts
* fix: Resolve conflicts
* feat: should be able to register other nodejs event emitters
* fix: Standard for of does not resolve promises. Switched to for await
* feat: Adding sern event listeners, overriding and typing methods
* feat: Edited event names for more conciseness, finished basic event emitters
* style: Run prettier
* fix: didn't run prettier, now i am
* fix: linting issue in markup.ts
* fix: prettier wants lf line ending
* fix: prettier changes again
* feat: add .prettierignore and ignore README.md
* feat: add externallyUsed.ts and support BothCommands again
* feat: remove comments about prev commit
* style: change prettier print width and reformat
* feat: adding modal and autocomplete support
* feat: Finishing up autocomplete, need to test
* feat: Making name required in auto cmp interactions
* feat: move name and description out of OptionsData[]
* feat: finishing optionData for autocomplete changes, adding class for builder
* feat: finishing autocomplete!!
* refactor: Simplifying logic of message filter
* feat: Adding docs to some data structures, moving to default from export files
* refactor: cleaning up code, removing unuseds
* feat: adding refactoring for repetitive event plugin processing
* feat: adding better typings, refactoring
* refactor: remove unnecessary nullish short circuit
* refactor: remove unnecessary nullish short circuit
* feat: add docs/ to npmignore
* style: Formatted 17 files & changes messageHelper util
* style: Formatted HTML and CSS files
* Revert "style: Formatted 17 files & changes messageHelper util"
This reverts commit 988d7fa6d2 .
* style(style.css): Formatted main style file with tabwidth 2
* chore: Added docs maintainer
* chore: Changed typedoc configration
* chore(README.md): Removed coming soon from links
* docs(readme): Improved Readme readability
* chore: Added CONTRIBUTING.md
* docs(README): Fixed installation box
* style(README.md): Improved readability
* docs(README.md): Removed old repo link and it's line
* docs: Updated README example to djs v14
* docs(README): Updated Intents to djs v14
Co-authored-by: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com >
* docs: Formatted README examples
* Update README.md
* chore: Updated LICENSE
* chore: Updated LICNESE
* chore: Changed license to MIT
* Delete LICENSE.md
* chore: Recreated LICENSE
* chore: First License boilerplate preview
* style(index.ts): Added a space
* chore(index.ts): First license boilerplate preview
* chore(SECURITY): Updated security.md file
* style: Updated license boilerplate
* docs(README): Added stats
* chore: Updated CONTRIBUTING.md file
* chore: Updated credits
* chore(NPM): Prepared package.json for release
* revert: Some changes
* revert: Revert back to MIT LICENSE (#50 )
* fix(CODE_OF_CONDUCT): Removed unusual dot
* fix: Resolve conflicts
* fix: Resolve conflicts
Co-authored-by: EvolutionX <85353424+EvolutionX-10@users.noreply.github.com >
Co-authored-by: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com >
2022-05-30 20:54:23 +03:00
Jacob Nguyen
475b0736d5
feat: adding refactoring for repetitive event plugin processing
2022-05-28 20:29:23 -05:00
Jacob Nguyen
0ae541daba
feat: Adding docs to some data structures, moving to default from export files
2022-05-25 17:17:55 -05:00
Jacob Nguyen
d63423cfc4
feat: finishing autocomplete!!
2022-05-25 15:29:28 -05:00
Jacob Nguyen
6c144defca
fix: didn't run prettier, now i am
2022-05-19 23:03:39 -05:00
Jacob Nguyen
2d28800953
style: Run prettier
2022-05-19 22:54:46 -05:00
Jacob Nguyen
b8cda351e1
feat: should be able to register other nodejs event emitters
2022-05-19 12:57:14 -05:00
Jacob Nguyen
5556b2aa0a
refactor: make ApplicationCommandOptions optional
2022-05-17 16:14:47 -05:00
Jacob Nguyen
430315ad02
feat: Aliases optional
2022-05-17 13:16:27 -05:00
Jacob Nguyen
c8c0c841db
feat: Add DefinetlyDefined type, more todo statements
2022-05-17 12:11:00 -05:00
Jacob Nguyen
bcbfd28788
refactor: Cleaning up more, moving things for organization
2022-05-15 19:31:30 -05:00
jacoobes
3dedba3493
chore: prettier reformat
2022-05-13 14:45:06 -05:00
Jacob Nguyen
490d6403d7
refactor : change naming conventions to PascalCase
2022-04-08 13:10:46 -05:00
Jacob Nguyen
ef8e3961d1
feat(handler) run formatter and made message prefixes case insensitive
2022-04-03 17:13:13 -05:00
Jacob Nguyen
ea8c15986a
feat(handler) Add context more context methods and nullish type
2022-04-03 01:37:38 -05:00
Jacob Nguyen
b0d4f96900
feat : add typings for ctx menus
2022-03-26 02:34:36 -05:00
Jacob Nguyen
5baff09c03
feat(types) added util type Override
2022-03-21 17:27:53 -05:00
Jacob Nguyen
05fadf0e33
feat : remove parse option, allowing user to custom parse arguments
2022-03-21 17:25:21 -05:00
Jacob Nguyen
2ea35588bd
feat (handler) more progress on message handler
2022-03-16 23:18:55 -05:00
Jacob Nguyen
5b53d4203e
feat : update module loader for extensibility
2022-03-16 14:41:22 -05:00
Jacob Nguyen
0dd95be59a
feat(sern.ts) Add basic event manager
2022-03-08 16:36:51 -06:00
Jacob Nguyen
84fc853dd6
refactor(handler) change init param to Wrapper, add eventConfig type
2022-03-08 13:02:42 -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
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
EvolutionX
92c3bacd15
chore: removed Nullable type
2022-02-19 20:11:28 +05:30
EvolutionX
f4b6642b73
chores: add back cursorsdottsx credits
2022-02-19 20:01:10 +05:30
xxDeveloper
dad3042a64
feat: Improved TypeScript experince
2022-02-16 22:57:40 +03: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
EvolutionX
a648f347f1
finished formatting
2022-02-14 13:18:14 +05:30
EvolutionX
57392f4e6a
made the code pretty :)
2022-02-14 09:43:38 +05:30
jacoobes
ce22f854a1
some comments and comment refactoring
2022-02-13 14:16:10 -06:00
jacoobes
ad86658e11
dir name fix, lowercase lint
2022-02-13 13:12:14 -06:00
xxDeveloper
8a71f11353
Merge branch 'main' of https://github.com/jacoobes/Sern
2022-02-13 21:37:12 +03:00
xxDeveloper
350c070b43
Rnamed some directories & format code
2022-02-13 21:35:56 +03:00
jacoobes
dfb34b99e3
testing cmds now have module prop, not on filename
2022-02-13 01:17:33 -06:00
xxDeveloper
3b15b27803
Format & improve src files
2022-02-12 22:41:55 +03:00
xxDeveloper
d2e4ca63a7
Update handler.ts
2022-02-12 08:52:29 +03:00
jacoobes
09bf5a1bfe
added default logger
2022-02-07 23:55:16 -06:00
jacoobes
b328edb7ce
change handler types file extension
2022-02-07 01:14:20 -06:00