-
Notifications
You must be signed in to change notification settings - Fork 5
/
README.txt
84 lines (65 loc) · 2.89 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
SupyBot Twitter Plugin
======================
This is a twitter plugin for supybot. It can post to twitter, and show your
friend list. It will add (ircnick) after tweets. We use it to post to an
organizational twitter account from our channel.
The current version is always available from
https://github.com/rubinlinux/supybot-twitter.
This code is forked from http://code.google.com/p/supybot-twitter which
has not been updated in a long time. This version has been updated to
post using the new twitter API (and so, works, again).
You'll have to create a Twitter API key. See http://dev.twitter.com. Steps are:
1. Create a new twitter account (if you plan to use a dedicated one)
2. Go to dev.twitter.com and log in.
3. Click create an application
4. put in info (yoru bots name and irc network for project name and descr)
5. when app is created, go to settings (on dev.twitter.com) and change it to
read-write
6. on the main app page, (toward the bottom) click regenerate button
(otherwise your account will still only be authed for read-only access)
7. Your 4 magic strings (2 tokens and 2 secrets) are shown.
This plugin uses the Twitter API from http://code.google.com/p/python-twitter/
so it must be installed and available for use. It can be installed via
pip like so:
pip install python-twitter
To Setup:
Login to bot
Set private keys from step 7 above:
/msg bot config plugins.twitter.consumer_key xxxxx
/msg bot config plugins.twitter.consumer_secret xxxxx
/msg bot config plugins.twitter.access_key xxxxx
/msg bot config plugins.twitter.access_secret xxxxx
Enable the plugin in the channel you want:
!config channel plugins.twitter.enabled True
If you want topic snarfing:
!config channel plugins.twitter.tweettopicsnarf True
#!!!!
# Twitter has deprecated the mechanism we used to do this as a part of their war on 3rd party clients.
# http://code.google.com/p/python-twitter/issues/detail?id=144
# currently enabling displayReplies will result in the plugin crashing. :(
# If you want replies (mentions):
# !config plugins.twitter.displayReplies True
# !config plugins.twitter.channelList #yourchannel
#!!!!
To use:
post <msg>
Sends <msg> to the twitter network.
If <msg> is one of the twitter commands, it is sent raw, via the
associated twitter user.
If not, the IRC user's name is appended to <msg> and is then sent.
The value of postConfirmation will be used as the confirmation
for a successful post.
mentions <number>
Display latest <number> mentions.
listfriends
List followers.
tweets
Display latest page of tweets.
Automatic actions:
Mentions
The bot will automatically post mentions the channels in
channelList. To disable this behaviour, set displayReplies to
'False'
Topic Snarfing
If tweetTopicSnarf is enabled, newly seen segments of the topic will be
auto-tweeted.