Commit Graph

22 Commits

Author SHA1 Message Date
800bc54fbf Use regex to filter which levels can match 2024-03-09 17:52:53 -06:00
a72de046e1 Split output into stdout/stderr based on log level 2024-03-09 17:48:29 -06:00
5e31522491 Don't panic when .env file cannot be loaded 2024-03-09 17:31:11 -06:00
d45d64a26f Remove unused scan functionality 2024-02-28 03:06:39 -06:00
473690bbd1 Switch to field-based logging (main.go, api.go)
Also removed unused register function
2023-12-20 08:18:29 -06:00
a6e47a33e6 Use flag.Args() to handle flag + normal arguments 2023-12-20 08:17:44 -06:00
511b776cc7 Setup proper modal interaction handlers using CustomID string slice 2023-12-19 08:01:08 -06:00
5a9c01ab31 Pretty printing with spew 2023-12-17 06:49:48 -06:00
c47e8ea2e3 Enable ModalSubmit interactions, handler switch, default warning 2023-12-17 06:05:58 -06:00
4f384618bc Reload session on bot login event 2023-12-17 04:54:46 -06:00
52bf7f9484 Improve logging, use time.Time for lastReload var 2023-12-15 06:57:46 -06:00
f0da57c723 Improve log timestamp format 2023-12-15 06:47:19 -06:00
b3b19a8a99 Remove reload func name arg, add log/comment 2023-12-15 06:44:39 -06:00
b5ee5bec0c Replace log with logrus for level based logging, add debug flag 2023-12-15 06:40:10 -06:00
ca136634c9 Fix session variable redefinition 2023-12-15 06:16:38 -06:00
490cd9c911 Rename Bot main function 2023-12-15 05:58:01 -06:00
711979a7d1 Split run into scan/bot subcommands with default as bot, document main method, register signal.Notify early 2023-12-12 04:46:08 -06:00
fdb2a48cf7 Add redis setup & initialization, db.StoreCommand function 2023-12-12 02:49:39 -06:00
c6b83b883c Move command definition/handler into commands.go 2023-12-12 01:39:04 -06:00
108102c41e Defer idle connection closing, seed random location selection with user ID & moving interval 2023-12-12 01:27:49 -06:00
3121b1615e Invoke reload() in main, location autocomplete testing 2023-12-11 23:57:38 -06:00
941e6ac531 Module setup, initial command handling & bot initialization 2023-12-11 20:25:17 -06:00