Commit graph

118 commits

Author SHA1 Message Date
lyx0
7f7839d9cb add logic for editing a timer 2022-08-27 17:38:03 +02:00
lyx0
0b117a7ac4 check the time interval before trying to add it as a timer 2022-08-26 03:42:19 +02:00
lyx0
4ff29bcbaa check the time format string when creating a new timer. Format should be like 30m, 10h, or 10h30m 2022-08-26 02:27:42 +02:00
lyx0
5abb28ec5d clean up timers 2022-08-26 02:01:43 +02:00
lyx0
e8a4888489 fix only the last timer running 2022-08-25 05:43:15 +02:00
lyx0
f7c3d4659c actually delete and stop a timer. to test ()addtimer xD 5s xD and then ()deletetimer xD 2022-08-25 04:42:37 +02:00
lyx0
b55b3ed0cb delete a timer from the database 2022-08-24 21:00:09 +02:00
lyx0
9bf18d3cdf add scheduler onto application struct and set the timer on creation 2022-08-23 16:37:45 +02:00
lyx0
ca1f4a35c4 add join messages to my other channels 2022-08-22 03:37:22 +02:00
lyx0
f030a9c2bf get timers from database and start them on startup 2022-08-22 03:06:23 +02:00
lyx0
6029d495b2 add a timer into the database 2022-08-22 02:13:07 +02:00
lyx0
feea944f64 start implementing timers 2022-08-21 21:04:27 +02:00
lyx0
61f15ef9e3 move application and config struct to main 2022-08-20 15:14:05 +02:00
lyx0
7dd3bf3f14 add simple gocron timer 2022-08-18 18:57:29 +02:00
lyx0
650e7f450f pass in a command to the insert method instead of name, text 2022-08-17 14:45:35 +02:00
lyx0
274a34cf7d clean up weather command 2022-08-15 17:38:10 +02:00
lyx0
73299f776c add openweathermap key 2022-08-15 17:37:35 +02:00
lyx0
f3bcd83855 add current weather command 2022-08-15 15:04:43 +02:00
lyx0
4125967c63 set default command category to uncategorized instead of default 2022-08-15 13:53:07 +02:00
lyx0
96eedbe293 add command category in database and add an command to add the category from 2022-08-15 00:53:41 +02:00
lyx0
a871dcd3cd clean up 2022-08-14 20:33:49 +02:00
lyx0
da412602f8 remove accidental space 2022-08-13 15:56:35 +02:00
lyx0
4374119f4c fix comments 2022-08-12 16:59:58 +02:00
lyx0
f241f2a816 add comments 2022-08-12 02:50:45 +02:00
lyx0
a2c9578b06 add comments 2022-08-12 00:49:58 +02:00
lyx0
29b6b3c952 add comments 2022-08-12 00:08:39 +02:00
lyx0
fbe3f6dc1e add comments 2022-08-11 23:34:05 +02:00
lyx0
b832ec63b6 make the commandPrefix a config value 2022-08-11 23:34:00 +02:00
lyx0
28b318dc92 move basic message routing into main function 2022-08-11 22:44:08 +02:00
lyx0
2f6657bdff add comments 2022-08-11 22:15:30 +02:00
lyx0
f9b94de757 cleanup commands 2022-08-11 21:49:19 +02:00
lyx0
704a6a9470 add way to delete commands 2022-08-11 21:49:15 +02:00
lyx0
4e4b26b43a rename EditCommand to EditCommandLevel 2022-08-11 21:01:13 +02:00
lyx0
afc2b74ff0 add some more placeholder commands 2022-08-11 20:35:34 +02:00
lyx0
ceb9c4b98d add command to change the level of a command in the database 2022-08-11 20:35:22 +02:00
lyx0
a970aa470d implement permissions for commands that checks a users level to be high enough 2022-08-11 19:31:58 +02:00
lyx0
350283018e query the database on a command and send it if it exists 2022-08-11 01:49:49 +02:00
lyx0
4a4e34a929 add comments explaining funky logic 2022-08-11 01:29:17 +02:00
lyx0
841025cac0 implement adding commands to the database 2022-08-11 01:18:51 +02:00
lyx0
67fb901065 move config and Application struct to models 2022-08-10 22:06:46 +02:00
lyx0
a0e724d009 get user level from database for command permissions 2022-08-10 22:06:36 +02:00
lyx0
fa9566d6ce get channels from database and join them on startup 2022-08-10 18:16:39 +02:00
lyx0
998ad5c907 add debug command 2022-08-10 02:18:39 +02:00
lyx0
b91dc8d60a add updating user level 2022-08-10 00:14:54 +02:00
lyx0
332de23f64 implement GetAllChannels functionality 2022-08-09 23:19:08 +02:00
lyx0
364ea24ca0 add channel and user database functionality onto application 2022-08-09 22:49:48 +02:00
lyx0
1728fb54f9 add adding and deleting user to the database 2022-08-09 22:34:12 +02:00
lyx0
471b02559f merge whisper and private messages into one file 2022-08-09 21:25:32 +02:00
lyx0
58b02f178e remove announce and check if the channel is already in the database 2022-08-09 21:24:46 +02:00
lyx0
3f16128812 delete channel from database 2022-08-09 19:50:46 +02:00