[main.c] Change feed message format

This commit is contained in:
2024-11-23 21:00:32 -05:00
parent 61104e182a
commit a7ee748e5d

2
main.c
View File

@ -152,7 +152,7 @@ static void timer_retrieve_feeds(struct discord *client, struct discord_timer *t
// Send new entry in the feed // Send new entry in the feed
char msg[DISCORD_MAX_MESSAGE_LEN]; char msg[DISCORD_MAX_MESSAGE_LEN];
snprintf(msg, sizeof(msg), "## %s\n### %s\n%s", mrss_feed->title, mrss_feed->item->title, mrss_feed->item->link); snprintf(msg, sizeof(msg), "### %s\n[%s](%s)", mrss_feed->title, mrss_feed->item->title, mrss_feed->item->link);
struct discord_create_message res = { .content = msg }; struct discord_create_message res = { .content = msg };
discord_create_message(client, feed_buffer->info.channel_id, &res, NULL); discord_create_message(client, feed_buffer->info.channel_id, &res, NULL);
item = item->next; item = item->next;