parent
d94701fcfb
commit
b13389aae6
|
@ -52,7 +52,8 @@ func (t *Twitter) Tweet(tweet *twitter.Tweet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
w := &disco.Webhook{
|
w := &disco.Webhook{
|
||||||
Username: tweet.User.Name,
|
Username: "@" + tweet.User.ScreenName,
|
||||||
|
AvatarURL: tweet.User.ProfileImageURLHttps,
|
||||||
Content: fmt.Sprintf("https://twitter.com/%d/status/%d", tweet.User.ID, tweet.ID),
|
Content: fmt.Sprintf("https://twitter.com/%d/status/%d", tweet.User.ID, tweet.ID),
|
||||||
}
|
}
|
||||||
if _, err := w.Send(context.Background(), t.Filter.Webhook); err != nil {
|
if _, err := w.Send(context.Background(), t.Filter.Webhook); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue