tweeter

Mock Twitter embed generator for Discord
git clone git://git.lleb.me/tweeter
Log | Files | Refs | README | LICENSE

commit 5328b855bd748edc3c5f0d8a8a8e5cd35fde1f57
parent 7a746c117ad954c511df1648e69293f0ec9f789d
Author: cyckl <cyckl@pm.me>
Date:   Tue,  6 Oct 2020 17:44:34 -0700

formatting 2

Diffstat:
Mmain.go | 14+++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/main.go b/main.go @@ -84,14 +84,14 @@ func tweet(s *discordgo.Session, m *discordgo.MessageCreate) { // Fill embed and send it s.ChannelMessageSendEmbed(m.ChannelID, &discordgo.MessageEmbed{ Author: &discordgo.MessageEmbedAuthor{ - Name: tweetAuthor, - IconURL: discordgo.EndpointUserAvatar(m.Author.ID, m.Author.Avatar), + Name: tweetAuthor, + IconURL: discordgo.EndpointUserAvatar(m.Author.ID, m.Author.Avatar), }, - Color: 1942002, - Description: strings.TrimPrefix(m.Content, ".t "), - Footer: &discordgo.MessageEmbedFooter{ - Text: "Twitter", - IconURL: "https://abs.twimg.com/icons/apple-touch-icon-192x192.png", + Color: 1942002, + Description: strings.TrimPrefix(m.Content, ".t "), + Footer: &discordgo.MessageEmbedFooter{ + Text: "Twitter", + IconURL: "https://abs.twimg.com/icons/apple-touch-icon-192x192.png", }, Fields: []*discordgo.MessageEmbedField{