irc3.plugins.social
Social networking¶
Add tweet
and retweet
commands.
Extend the bot with .get_social_connection()
and .search_tweets()
.
Usage:
>>> bot = IrcBot(
... includes=['irc3.plugins.social'],
... twitter=dict(key='yourkey', secret='yoursecret',
... token='yourtoken', token_secret='yoursecret')
... )
>>> bot.get_social_connection()
<TwitterAdapter for <twitter.api.Twitter object at ...>>
Api:
The social plugin
return a connection object for the network:
- A Twitter instance from https://github.com/sixohsix/twitter/tree/master
Retweet
%%retweet [–id=<id>] <url_or_id>
Search for tweets on twitter
Send a tweet to networks
Post to social networks
%%tweet [–id=<id>] <message>…