Documentation ¶
Index ¶
- func GetTweets(username string) <-chan *twitterscraper.Result
- func GetUserID(username string) (string, error)
- func Register() error
- type Bot
- func (b Bot) EnsureCommented(tweetURL, nick, text string)
- func (b Bot) EnsureFollowed(who string) error
- func (b Bot) EnsureFollowingReciprocity(who string) error
- func (b Bot) EnsureLiked(tweetURL string)
- func (b Bot) EnsureRetweeted(tweetURL string)
- func (b Bot) Follow(who string) error
- func (b Bot) IsCommented(tweetURL, nick string) (bool, error)
- func (b Bot) IsFollowed(who string) (bool, error)
- func (b Bot) IsFollowing(who string) (bool, error)
- func (b Bot) IsLiked(tweetURL string) (bool, error)
- func (b Bot) IsLoggedIn() (bool, error)
- func (b Bot) IsProfileAccessible() (bool, error)
- func (b Bot) IsRetweeted(tweetURL string) (bool, error)
- func (b Bot) IsTweetAvailable(tweetURL string) (bool, error)
- func (b Bot) LogCommentLink(tweetURL string)
- func (b Bot) Login() error
- func (b Bot) MaybeLike(tweetURL string, chance float32)
- func (b Bot) MaybeRetweet(tweetURL string, chance float32)
- func (b Bot) Open() error
- func (b Bot) Post(text string) error
- func (b Bot) Reply(tweetURL, text string)
- func (b Bot) ReplyFromTemplate(tweetURL, template string)
- func (b Bot) TrollReply(tweetURL string)
- func (b Bot) Unfollow(who string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTweets ¶
func GetTweets(username string) <-chan *twitterscraper.Result
Types ¶
type Bot ¶
type Bot struct { Username string // contains filtered or unexported fields }
func (Bot) EnsureCommented ¶
EnsureCommented ensures that specified tweet is commented by the bot
func (Bot) EnsureFollowed ¶
EnsureFollowed makes shure, the profile is followed by the bot
func (Bot) EnsureFollowingReciprocity ¶
TBD EnsureFollowingReciprocity makes shure makes shure the bot only follows those who follows the bot
func (Bot) EnsureLiked ¶
EnsureLiked unsures that specified tweet is liked by the bot
func (Bot) EnsureRetweeted ¶
EnsureRetweeted unsures that specified tweet is retweeted by the bot
func (Bot) IsCommented ¶
IsCommented checks whether specified tweet was already commented by the bot
func (Bot) IsFollowed ¶
IsFollowed checks whether user is followed by a bot
func (Bot) IsFollowing ¶
TBD IsFollowing checks whether the user follows the bot
func (Bot) IsLoggedIn ¶
IsLoggedIn checks whether the bot is logged in in the browser
func (Bot) IsProfileAccessible ¶
IsProfileAccessible checks whether profile is not blocked
func (Bot) IsRetweeted ¶
IsRetweeted checks whether specified tweet is already retweeted by the bot
func (Bot) IsTweetAvailable ¶
IsAvailable navigates to tweets URL and checks whether the tweet is available
func (Bot) LogCommentLink ¶
func (Bot) MaybeRetweet ¶
MaybeRetweet retweets the post with chance of 0.0-1.0.
func (Bot) ReplyFromTemplate ¶
ReplyFromTemplate makes sure that bot replied to the tweet with text generated from template
func (Bot) TrollReply ¶
TrollReply makes sure that the bot reacts to the tweet with some trolly comment