Replace :
title = "Changelog for version "…Changelog.Version,
With :
title = "@everyone Changelog for version "…Changelog.Version,
Or
title = " @ here Changelog for version "…Changelog.Version,
Replace :
title = "Changelog for version "…Changelog.Version,
With :
title = "@everyone Changelog for version "…Changelog.Version,
Or
title = " @ here Changelog for version "…Changelog.Version,
Unfortunately you can’t do @everyone and @here mentions inside of an Embed.And that title is inside the embed, so it would only show as text without the notification/mention. So it needs to be sent as a second separate message either before or after the embed to work and that’s what I’m trying to figure out.
Use the Embed Visualizer for your embed needs.
However, the way the code is set up, I doubt you can send a content request like that. Illusive will have to clear it up.
You can, webhooks allow content and embeds at once
Hello, im getting this error:
How can i Fix it?
Now its working but no posting noting in discord…
How can i fix?
You haven’t correctly asserted the webhook.
I personally just replaced
Webhook = GetConvar("changelog_webhook", "false") == "false" and false or GetConvar("changelog_webhook", "false"),
to
Webhook = "PUT_WEBHOOK_HERE",
Thanks soo much for the script @sadboilogan! Had a lot of fun messing around with it!
Made use of some formatting and syntax!
(for those who are curious about tagging, replace {embeds = DiscordEmbed}
with {content = "@everyone", embeds = DiscordEmbed}
I also made a function where it will dump the changelog into a txt file so once you make new changes you can go back and look at earlier changelogs if for whatever reason they are deleted/lost on discord, if you want a PR to add this lemme know.
Changelog_[Hour-Minute_Day-Month-Year]
I made it work somehow. It sends posts to discord fine but doesn’t update version even tho it prints changed version on console. Just changed the start of the server.lua with this:
local Config = {
Webhook = “***************************”,
FileName = “changelog.json”
}
Anyone know why might that be?
Hey @AntwanR942 Could you post the script on GitHub (the one which saves it as a txt + the embed) so we can use it as well.
I’ll make a PR to add it when I get round to it.
I’m not having much luck getting this working, as another has stated I get
Webhook and config found! Checking changelog info...
Changed Config Version!
But nothing actually post’s to the channel where the webhook was created?
Can’t get the webhook to actually POST, could someone show an example of the webhook on config? since tried several ways and it’s still not posting
Works fine. Make sure you’re setting the webhook convar before actually starting the resource. Maybe look at your server console to see if anything is printing.
Where exactly to SET the webhook ? I’ve tried many ways at the Config {} part but no success, console prints Webhook found and Version Updated, everything seems to be working, but it’s not actually posting anything.
May you show exactly where and how to SET the webhook ? ( just hook code or https://etc ? , on wich line and section of wich file? )
You use set changelog_webhook
as stated in the README.md
So I have to ADD those lines ? Where? Before the Config part, right? Cuz it’s not there, I only see GetConvar but no Set anywhere…
No, not even in the same file as the convar. The GetConvar
function gets the convar which is set anywhere. Typically, you want to set the convar before you start the resource in your server config.
set changelog_webhook "some_webhook_url"
ensure changelogs