Commit Graph

144 Commits

Author SHA1 Message Date
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
2fca837809 fix(main): incorrect database url/path 2024-11-18 09:37:06 -03:00
ac54384a91 fix(db): create table queries syntax error 2024-11-18 09:36:33 -03:00
84a847f3b0 refactor(commands): move removal of unhanlded commands to it's own function 2024-11-13 19:50:41 -03:00
cbc9c3236e refactor(commands): move registered commands map to dedicated function 2024-11-13 19:49:57 -03:00
070e3be70b refactor(commands): rename RegisterCommands to UpdateCommands 2024-11-13 19:48:30 -03:00
d3e047a66f refactor(commands): move comparing functions to it's own file 2024-11-12 16:15:08 -03:00
4ee34f49f6 feat(commands): new commands handler implementation 2024-11-12 16:10:00 -03:00
0566b1624a refactor: rewrite, a lot
The last implementation was sketchy, and since I have been weeks without
interacting with the codebase, I don't have the pacience to know what
the fuck my mind was thinking before
2024-11-04 19:21:01 -03:00
daa63f5d64 refactor!: restructure all project packages to simplify it 2024-11-04 09:02:57 -03:00
984f39caf2 fix: check for nil pointer in author id 2024-09-25 15:19:48 -03:00