This website requires JavaScript.
aed504ae21
feat(lib,bot): command registration handleling
2025-rewrite
Gustavo L de Mello (Guz)
2024-11-25 14:49:57 -03:00
4ad8d4a7f3
feat(lib,bot): start bot on Bot struct initialization
Gustavo L de Mello (Guz)
2024-11-25 14:44:06 -03:00
5c8f8e7fd8
refactor: remove old abstraction from codebase
Gustavo L de Mello (Guz)
2024-11-25 14:41:00 -03:00
4a616f824b
refactor(cmd,dislate): move dislate bot for top level package
Gustavo L de Mello (Guz)
2024-11-25 14:40:37 -03:00
2e54290ef8
refactor(lib,commands,context): move ChatCommandCtx to command_chat.go
Gustavo L de Mello (Guz)
2024-11-22 19:24:19 -03:00
7b8d7322d0
refactor(lib,commands,errors): update errors to conform with Go's standatds
Gustavo L de Mello (Guz)
2024-11-22 19:12:35 -03:00
4b54589178
fix(lib,commands): update Validate() method
Gustavo L de Mello (Guz)
2024-11-22 19:10:58 -03:00
14fae3941a
refactor(lib,commands,errors): move errors to command_chat.go
Gustavo L de Mello (Guz)
2024-11-22 19:08:18 -03:00
83a160b1e7
feat(lib,commands,context): UserCommandCtx for Handler
Gustavo L de Mello (Guz)
2024-11-22 19:07:10 -03:00
9441c02c78
feat(lib,commands,context): MessageCommandCtx for Handler
Gustavo L de Mello (Guz)
2024-11-22 19:06:58 -03:00
c50b636c03
refactor(lib,commands,context): move ChatCommandContextOptions to commands_chat.go and rename Context to Ctx
Gustavo L de Mello (Guz)
2024-11-22 19:06:32 -03:00
e7a280a491
refactor(lib,commands): remove boolean from Validate methods
Gustavo L de Mello (Guz)
2024-11-22 19:00:58 -03:00
4d7eb73f75
refactor(lib,commands,errors): error capitalization and nouns do not follow Go's review standards
Gustavo L de Mello (Guz)
2024-11-22 18:50:33 -03:00
84dad980a9
refactor(lib,commands,options): create generic ChatCommandOptionChoice type
Gustavo L de Mello (Guz)
2024-11-22 18:46:16 -03:00
38709bb4bf
fix(lib,commands,options): choices on command types that do not support them
Gustavo L de Mello (Guz)
2024-11-22 18:45:33 -03:00
f1dc8e7421
feat(lib,commands,options): choice checking for validation
Gustavo L de Mello (Guz)
2024-11-22 18:35:17 -03:00
cad54f3fe7
refactor(lib,commands,options): rearrange structs definition to alphabetical order
Gustavo L de Mello (Guz)
2024-11-22 10:45:08 -03:00
4d3b32e85f
feat(lib,commands,context): add Value of options for ChatCommandContext
Gustavo L de Mello (Guz)
2024-11-22 10:38:22 -03:00
334e098cdd
feat(lib,commands,context): Context and ChatCommandContext for Handler
Gustavo L de Mello (Guz)
2024-11-22 10:37:40 -03:00
db21d12dfc
fix(lib,commands,options): check for Autocomplete and Choices mutual exclusivity
Gustavo L de Mello (Guz)
2024-11-22 09:31:57 -03:00
12d6e0bf7a
fix(lib,commands,options): remove Autocomplete from options that do not support it
Gustavo L de Mello (Guz)
2024-11-22 09:31:17 -03:00
7e7260081e
feat(lib,commands,options): attachement option for chat commands
Gustavo L de Mello (Guz)
2024-11-21 21:35:34 -03:00
d155c2144a
feat(lib,commands,options): number option for chat commands
Gustavo L de Mello (Guz)
2024-11-21 21:35:18 -03:00
793c3d0408
feat(lib,commands,options): mentionable option for chat command
Gustavo L de Mello (Guz)
2024-11-21 21:35:05 -03:00
334ef58d3c
feat(lib,commands,options): role option for chat command
Gustavo L de Mello (Guz)
2024-11-21 21:34:38 -03:00
3cf917b3e8
feat(lib,commands,options): channel option for chat commands
Gustavo L de Mello (Guz)
2024-11-21 21:34:12 -03:00
67dc22db0e
feat(lib,commands,options): user option for chat commands
Gustavo L de Mello (Guz)
2024-11-21 21:33:55 -03:00
49fb58b4c5
feat(lib,commands,options): boolean option for chat commands
Gustavo L de Mello (Guz)
2024-11-21 21:33:36 -03:00
d39147f215
feat(lib,commands,options): integer option for chat commands
Gustavo L de Mello (Guz)
2024-11-21 21:33:18 -03:00
b8a214dedd
feat(lib,commands,options): StringOption for ChatCommand
Gustavo L de Mello (Guz)
2024-11-21 21:32:36 -03:00
7f2454c567
feat(lib,commands): UserCommand struct
Gustavo L de Mello (Guz)
2024-11-21 21:26:04 -03:00
f7d1311c25
feat(lib,commands): MessageCommand struct
Gustavo L de Mello (Guz)
2024-11-21 21:25:52 -03:00
f99e3dd4e5
feat(lib,commands): ChatCommand object/struct
Gustavo L de Mello (Guz)
2024-11-21 21:25:29 -03:00
c8f45183f6
feat(lib,commands): Command interface
Gustavo L de Mello (Guz)
2024-11-21 21:24:46 -03:00
ac523cba73
feat(lib): new bot abstraction library
Gustavo L de Mello (Guz)
2024-11-21 21:23:09 -03:00
d91826acc1
feat(commands,components): support for message component handling
Gustavo L de Mello (Guz)
2024-11-19 10:56:28 -03:00
507a9127ad
feat(commands): send command data alongside interaction data
Gustavo L de Mello (Guz)
2024-11-19 10:55:24 -03:00
e5f7c26a6c
refactor(commands): rename CommandFunc to InteractionHandler and make it private
Gustavo L de Mello (Guz)
2024-11-18 17:42:01 -03:00
dfe40d9972
refactor(commands): make CommandName, CommandId alias types private
Gustavo L de Mello (Guz)
2024-11-18 17:41:28 -03:00
46e3e7fb88
feat(commands,interactions): basic error handling of interactions
Gustavo L de Mello (Guz)
2024-11-18 17:24:33 -03:00
2ee70560dc
refactor(commands,interactions): move interactions handling to dedicated function and file
Gustavo L de Mello (Guz)
2024-11-18 17:16:37 -03:00
b46c5b6e52
feat(commands): improve value comparasion between local and registered commands
Gustavo L de Mello (Guz)
2024-11-18 13:36:00 -03:00
52274740ae
chore(v1): delete old cli from version 1
Gustavo L de Mello (Guz)
2024-11-18 13:34:45 -03:00
fd2593e43d
chore(v1): delete old code from version 1
Gustavo L de Mello (Guz)
2024-11-18 13:34:25 -03:00
2ca2193617
chore(debugger): add verbosity flag in launch.json
Gustavo L de Mello (Guz)
2024-11-18 10:05:52 -03:00
1cdc8393d5
feat(main): add verbosity level flag for debugging
Gustavo L de Mello (Guz)
2024-11-18 10:05:04 -03:00
5e08661594
fix(commands): i.User is nil on guilds, missing check
Gustavo L de Mello (Guz)
2024-11-18 10:04:42 -03:00
3dd9e332de
feat(commands,bot): mock command for testing
Gustavo L de Mello (Guz)
2024-11-18 10:04:01 -03:00
84ade64afd
fix(bot): missing intents
Gustavo L de Mello (Guz)
2024-11-18 10:03:11 -03:00
2316448156
fix(bot): token prefix missing
Gustavo L de Mello (Guz)
2024-11-18 10:03:01 -03:00
c9225386ac
feat(commands): accept Command slice instead of map
Gustavo L de Mello (Guz)
2024-11-18 09:38:44 -03:00
512794629e
feat(commands): error return in handler functions
Gustavo L de Mello (Guz)
2024-11-18 09:38:04 -03:00
2fca837809
fix(main): incorrect database url/path
Gustavo L de Mello (Guz)
2024-11-18 09:37:06 -03:00
ac54384a91
fix(db): create table queries syntax error
Gustavo L de Mello (Guz)
2024-11-18 09:36:33 -03:00
84a847f3b0
refactor(commands): move removal of unhanlded commands to it's own function
Gustavo L de Mello (Guz)
2024-11-13 19:50:41 -03:00
cbc9c3236e
refactor(commands): move registered commands map to dedicated function
Gustavo L de Mello (Guz)
2024-11-13 19:49:57 -03:00
070e3be70b
refactor(commands): rename RegisterCommands to UpdateCommands
Gustavo L de Mello (Guz)
2024-11-13 19:48:30 -03:00
d3e047a66f
refactor(commands): move comparing functions to it's own file
Gustavo L de Mello (Guz)
2024-11-12 16:15:08 -03:00
4ee34f49f6
feat(commands): new commands handler implementation
Gustavo L de Mello (Guz)
2024-11-12 16:10:00 -03:00
0566b1624a
refactor: rewrite, a lot
Gustavo L de Mello (Guz)
2024-11-04 19:21:01 -03:00
daa63f5d64
refactor!: restructure all project packages to simplify it
main
Gustavo L de Mello (Guz)
2024-11-04 09:02:57 -03:00
202ddf5dac
feat(messages): base of message reply
wip/support-for-reply-messages
sxpphickat
2024-09-25 15:29:07 -03:00
984f39caf2
fix: check for nil pointer in author id
Gustavo L de Mello (Guz)
2024-09-25 15:19:48 -03:00
59fc36c05d
feat(makefile): add re rule to makefile
sxpphickat
2024-09-25 11:28:07 -03:00
65133b28dc
chore(sqlite): add lazysql for sqlite management
Gustavo L de Mello (Guz)
2024-09-05 17:36:16 -03:00
98009015c3
refactor(events,errors): simplify and structure more error handling of events
Gustavo L de Mello (Guz)
2024-09-05 17:35:52 -03:00
790687e351
chore: formatting
Gustavo L de Mello (Guz)
2024-09-04 17:06:22 -03:00
c6d5d81590
fix(commands,channels): error handling for not found groups
Gustavo L de Mello (Guz)
2024-09-04 17:04:01 -03:00
decc8fa733
feat: support for deleting threads from messages
Gustavo L de Mello (Guz)
2024-09-03 16:38:10 -03:00
97c53c4cc7
fix: .vscode/launch.json
Gustavo "Guz" L. de Mello
2024-09-03 08:56:49 -03:00
0ed66815f7
refactor: rename evErr to everr
Gustavo "Guz" L. de Mello
2024-09-02 18:25:57 -03:00
f70de4bca1
feat: rename evErr to everr
Gustavo "Guz" L. de Mello
2024-09-02 17:47:23 -03:00
a84d6dabfd
refactor(events,errors): simplified errors in events
Gustavo "Guz" L. de Mello
2024-09-02 17:40:11 -03:00
034fd9e905
style(messages,threads): format code
Gustavo "Guz" L. de Mello
2024-08-30 14:44:42 -03:00
bb4051876a
feat(messages,threads): support for thread syncronization between channels
Gustavo "Guz" L. de Mello
2024-08-30 14:21:17 -03:00
7225415b22
fix(sqlite): database is locked issue
Gustavo "Guz" L. de Mello
2024-08-29 13:59:23 -03:00
641e7ebdbf
feat(messages,events): message deleting support
Gustavo "Guz" L. de Mello
2024-08-28 14:11:09 -03:00
0d6684666e
fix(sqlite,guilddb): sql DELETE queries
Gustavo "Guz" L. de Mello
2024-08-28 14:10:42 -03:00
75f72158af
chore: ignore debug files
Gustavo "Guz" L. de Mello
2024-08-28 10:05:24 -03:00
679f3e0272
chore(formatting,ci): more formatting commands
Gustavo "Guz" L. de Mello
2024-08-28 10:04:55 -03:00
61c9f9aed8
feat(events,messages): message edit/update support
Gustavo "Guz" L. de Mello
2024-08-26 20:40:06 -03:00
60fe8190cd
refactor(commands,channels): change publicity of subcommands
Gustavo "Guz" L. de Mello
2024-08-26 18:34:36 -03:00
03d35268c5
refactor(commands,config): use slog.Level methods for parsing the option
Gustavo "Guz" L. de Mello
2024-08-26 11:56:54 -03:00
1ea4309224
feat(commands,config): level changing command
Gustavo "Guz" L. de Mello
2024-08-26 11:51:13 -03:00
739ba7062a
fix(commands,config): reponse type
Gustavo "Guz" L. de Mello
2024-08-26 11:32:04 -03:00
b37934ded1
feat(bot,events,commands): guild configuration and logging
Gustavo "Guz" L. de Mello
2024-08-26 11:16:26 -03:00
220e14c020
feat(guilddb): guild configuration
Gustavo "Guz" L. de Mello
2024-08-26 11:15:47 -03:00
92479fbc61
chore(debugger): add debugging configuration for vscode and nvim-dap
Gustavo "Guz" L. de Mello
2024-08-23 21:06:22 -03:00
b49148a3ef
feat(events,messages): use webhook for new messages
Gustavo "Guz" L. de Mello
2024-08-22 09:40:27 -03:00
a1cf216e36
refactor: simplify error checking
Gustavo "Guz" L. de Mello
2024-08-22 08:56:43 -03:00
162d58f204
fix(events,messages): reply message not having guild id in it's struct
Gustavo "Guz" L. de Mello
2024-08-22 08:49:06 -03:00
c43fffd14a
feat(events,messages): send translated message to linked channel
Gustavo "Guz" L. de Mello
2024-08-21 21:49:00 -03:00
eca9152d47
fix(guilddb,sqlite): messages table constrains
Gustavo "Guz" L. de Mello
2024-08-21 21:48:25 -03:00
23d958e3ea
feat(commands,channels): set language command
Gustavo "Guz" L. de Mello
2024-08-21 17:19:22 -03:00
b1bf048dfe
feat(commands,channels): link channels command
Gustavo "Guz" L. de Mello
2024-08-20 16:19:37 -03:00
4111f6fd36
fix(sqlite,guilddb): ChannelGroup json parsing
Gustavo "Guz" L. de Mello
2024-08-20 16:09:11 -03:00
ff98782492
fix(sqlite,guilddb): ChannelGroupInsert length condition
Gustavo "Guz" L. de Mello
2024-08-20 15:23:41 -03:00
ef9ae97139
fix(guilddb,sqlite): use json to store channel groups
Gustavo "Guz" L. de Mello
2024-08-19 20:25:38 -03:00
9e27dc4ad3
refactor(bot): rename "discordgo" to "dgo"
Gustavo "Guz" L. de Mello
2024-08-19 20:25:11 -03:00
cf59c2d8e0
feat(commands): handling of message components
Gustavo "Guz" L. de Mello
2024-08-19 20:24:51 -03:00