[GH-ISSUE #85] Embed Customization Options Are Ignored #19
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
TheLovinator/discord-twitter-webhooks#19
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @EthanC on GitHub (Apr 1, 2023).
Original GitHub issue: https://github.com/TheLovinator1/discord-twitter-webhooks/issues/85
Following the recent
.envrewrite (github.com/TheLovinator1/discord-twitter-webhooks@370b30688a), the following options are not properly set in their respectiveget_settings.pyfunctions. The returned values will always be"", and I'm not sure truncation is needed for URLs?EMBED_FOOTER_TEXTEMBED_FOOTER_ICONEMBED_IMAGEEMBED_THUMBNAILAdditionally, I noticed logging for
EMBED_FOOTER_TEXTandEMBED_FOOTER_ICONis malformed as it does not make sense.Lastly, I'd like to suggest defaults for two of these options, based on what the Discord client uses for Twitter link embeds.
EMBED_FOOTER_TEXT=TwitterEMBED_FOOTER_ICON=https://abs.twimg.com/icons/apple-touch-icon-192x192.png@TheLovinator1 commented on GitHub (Apr 1, 2023):
Oops, I rewrote some parts of the code and forgot to readd that it sets the setting from the environment variable. I really need to add more tests that checks this.
I removed truncation completely and changed it so it shuts down the bot if footer text and author name is longer than the allowed amount. So it won't truncate URLs any more.
The default footer is now Twitter and the bird.
I also changed so that the bot uses the old environment variable if both are used instead of using the new one.
Thanks for all the help btw