Commit Graph

154 Commits

Author SHA1 Message Date
5c8f8e7fd8 refactor: remove old abstraction from codebase 2024-11-25 14:41:00 -03:00
4a616f824b refactor(cmd,dislate): move dislate bot for top level package 2024-11-25 14:40:37 -03:00
2e54290ef8 refactor(lib,commands,context): move ChatCommandCtx to command_chat.go 2024-11-22 19:24:19 -03:00
7b8d7322d0 refactor(lib,commands,errors): update errors to conform with Go's standatds 2024-11-22 19:12:35 -03:00
4b54589178 fix(lib,commands): update Validate() method 2024-11-22 19:10:58 -03:00
14fae3941a refactor(lib,commands,errors): move errors to command_chat.go 2024-11-22 19:08:18 -03:00
83a160b1e7 feat(lib,commands,context): UserCommandCtx for Handler 2024-11-22 19:07:10 -03:00
9441c02c78 feat(lib,commands,context): MessageCommandCtx for Handler 2024-11-22 19:06:58 -03:00
c50b636c03 refactor(lib,commands,context): move ChatCommandContextOptions to commands_chat.go and rename Context to Ctx 2024-11-22 19:06:32 -03:00
e7a280a491 refactor(lib,commands): remove boolean from Validate methods 2024-11-22 19:00:58 -03:00
4d7eb73f75 refactor(lib,commands,errors): error capitalization and nouns do not follow Go's review standards 2024-11-22 18:50:33 -03:00
84dad980a9 refactor(lib,commands,options): create generic ChatCommandOptionChoice type 2024-11-22 18:46:16 -03:00
38709bb4bf fix(lib,commands,options): choices on command types that do not support them 2024-11-22 18:45:33 -03:00
f1dc8e7421 feat(lib,commands,options): choice checking for validation 2024-11-22 18:35:17 -03:00
cad54f3fe7 refactor(lib,commands,options): rearrange structs definition to alphabetical order 2024-11-22 10:45:08 -03:00
4d3b32e85f feat(lib,commands,context): add Value of options for ChatCommandContext 2024-11-22 10:38:22 -03:00
334e098cdd feat(lib,commands,context): Context and ChatCommandContext for Handler 2024-11-22 10:37:40 -03:00
db21d12dfc fix(lib,commands,options): check for Autocomplete and Choices mutual exclusivity 2024-11-22 09:31:57 -03:00
12d6e0bf7a fix(lib,commands,options): remove Autocomplete from options that do not support it 2024-11-22 09:31:17 -03:00
7e7260081e feat(lib,commands,options): attachement option for chat commands 2024-11-21 21:35:34 -03:00
d155c2144a feat(lib,commands,options): number option for chat commands 2024-11-21 21:35:18 -03:00
793c3d0408 feat(lib,commands,options): mentionable option for chat command 2024-11-21 21:35:05 -03:00
334ef58d3c feat(lib,commands,options): role option for chat command 2024-11-21 21:34:38 -03:00
3cf917b3e8 feat(lib,commands,options): channel option for chat commands 2024-11-21 21:34:12 -03:00
67dc22db0e feat(lib,commands,options): user option for chat commands 2024-11-21 21:33:55 -03:00
49fb58b4c5 feat(lib,commands,options): boolean option for chat commands 2024-11-21 21:33:36 -03:00
d39147f215 feat(lib,commands,options): integer option for chat commands 2024-11-21 21:33:18 -03:00
b8a214dedd feat(lib,commands,options): StringOption for ChatCommand 2024-11-21 21:32:36 -03:00
7f2454c567 feat(lib,commands): UserCommand struct 2024-11-21 21:26:04 -03:00
f7d1311c25 feat(lib,commands): MessageCommand struct 2024-11-21 21:25:52 -03:00
f99e3dd4e5 feat(lib,commands): ChatCommand object/struct 2024-11-21 21:25:29 -03:00
c8f45183f6 feat(lib,commands): Command interface 2024-11-21 21:24:46 -03:00
ac523cba73 feat(lib): new bot abstraction library
following the idea from [Comicverse's library
package](https://forge.capytal.company/capytalcode/project-comicverse/src/branch/main/lib),
a new package inside the "lib" folder was created, to make a abstraction
over the discordgo package. The idea is to follow something similar to
the http package with it's router with Handle functions and with
inspirations from the package
[Disgolf](https://github.com/FedorLap2006/disgolf).
2024-11-21 21:23:09 -03:00
d91826acc1 feat(commands,components): support for message component handling 2024-11-19 10:56:28 -03:00
507a9127ad feat(commands): send command data alongside interaction data 2024-11-19 10:55:24 -03:00
e5f7c26a6c refactor(commands): rename CommandFunc to InteractionHandler and make it private 2024-11-18 17:42:01 -03:00
dfe40d9972 refactor(commands): make CommandName, CommandId alias types private 2024-11-18 17:41:28 -03:00
46e3e7fb88 feat(commands,interactions): basic error handling of interactions 2024-11-18 17:24:33 -03:00
2ee70560dc refactor(commands,interactions): move interactions handling to dedicated function and file 2024-11-18 17:16:37 -03:00
b46c5b6e52 feat(commands): improve value comparasion between local and registered commands 2024-11-18 13:36:00 -03:00
52274740ae chore(v1): delete old cli from version 1 2024-11-18 13:34:45 -03:00
fd2593e43d chore(v1): delete old code from version 1 2024-11-18 13:34:25 -03:00
2ca2193617 chore(debugger): add verbosity flag in launch.json 2024-11-18 10:05:52 -03:00
1cdc8393d5 feat(main): add verbosity level flag for debugging 2024-11-18 10:05:04 -03:00
5e08661594 fix(commands): i.User is nil on guilds, missing check 2024-11-18 10:04:42 -03:00
3dd9e332de feat(commands,bot): mock command for testing 2024-11-18 10:04:01 -03:00
84ade64afd fix(bot): missing intents 2024-11-18 10:03:11 -03:00
2316448156 fix(bot): token prefix missing 2024-11-18 10:03:01 -03:00
c9225386ac feat(commands): accept Command slice instead of map 2024-11-18 09:38:44 -03:00
512794629e feat(commands): error return in handler functions 2024-11-18 09:38:04 -03:00