As of May, 24th 2011, this script will be known as simply, birdy. It's old name left within parenthesis for legacy purposes.
Latest version avaiilable here: Birdy (OAuth, Twitter, Tweets with Megahal) v6.01d (Egghelp version)
Note: Read through this thread if you need documentation as this thread is all that exists...
---
Twitter v3.0 is now available. Those reading the scripting help forum may have noticed a "twitter" thread where I gave out a script which read twitter status and tweets from an account. This was merely part 1 of a 2 part process. The addition is now you have an ability to tweet as well from IRC. This integrates twitter fully as an IRC presence.
Code: Select all
# This is the twitter logo.
set twitter(logo) "\[\002\00311Twitter\002\003]:"
# Set user agent.
set twitter(agent) "Mozilla/4.75 (X11; U; Linux 2.2.17; i586; Nav)"
# Set the url base
set twitter(url) "http://twitter.com/"
# Set the output style here:
# %chan == $chan, %nick == $nick
# no other variables can be used
set twitter(output) "PRIVMSG %chan"
# What effect would you like added to twitter numerics?
# for example:
# effect on "\00304" is red text
# effect off "\003" turns off the color
set twitter(effect-on) "\002"
set twitter(effect-off) "\002"
# how many seconds should each user wait before re-issuing
# a twitter command? Set this in seconds.
set twitter(throttle) 1
# If you have Trf or zlib packages detectable, this script
# will let you use gzip to speed up your twittering..
# Would you like to enable gzip auto-detection?
set twitter(use_gzip) 1
# Url to issue tweets to
set twitter(tweet) "http://twitter.com/statuses/update.json?"
# Set tweet format here
# %nick = $nick
# %chan = $chan
# %text = user input
set twitter(tweetformat) "<%nick> %text"
# minimum flags required to issue tweets
set twitter(flags) "vomn|vomn"
# what modes can people temporarily tweet with
# these are channel modes, not flags on the bot
# you can use op, voice, or both, or "".
set twitter(channel) [list "op" "voice"]
# Accts to tweet to
# "#channel|Login|Password"
set twitter(accts) {
"#yourchan|youracct|yourpass"
"#your2ndchan|your2ndacct|your2ndpass"
"#yourmirrorchan|youracct|yourpass"
}
- Tls package - for secure socket connections
--> http://sourceforge.net/projects/tls/files/
Base64 package - for creating basic authentication strings
--> http://sourceforge.net/projects/tcllib/ ... llib/1.12/
With base64, it is part of the tcllib package. You DO NOT need to install the entire tcllib package. Merely copy the folder base64 to your /tcl*/lib/ folder and it will be detected.
- Gzip (provided via Trf or zlib packages) - speed up web fetches
--> Eggdrop use Trf package
--> Windrop use precompied zlib package (tcl8.6 compatible)
Http package 2.5 - support utf-8 properly
--> Eggdrop and windrop platform independent
Without http package 2.5 present, the script will not be able to make true UTF-8 queries. This may or may not cause problems for english speaking users, but for anyone else this will cause serious issues.
Utf-8 patch - support proper utf-8 encodings for both input/output
--> Eggdrop --> http://forum.egghelp.org/viewtopic.php?t=13932&start=3
--> Windrop --> ?? .. my only suggestion is installing cygwin and follow the eggdrop advice
... and as always, any and all questions, comments, bugs, problems.. Post them accordingly to this thread and let's solve them..<speechles> !tweet Hello http://forum.egghelp.org users
<sp33chy> [Twitter]: Tweet created: [#roms-isos@SuqMuhNutz via API] Sun Jan 31 19:16:59 +0000 2010
<speechles> !twitter suqmuhnutz
<sp33chy> [Twitter]: Getting Status For: suqmuhnutz...
<sp33chy> [Twitter]: Name: #roms-isos; location: Eris Free Net (#efnet), IRC; Following: 0; Followers: 1; Listed: 0; Total Tweets: 4.
<sp33chy> [Twitter]: Last Tweet: [less than 20 seconds ago] <speechles> Hello ( http://forum.egghelp.org ) users
<sp33chy> [Twitter]: http://twitter.com/suqmuhnutz [Region: en] [Gzip]
Get the script here: Twitter & Tweets v3.0
Latest Download: Twitter & Tweets v3.3