tweetsync

package
v0.0.0-...-eae27d5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 29, 2021 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TwitterTimeFormat = "Mon Jan 2 15:04:05 +0000 2006"

Functions

func InitTimelines

func InitTimelines(ds *discordgo.Session)

InitTimelines initialize all streams for Tweet streaming

func Scan

func ScanTimeline

func ScanTimeline(ds *discordgo.Session, tc *twitter.Client, ts *config.TweetSyncConfig)

ScanTimeline polls a stream of Tweets and posts them in the specified channel

func SyncedTweetToEmbed

func SyncedTweetToEmbed(st models.SyncedTweet) *discordgo.MessageEmbed

func TweetToEmbed

func TweetToEmbed(tweet *twitter.Tweet, translation string, translators []string) *discordgo.MessageEmbed

func TweetToEmbedOld

func TweetToEmbedOld(tweet *twitter.Tweet, translation string, translators []string) *discordgo.MessageEmbed

func WrapTranslation

func WrapTranslation(translation string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL