source: README @ 7ec65f5

release-1.10release-1.7release-1.8release-1.9
Last change on this file since 7ec65f5 was fe184d4, checked in by Nelson Elhage <nelhage@mit.edu>, 14 years ago
Typo in README
  • Property mode set to 100644
File size: 4.2 KB
Line 
1NAME
2  Twitter.par - Twitter support for BarnOwl
3
4DESCRIPTION
5  The Twitter module implements Twitter support for BarnOwl. It also
6  supports automatic mirroring of some subset of Zephyrs you send to
7  Twitter.
8
9SYNOPSIS
10  (1) Configure your Twitter credentials in ~/.owl/twitter in the
11  following format:
12----------8<----------cut here----------8<----------
13{
14 "user":"nelhage",
15 "password":"sekrit"
16}
17----------8<----------end cut ----------8<----------
18  (2) Copy Twitter.par into ~/.owl/modules/
19  (3) Run ":reload-module Twitter" inside BarnOwl
20  (4) Start receiving tweets in BarnOwl!
21      You can send tweets with the ":twitter" command.
22
23MIRRORING ZEPHYRS TO TWITTER
24  If you set the twitter:class, twitter:instance, and twitter:opcode
25  BarnOwl variables, BarnOwl will resend zephyrs matching those fields
26  as tweets coming from you.
27
28  By default, these default to -c $YOUR_USERNAME -i status -O twitter.
29  Setting twitter:opcode to "" will cause "normal" (i.e. no opcode)
30  messages to that class/instance to be mirrored. A value of '*' works
31  as a "match-anything" wildcard for any of the fields.
32
33POLLING
34  Twitter.par polls for normal messages once a minute, and direct
35  messages every other minute. To disable polling, you can unset the
36  'twitter:poll' variable in BarnOwl.
37
38IDENTI.CA SUPPORT
39  Twitter.par supports other Twitter-compatible microblogging services,
40  like identi.ca. To enable this, set the 'service' parameter in your
41  config hash to the API URL of your service. You may also need to set
42  'apihost' and 'apirealm'. See Net::Twitter or your blogging service's
43  documentation for more information.
44
45MULTIPLE ACCOUNTS
46
47  Twitter.par also supports using multiple Twitter and
48  Twitter-compatible microblogging accounts from the same instance.
49  To enable this, add additional hashes to your ~/.owl/twitter file as
50  a JSON list, e.g.
51----------8<----------cut here----------8<----------
52[
53  {
54   "account_nickname": "twitter",
55   "user": "nelhage",
56   "password": "sekrit",
57   "default": true,
58   "publish_tweets": true
59  },
60  {
61   "account_nickname": "identica",
62   "service": "http://identi.ca/api",
63   "user": "nelhage",
64   "password": "sekriter",
65   "publish_tweets": true
66  }
67  {
68   "account_nickname": "sipb",
69   "user": "sipb",
70   "password":"m0ars3krit",
71   "poll_for_tweets": false,
72   "poll_for_dms": false,
73  }
74]
75----------8<----------end cut ----------8<----------
76
77Outgoing tweets sent via ":twitter" without an explicit sender, or
78mirrored from zephyr, go to every account with "publish_tweets" set.
79
80Outgoing direct messages and @-replies without an explicit sender come
81from whichever account has "default" set. If no account has "default",
82the first account is assumed to have "default" set. It is an error to
83have more than one account with "default" set to true.
84
85There are several account-specific parameters that control the
86behavior of Twitter.par when using multiple accounts:
87
88* account_nickname (string, required if multiple accounts are in use)
89    Specify a short name by which you can refer to the account, eg.
90    "identica" (eg. :twitter-direct nelhage identica would send a
91    direct message to @nelhage on identi.ca from your account
92    nicknamed "identica").
93
94* default (boolean, default false)
95    If true, @-replies or direct messages you send without specifying
96    an account will be sent using this account.  If no account has
97    this parameter, such messages will be sent using the first account
98    listed.
99
100* poll_for_tweets (boolean, default true)
101    If true, tweets sent by users this account follows will be
102    displayed in your BarnOwl message list.
103
104* poll_for_dms (boolean, default true)
105    If true, direct messages sent to this account will be displayed in
106    your BarnOwl message list.
107
108* publish_tweets (boolean, default false)
109    If true, tweets you send without specifying an account (either
110    with the :twitter command or mirrored from a zephyr class) will be
111    published to this account.
112
113    If only one account is specified, it defaults to publish_tweets =
114    true.
115
116* show_mentions (boolean, default true)
117    If true, BarnOwl will show all tweets that mention this account's
118    username, regardless of whether or not this account is following
119    the sender. Has no effect if poll_for_tweets is false.
Note: See TracBrowser for help on using the repository browser.