Changes in / [1eafdfa:47a5e46]
- Files:
-
- 244 added
- 7 deleted
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
.gitignore
r9a26328 r7d03c8d 1 *.a 2 *.o 3 *.par 1 4 *~ 2 blib/ 3 inc/ 5 .#* 6 .*.swp 7 .deps 4 8 META.yml 5 9 Makefile 6 Twitter.par 10 Makefile.in 11 Makefile.old 12 TAGS 13 \#*# 14 aclocal.m4 15 autom4te.cache 16 barnowl.bin 17 zcrypt 18 blib 19 config.cache 20 config.h 21 config.h.in 22 config.log 23 config.status 24 configure 25 core 26 depcomp 27 install-sh 28 jabber.log 29 missing 30 owl_prototypes.h 31 owl_prototypes.h.new 32 perl_tester 33 perlglue.c 34 perlwrap.c 7 35 pm_to_blib 36 stamp-h1 37 tester 38 varstubs.c -
README
rfe184d4 r62c91c1 1 NAME 2 Twitter.par - Twitter support for BarnOwl 1 BarnOwl - owl, with more ponies 3 2 4 DESCRIPTION 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. 3 Based on owl 2.1.11, by James Kretchmar (http://www.ktools.org) 8 4 9 SYNOPSIS 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. 5 This project is a work in progress. 6 We guarantee no stability of form or function. 22 7 23 MIRRORING 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. 8 Notes: 9 ----- 10 This project's perl/lib/ contains the lib directories from the 11 following CPAN modules: 27 12 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. 13 Net::Jabber 14 Net::XMPP 15 XML::Stream 32 16 33 POLLING 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. 17 They have been modified slightly for the needs of this project. 37 18 38 IDENTI.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. 19 BarnOwl currently requires the following perl modules off of CPAN: 44 20 45 MULTIPLE ACCOUNTS 21 PAR 22 Net::DNS 23 Authen::SASL::Perl 24 IO::Socket::SSL 25 Digest::SHA1 46 26 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<---------- 27 (Note that these are all available as Debian packages) 28 We plan to soon add targets to the Makefile to check for and install 29 these for you. 76 30 77 Outgoing tweets sent via ":twitter" without an explicit sender, or 78 mirrored from zephyr, go to every account with "publish_tweets" set. 31 The IRC module requires: 79 32 80 Outgoing direct messages and @-replies without an explicit sender come 81 from whichever account has "default" set. If no account has "default", 82 the first account is assumed to have "default" set. It is an error to 83 have more than one account with "default" set to true. 33 Net::IRC 34 Class::Accessor 84 35 85 There are several account-specific parameters that control the 86 behavior of Twitter.par when using multiple accounts: 36 The WordWrap module requires: 87 37 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. 38 Text::Autoformat
Note: See TracChangeset
for help on using the changeset viewer.