-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(*): Revamp Handler #34
Closed
Closed
Changes from all commits
Commits
Show all changes
139 commits
Select commit
Hold shift + click to select a range
cfb7df8
feat(sern.ts) attempting to remove the bloated class in favor of smaller
jacoobes 84fc853
refactor(handler) change init param to Wrapper, add eventConfig type
jacoobes 0dd95be
feat(sern.ts) Add basic event manager
jacoobes 9ce1314
docs(wrapper.ts) Add events property to JSDoc
jacoobes 08f5937
feat(handler) new ready event handling
jacoobes df626e0
feat(events) Moving default events to its own folder for organization
jacoobes 10aee77
feat(handler) begin message event and wrapper.prefix =
jacoobes 6d2af47
feat(handler) Filters only executable messages now
jacoobes cdd8fce
refactor(sern.ts) Slowly change handler class to init function
jacoobes 0513391
build(logger.ts) Remove day.js dependency in favor of native
jacoobes 30b7f59
feat(module.ts) Removing and minimizing module. Will allow simplication
jacoobes f1ffff4
feat(command.ts) Add command class
jacoobes ecf7ecc
feat(handler) finish loading command functionality, adjust properties
jacoobes 840619d
feat(command.ts) throw error on alias present on slash command
jacoobes 5b968ce
feat(handler) create command-options interface, remove module
jacoobes 586d386
refactor(command.ts) properties no longer look as ugly
jacoobes 5a1870b
feat : refactor command objects. Deciding not to use a class
jacoobes 3178f18
feat (handler) moving to dev build; new module types
jacoobes 4102c71
feat(commands) create module handler to deal with incoming data
jacoobes 5b53d42
feat : update module loader for extensibility
jacoobes 2ea3558
feat (handler) more progress on message handler
jacoobes 1ad429f
feat : finish basic message event handler
jacoobes 99aae7d
feat(handler) added module type checking and started interactions han…
jacoobes 05fadf0
feat : remove parse option, allowing user to custom parse arguments
jacoobes 5baff09
feat(types) added util type Override
jacoobes d34c188
feat(handler) add basic interaction handling and add error for not
jacoobes a227f1a
feat(interactionCreate.ts) finish basic interaction handling for chat…
jacoobes 44e6e58
feat(handler) improving context api
jacoobes 2191fda
refactor : modify module typings to override
jacoobes c002c27
refactor : exports now simplified, removed default arg parsers as parse
jacoobes cf708b6
fix(structxports) forgot to export top level types
jacoobes f8c5bfc
fix(structxports) added top lvl module type
jacoobes b0d4f96
feat : add typings for ctx menus
jacoobes b326a91
feat(interactionCreate) add basic context menu handling
jacoobes 145fcb3
refactor(context.ts) clean up context constructing
jacoobes 26c2022
fix(context.ts) fixed bug on type constraints
jacoobes 2d715ca
feat(interactionHandling) make code more dry with op fn filterTap
jacoobes bd2004b
fix(messageEvent) made messageEvent more linear and make more
jacoobes 4671fac
fix(errors.ts) syntax error enum fix
jacoobes 1b7c465
feat(handler) context class updates and more minor additions
jacoobes bc0d1ce
refactor(context.ts) name changes for easier dev usages
jacoobes ea8c159
feat(handler) Add context more context methods and nullish type
jacoobes 0ea470d
refactor(context.ts) Obeying ts naming conventions :(
jacoobes 930c2ca
refactor(context.ts) Oops forgot .map existed.... Much easier code to
jacoobes 4ef0b87
feat(handler) Add button and select menu support!
jacoobes ef8e396
feat(handler) run formatter and made message prefixes case insensitive
jacoobes e4e4aca
fix(readyEvent) filtered opposite
jacoobes ecf07fe
feat(readyEvent) refactor and simplify readyEvent
jacoobes e21508c
feat(handler) moving and organizing files, refactor context api
jacoobes 490d640
refactor : change naming conventions to PascalCase
jacoobes 8866bff
feat : plugin development and ensuring all module objs have name
jacoobes 136b0d2
feat : plugin api improvements, declarative ui
jacoobes 2dd4183
feat : can register plugin modules now
jacoobes de7ddc3
feat : more plugin work ( currently not finsihed), removed init function
jacoobes f213e88
feat(handler) more plugin work, refactoring rxjs pipes
jacoobes 4e1a806
feat(handler) : refactored ready event and finished loading command
jacoobes 70bd12d
feat(handler): command plugins work?!
jacoobes eeabecb
feat(handler) : More work toward event plugins, added typings for it
jacoobes 86c4e45
feat(observableHandling) : making match function a type predicate
jacoobes 8bc624a
feat(messageEvent) : more refactoring to enable plugin usage
jacoobes b963f51
refactor(messageEvent) : cleaning up observables
jacoobes f6b88dc
feat(prefix): make defaultPrefix optional
EvolutionX-10 4d06009
chore: handle no prefix case
EvolutionX-10 f2e3a14
chore: apply the requested changes
EvolutionX-10 fc08ae4
fix(readyEvent) : module loading not correctly.
jacoobes 3e0a5b3
fix(handler) : turning readFiles to observable; refactor readyevent
jacoobes 901cb51
fix(readyEvent, partition) both were broken and failed to load plugin…
jacoobes 02956a0
feat(handler) basic event plugin support
jacoobes 5b82d5f
build(package.json) change to alpha build
jacoobes 9e05090
feat : partitioning command stores for better event mapping, more
jacoobes 2c8fdce
fix(messageEvent) : fix access location for messages
jacoobes 4448d5a
feat : strict commandType checking transition for ergonomics
jacoobes 2f61399
feat(handler): progress on event plugins
jacoobes 57dc0ba
build : Added ts-pattern for pattern matching with command types and
jacoobes d3e8943
refactor: change from switch -> match
jacoobes 97867d9
build: moving eslint and prettier dependencies
jacoobes 8782cad
fix: accidentally imported wildcard from wrong place & namespace
jacoobes 46b3b95
chore: eslint formattting
jacoobes 99a5a3c
chore: cleanup code and delete unused files
jacoobes 6462b4c
build: add .idea to gitignore
jacoobes 88dcdee
feat: broadening EventPlugin default generic type, reformat with pret…
3dedba3
chore: prettier reformat
c4e8e51
feat: interactionCreate.ts refactoring
f5d02ae
refactor: Remove duplicate type alias in resolveParameters.ts
6ac9720
feat: Adding TextInput map & starting event plugins for message compo…
d29298c
feat: Add messageComponent handler
2697e35
feat: Add castings for res
58b7a6c
refactor: shorten code, add UnionToTuple type
jacoobes 86457a7
refactor: Change sernModule fn signature
jacoobes 61fe853
refactor: Adding more top level imports and move partition
jacoobes b6bf08f
refactor: Remove PluggedModule, change Module signature to support ev…
jacoobes df1808c
style: Reformat w/ prettier
jacoobes f6d584c
feat: delete partition.ts
jacoobes 40a10bf
revert: Move enums to enums.ts
jacoobes a76099c
refactor: change loading strategy, eliminate bloat
jacoobes 269ab56
refactor: Cleaning up
jacoobes bcbfd28
refactor: Cleaning up more, moving things for organization
jacoobes d9db485
refactor: switching to when statements and type predicates
jacoobes 972928b
refactor: DRY Principles
jacoobes 97907b7
feat: finished interactionCreate.ts handling? (need test)
jacoobes b266508
fix: Non-exhaustiveness led to commands not registering readyEvent.ts
jacoobes c8c0c84
feat: Add DefinetlyDefined type, more todo statements
jacoobes 430315a
feat: Aliases optional
jacoobes 2b81d53
feat: Optional plugins to reduce bloat
jacoobes 53bc080
feat: better looking typings for modules
jacoobes c40b75d
refactor: Simplify sernModule handler signature
jacoobes 5556b2a
refactor: make ApplicationCommandOptions optional
jacoobes f898749
refactor: make description optional
jacoobes 82f1bad
refactor: Bring CommandType and PluginType to top level
jacoobes cf85a5d
fix: Fix return type of sernModule
jacoobes 464fc05
refactor: Why is that not assignable bruh
jacoobes b9b5919
revert: Re-add plugins overload
jacoobes b8cda35
feat: should be able to register other nodejs event emitters
jacoobes 66b9f51
fix: Standard for of does not resolve promises. Switched to for await
jacoobes 115d1a4
feat: Adding sern event listeners, overriding and typing methods
jacoobes 3f64a8a
feat: Edited event names for more conciseness, finished basic event e…
jacoobes 2d28800
style: Run prettier
jacoobes 6c144de
fix: didn't run prettier, now i am
jacoobes dac665d
fix: linting issue in markup.ts
jacoobes 571a804
fix: prettier wants lf line ending
jacoobes d5bb992
fix: prettier changes again
jacoobes 7ae5ecf
feat: add .prettierignore and ignore README.md
jacoobes fc81bfc
feat: add externallyUsed.ts and support BothCommands again
jacoobes a220949
feat: remove comments about prev commit
jacoobes 2675607
style: change prettier print width and reformat
jacoobes 77856ce
feat: adding modal and autocomplete support
jacoobes d50b801
feat: Finishing up autocomplete, need to test
jacoobes ac8a2f4
feat: Making name required in auto cmp interactions
jacoobes 93942bd
feat: move name and description out of OptionsData[]
jacoobes b08eebf
feat: finishing optionData for autocomplete changes, adding class for…
jacoobes d63423c
feat: finishing autocomplete!!
jacoobes 9eef9dd
refactor: Simplifying logic of message filter
jacoobes 0ae541d
feat: Adding docs to some data structures, moving to default from exp…
jacoobes e69dae9
refactor: cleaning up code, removing unuseds
jacoobes 475b073
feat: adding refactoring for repetitive event plugin processing
jacoobes 99e2a99
feat: adding better typings, refactoring
jacoobes ae59aca
refactor: remove unnecessary nullish short circuit
jacoobes cfd68b4
refactor: remove unnecessary nullish short circuit
jacoobes f90342d
feat: add docs/ to npmignore
jacoobes File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,4 +77,6 @@ typings/ | |
|
||
dist | ||
|
||
.vs | ||
.vs | ||
|
||
.idea | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
src/ | ||
tsconfig.json | ||
tsconfig.json | ||
docs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
README.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Delete this, this is already in my branch.