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:

class irc3.plugins.social.Social(bot)[source]

The social plugin

get_social_connection(id=None)[source]

return a connection object for the network:

retweet(mask, target, args)[source]

Retweet

%%retweet [–id=<id>] <url_or_id>

search_tweets(q=None, **kwargs)[source]

Search for tweets on twitter

send_tweet(message, id=None)[source]

Send a tweet to networks

tweet(mask, target, args)[source]

Post to social networks

%%tweet [–id=<id>] <message>…