62 Commits

Author SHA1 Message Date
26b541ceef Add storytime feature 2025-04-15 16:07:12 -04:00
77157dcabe Changes for running on FreeBSD 2025-03-29 14:38:43 -04:00
9e4dae1fd4 [README.md] Add more things to the todo list 2025-02-11 17:45:17 -05:00
8ac9faec2c [main.c] Add some text for the last published data of empty feeds 2025-02-08 16:37:17 -05:00
004bab1de6 [main.c] Fix adding empty feeds
If there are no items in a feed, set the last_pubDate variable to 0 instead of dereferencing a null pointer (oops)
2025-02-08 13:54:46 -05:00
ef9c5caf4e [main.c] Send all new entries in a feed instead of repeating the last entry.
This is such a silly error. lmao.
2025-01-31 00:32:35 -05:00
ae53af5fe2 [main.c] Also clean up feeds on thread delete 2025-01-09 12:30:24 -05:00
b8ea689cc3 Remove feeds associated with a channel when it is deleted 2025-01-09 12:20:52 -05:00
e1b470b27c [main.c] Immediately remembered why I didn't register the timers on ready 2024-12-30 14:40:45 -05:00
5164aed19d Do something special on Tuesday
Optional feature, can be enabled for a certain channel with a config flag.
![Happy Tuesday](https://tenor.com/view/happy-tuesday-its-tuesday-tuesday-dance-default-mario-gif-15064439)
2024-12-30 14:32:13 -05:00
6cce5e129e [config.json] Add config entries for the tuesday event 2024-12-30 13:38:56 -05:00
d90fcfa32a Move exists check to the add command instead of the database insert routine so it can run earlier 2024-12-11 02:30:29 -05:00
4aee41c9a8 [main.c] Use zblock_feed_info_minimal_free() instead of freeing these objects individually 2024-12-11 01:35:37 -05:00
3e6089944d [feed_info.c] Add clarifying comments
Looking back at this code, it confused me for a second as to why I was throwing out the result of this function, so I added a comment.
2024-12-11 01:18:44 -05:00
4f3e00cb53 [main.c] Throw feed retrieval into a thread so it won't hold up the event loop 2024-11-27 11:29:37 -05:00
3aa6442fcc [README.md] Update TODO list 2024-11-26 01:47:20 -05:00
3d69dba0e6 Remove all feeds associated with a guild when the bot leaves 2024-11-26 01:46:22 -05:00
7120a04f92 [main.c] Complete list functionality 2024-11-25 22:32:00 -05:00
29598f733c Add zblock_feed_info_retrieve_chunk_channel()
I actually did this a couple hours ago but the rest of the implementation for the list command is taking a very long time.
2024-11-25 22:13:23 -05:00
bba38b527e [main.c] Test buttons in list message 2024-11-25 16:40:29 -05:00
4bda418f6a [feed_info.c] Finish up our database query 2024-11-25 01:24:25 -05:00
69be63aa2e Abstract out the last remaining SQL queries in timer_retrieve_feeds() 2024-11-25 00:52:41 -05:00
23ed4a7d96 [main.c] Make the list command return a basic embed 2024-11-24 23:36:43 -05:00
35aba86aaa [feed_info.c] You were casting integers to pointers. Don't do that. 2024-11-24 22:48:15 -05:00
872dfb4350 [feed_info.h] One semicolon can ruin everything. 2024-11-24 22:39:48 -05:00
974aff7a09 Add zblock_feed_info_count_channel() 2024-11-24 21:26:19 -05:00
0e01785913 [feed_info.c] Send numeric parameters in binary format 2024-11-24 20:46:43 -05:00
b2f76bf2a3 [main.c] Add small delay to timer so it doesn't trigger before login 2024-11-24 18:10:14 -05:00
145e92db13 [main.c] libpq will have status PGRES_TUPLES_OK when command is done 2024-11-24 17:38:18 -05:00
6fad41ba21 [main.c] Async (real) 2024-11-24 17:25:58 -05:00
828c2c8c4c [main.c] We love async 2024-11-24 17:18:55 -05:00
da16094410 Fix time parsing behavior 2024-11-24 12:45:30 -05:00
e1bbea325c [main.c] Attempt to fix feed retrieval 2024-11-24 11:47:01 -05:00
56ae903c41 Fix zblock_feed_info_exists()
Returned row count value is actually a bigint.
2024-11-23 21:45:27 -05:00
a7ee748e5d [main.c] Change feed message format 2024-11-23 21:00:32 -05:00
61104e182a [main.c] Fix feed retrieval code 2024-11-23 20:52:22 -05:00
40bbe3a49d [feed_info.c] Fix pubDate_to_time_t to work with both types of time strings 2024-11-23 19:40:53 -05:00
4ef9902b48 [main.c] Move timer creation outside of on_ready() 2024-11-23 19:12:57 -05:00
d179fc46a2 Tell PQexecParams to obtain data in binary format 2024-11-23 18:32:56 -05:00
55cd0d678e [config.c] actually 2024-11-23 17:53:55 -05:00
45fe7301f0 [config.c] fix implicit function declaration 2024-11-23 17:52:10 -05:00
3ad244ae09 [config.c] Actually read config 2024-11-23 17:50:00 -05:00
34bbdcf13e [main.c] Once again COMPILE YOUR CODE. PLEASE. 2024-11-23 17:23:49 -05:00
fdfc259435 Byte order called. You were about to make a huge mistake. 2024-11-23 17:22:18 -05:00
bf9e003e1e [main.c] Add remove command 2024-11-23 17:12:57 -05:00
92aba79405 [feed_info.c] switch %ld to PRId64 in snprintf
SQL only supports signed ints but who cares? Two's complement is my best friend.
2024-11-23 16:57:38 -05:00
47143582e0 Add zblock_feed_info_delete() 2024-11-23 16:47:18 -05:00
ca6d37a1cf Add zblock_feed_info_update 2024-11-23 15:38:53 -05:00
44b1f80b9e [feed_info.c] We do a little bit of logging 2024-11-23 14:21:29 -05:00
388306d4a3 Move insert logic from add command into feed_info.c 2024-11-23 14:17:15 -05:00