Commit Graph
100 Commits
Author SHA1 Message Date
mmacierzanka cedf4984f9 beta1 package 2021-09-13 19:32:31 +02:00
mmacierzanka 274ea43c3e added prefix displaying 2021-09-12 18:49:12 +02:00
mmacierzanka 85e6236a5f sending a message 2021-09-12 18:47:24 +02:00
mmacierzanka 7395027d79 fixed isNestedCommand method 2021-09-12 18:45:45 +02:00
mmacierzanka c33ae91c8f changed CommandManager to accept base subcommands 2021-09-12 18:38:31 +02:00
mmacierzanka 8ff7359f98 added separators to nested command message 2021-09-12 18:35:31 +02:00
mmacierzanka 1f3878e7b9 changed main exports to exclude command classes 2021-09-12 18:30:21 +02:00
mmacierzanka b6899c80ce changed HelpMessage registering method 2021-09-12 18:28:26 +02:00
mmacierzanka 2c4a779e42 MAJOR CHANGE - new registering method and _manager property
_manager property on BaseCommand, new types, new methods to add a command
2021-09-12 18:23:26 +02:00
mmacierzanka 68c484813c added subcommand support for messages 2021-09-12 17:10:44 +02:00
mmacierzanka 12de407e6f fixed listApi fetch method 2021-09-12 16:01:18 +02:00
mmacierzanka 26df341d1f fixed errors in Message handler 2021-09-12 03:18:39 +02:00
mmacierzanka 2246a98f5d working implementation of subcommands 2021-09-12 02:21:03 +02:00
mmacierzanka b9d0bde79c fetchSubcommand method 2021-09-12 02:20:38 +02:00
mmacierzanka c8ad647553 added getSubcommand method 2021-09-12 01:28:36 +02:00
mmacierzanka beeff8d233 added overlap for excluding NestedCommand objects (get) 2021-09-12 01:06:47 +02:00
mmacierzanka bc01141f4e added catching to prevent crashes when replying fails 2021-09-12 00:07:31 +02:00
mmacierzanka d3e4607440 fixed all issues related to NestedCommand registering
I hope so...
2021-09-11 23:58:39 +02:00
mmacierzanka 654b6b837d updated is...Command methods in BaseCommand
to be more accurate
2021-09-11 23:40:00 +02:00
mmacierzanka 3cc388e5e1 updated CommandManager to properly add NestedCommands
previous commit didn't fix the issue
2021-09-11 23:38:37 +02:00
mmacierzanka 30d52c5c6e updated CommandManager to register NestedCommand objects
fixed a bug with registering global context menu commands
2021-09-11 23:14:39 +02:00
mmacierzanka bdc297d318 added isNestedCommand method 2021-09-11 23:09:33 +02:00
mmacierzanka 219d27b5f1 fixed importing errors caused by vscode being sh*t 2021-09-11 23:00:25 +02:00
mmacierzanka c876e455cc changed type handling in NestedCommand 2021-09-11 22:54:21 +02:00
mmacierzanka 55479e8710 fixed CommandManager return type... again 2021-09-11 22:50:41 +02:00
mmacierzanka 4d79bc200d fixed add method on CommandManager 2021-09-11 22:48:03 +02:00
mmacierzanka 3039e233ee added nested command to main exports 2021-09-11 22:44:42 +02:00
mmacierzanka 1ec54d23d2 fixed broken imports 2021-09-11 22:41:14 +02:00
mmacierzanka ea52fe58dc added toObject methods and connected everything together 2021-09-11 22:40:40 +02:00
mmacierzanka 32b40ad802 updated to match new API objects 2021-09-11 22:37:59 +02:00
mmacierzanka 7d0adc8d69 added types for nested commands and fixed a typo 2021-09-11 22:37:21 +02:00
mmacierzanka d7b5573598 added message with select menu...
accessor for children and append method
2021-09-11 20:03:38 +02:00
mmacierzanka 313794026e added getter for children and append method 2021-09-11 20:03:00 +02:00
mmacierzanka 0867328232 added checking to prevent registering subcommands incorrectly 2021-09-11 19:16:42 +02:00
mmacierzanka 1b020e269a streamlined error messages for regexp checking 2021-09-11 01:44:35 +02:00
mmacierzanka 6d49c40185 removed processPhrase method in favor of regexp checking 2021-09-11 01:37:28 +02:00
mmacierzanka 22e8b4ad3c changed all command classes to use CommandRegExps object 2021-09-10 22:36:23 +02:00
mmacierzanka 7e9bd8030d added all regular expressions to CommandRegExps object 2021-09-10 22:28:54 +02:00
mmacierzanka 5579dd2092 sub commands class structure 2021-09-10 21:05:19 +02:00
mmacierzanka fdf3560b05 CommandManager add method now returns a given object 2021-09-10 19:39:14 +02:00
mmacierzanka f13d526f4a fixed security issue with guild checking 2021-09-09 23:17:01 +02:00
mmacierzanka a96aa36e47 4.0.0-alpha2 2021-09-09 22:59:12 +02:00
mmacierzanka 8a95d97482 simplified and added new methods 2021-09-09 22:58:53 +02:00
mmacierzanka 97ab3bd608 updated Bot class to be compatible with CommandManager 2021-09-09 22:13:45 +02:00
mmacierzanka fb2e8d1950 added api methods to CommandManager 2021-09-09 22:07:30 +02:00
mmacierzanka 03c9bcf49b removed APIManager 2021-09-09 19:31:12 +02:00
mmacierzanka 14875857b0 APIManager 2021-09-09 19:04:42 +02:00
mmacierzanka 41d7b6db52 Added version to RegisteredCommandObject 2021-09-09 17:13:07 +02:00
mmacierzanka 1ffafecf00 created ObjectID overlaps 2021-09-09 16:47:09 +02:00
mmacierzanka f25d814cc7 4.0.0-alpha1 2021-09-09 00:11:07 +02:00
mmacierzanka bc4c8ae12a tweaked the alpha warning 2021-09-09 00:10:48 +02:00
mmacierzanka 244e9f3d2c fixed crashing on error 2021-09-09 00:01:56 +02:00
mmacierzanka 0f97524474 command registering working again 2021-09-08 23:53:41 +02:00
mmacierzanka 149602a382 removed unused return 2021-09-08 23:25:14 +02:00
mmacierzanka 523b00b40e removed one space that caused prefix commands to stop working lol 2021-09-08 23:22:19 +02:00
mmacierzanka 5dec2a4e1e and another one 2021-09-08 23:15:03 +02:00
mmacierzanka 343909d371 fixed some more importing errors 2021-09-08 23:14:07 +02:00
mmacierzanka 64e48c61ba fixed importing errors #vscode 2021-09-08 23:11:28 +02:00
mmacierzanka c3bf914a81 separated TargetID to its own parameter 2021-09-08 23:07:43 +02:00
mmacierzanka 2ca3143a76 changed CommandType to "CHAT" | "CONTEXT" 2021-09-08 22:57:43 +02:00
mmacierzanka 8ce872088d ContextMenuCommand 2021-09-08 22:54:02 +02:00
mmacierzanka 608b0141d0 moved general command-related types 2021-09-08 22:53:08 +02:00
mmacierzanka 4b854950d1 removed UserCommand file 2021-09-08 22:40:55 +02:00
mmacierzanka b8f08e87e3 more error fixes and cleanups 2021-09-08 22:39:20 +02:00
mmacierzanka 4724f18fdc removed InputParameter + fixed all related errors 2021-09-08 22:21:19 +02:00
mmacierzanka 38eeb6f788 removed old managers 2021-09-08 22:05:59 +02:00
mmacierzanka 4d2507e3e6 changed TargetID and simplified CommandInteractionData 2021-09-08 22:05:22 +02:00
mmacierzanka 2c8bcd33e1 rewritten CommandManager 2021-09-08 22:04:53 +02:00
mmacierzanka f92997416d added TargetID to CommandInteractionData 2021-09-08 21:32:12 +02:00
mmacierzanka c5718d7c57 processArguments method 2021-09-08 21:31:41 +02:00
mmacierzanka a9751c2622 updated axios to fix a security issue 2021-09-08 20:49:56 +02:00
mmacierzanka a4a12615eb changed isCommand methods 2021-09-08 20:48:14 +02:00
mmacierzanka e76d951d96 changed CommandInteractionData to ReadonlyMap 2021-09-08 20:47:58 +02:00
mmacierzanka 316dc08965 added get, list, add methods definition 2021-09-08 20:47:36 +02:00
mmacierzanka 002d6a1939 added dev state to indicate early versions of CommandBot 2021-09-08 20:43:02 +02:00
mmacierzanka 611cd22a5c almost completly removed ts dynamic typing 2021-09-08 20:07:46 +02:00
mmacierzanka fd2b6537de added list method and separated complicated types 2021-09-08 19:33:08 +02:00
mmacierzanka 07de442c01 added method templates 2021-09-08 19:22:33 +02:00
mmacierzanka 037a4a5999 added prefix and argumentSeparator to CommandManager 2021-09-08 19:07:16 +02:00
mmacierzanka f705c6c896 divided types directory to multiple subfolders 2021-09-08 18:55:15 +02:00
mmacierzanka 7c128a9614 new CommandManager 2021-09-08 18:43:56 +02:00
mmacierzanka 383965c3d6 changed folder structure 2021-09-08 17:32:45 +02:00
mmacierzanka 10cbfdddf7 changed CommandInteraction to Interaction 2021-09-08 00:10:51 +02:00
mmacierzanka 722f355d9b created TargetID 2021-09-07 20:49:35 +02:00
mmacierzanka 1e2966dfa9 fixed not found message not firing and added some minor changes 2021-09-07 20:30:51 +02:00
mmacierzanka 3004787cf0 Bot event procedure rework and import fixes
Known issues: throwing an error causes the bot to crash, context menu interaction doesn't seem to actually work
2021-09-07 20:05:32 +02:00
mmacierzanka 191e213dcf fixed index.ts and removed unused import 2021-09-07 19:15:37 +02:00
mmacierzanka 2d9d0dbd66 MessageCommandManager 2021-09-07 19:13:21 +02:00
mmacierzanka 6ab0874a1a moved and renamed CommandMessageStructure 2021-09-07 18:43:32 +02:00
mmacierzanka 0ec0eb985b removed old CommandManager 2021-09-07 18:34:17 +02:00
mmacierzanka 2c31443a01 replaced undefined type with null in Parameter 2021-09-07 18:27:11 +02:00
mmacierzanka 49f01a3bed created ChatCommandManager 2021-09-07 18:02:01 +02:00
mmacierzanka ea8211c5ff create CommandNotFound error 2021-09-07 18:01:37 +02:00
mmacierzanka 66d788084a added null input parameter type 2021-09-07 17:59:47 +02:00
mmacierzanka 47ec47338c renamed TextCommand to ChatCommand 2021-09-07 17:16:59 +02:00
mmacierzanka b7bdbf3977 fixed registration issue 2021-09-07 17:13:40 +02:00
mmacierzanka f4ffe3dda7 changed private _list property to protected type 2021-09-07 00:09:13 +02:00
mmacierzanka 317b75d116 old CommandManager as a temporary reference 2021-09-06 23:41:36 +02:00
mmacierzanka b2c33e7555 new extensible CommandManager 2021-09-06 23:41:14 +02:00
mmacierzanka 4a6f496009 Fixed an issue with context menu interactions not firing 2021-09-06 23:05:23 +02:00