-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
73 lines (55 loc) · 2.26 KB
/
README
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
== twitter_bot
* homepage : http://github.com/aproxacs/twitter-bot
== DESCRIPTIONS
Twitter bot is a MSN messenger bot interacting with Twitter.
It observes Twitter's timeline updates, and notifies new updates with msn messenger.
You can also update twitter with msn messenger.
== DEMO & USE
Here is a working twitter bot ID : [email protected].
Just add [email protected] as a friend of msn messenger.
=== Authorization
You need a authorization to update and get timeline of twitter. Twitter supports OAuth authentication and Twitter bot uses it. To see what OAuth, refer to http://apiwiki.twitter.com/OAuth-FAQ. The step to completing authentication is simple.
1. Type !oauth command.
Then the bot reply you with a url. Connect to the url and finish the authentication. After completing authenticataion, twitter will show you a 6 digit numbers. These numbers are PIN code.
2. Type !pin PIN.
For example, !pin 423432. That's it.
To see my authorization state, type !show command.
To see help, type !help command.
== INSTALL
You don't need to install it to use Twitter bot. There is working bot : [email protected].
However if you make up your mind to use Twitter bot for a personal perpose, the following will be a guide for you.
First of all, you need ruby and several gems.(see REQUIREMENTS)
# Install ruby
# Install gems
* sudo gem install activesupport twitter eventmachine daemons
# Download twitter bot from github(http://github.com/aproxacs/twitter-bot)
* git clone git://github.com/aproxacs/twitter-bot.git
# Set up a configuration(see CONFIGURATION)
# msn id and password and twitter consumer key and secret are required.
# Start as a daemon(see START & STOP)
* cd DIR/lib
* ruby twibot_ctl.rb start
== REQUIREMENTS
* ruby 1.8.6
* activesupport
* twitter
* eventmachine
* daemons
== CONFIGURATION
msn:
id: "MSN_ID_OF_BOT" # msn id for bot
password: "PASSWORD"
twitter:
ckey: "CONSUMER_KEY" # cosumer key
csecret: "CONSUMER_SECRET"
interval: 60 # optional, interval(second) to check twitter timeline
debug: false # optional
data_file: # optional, filename to store user's data
log_file: # optional, log filename
== START & STOP
# start as a daemon
* ruby twibot_ctl.rb start
# stop
* ruby twibot_ctl.rb stop
# restart
* ruby twibot_ctl.rb restart