Hmmm.. Guess 2.5 wasn't when urlencoding was added. Might've been 2.5.1 or smth. This can be solved by providing http package 2.5.1 which can be found hereardantus wrote:Code: Select all
[09:47] Tcl error [proc:twitter]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
sp33chy in this case is the name I've chosen for my eggdrop (megahal) and this carries over onto twitter. You were actually talking to my megahal, sp33chy (the eggdrop bot). Everybody who uses this script can have their bot do the same thing.<sp33chy> [Twitter]: (Megahal) @Mention: Tue Feb 23 16:13:26 +0000 2010 [9531760967]:<ardantus safirius@ardantus> @suqmuhnutz i have load twitter tcl script on my eggdrop but there are some command not work corectly, please check in forum egghelp.thanks
<sp33chy> [Twitter]: (Megahal) sp33chy's reply tweet: RT @ardantus <sp33chy> Eggdrop is a twitter bot.
<sp33chy> [Twitter]: (Megahal) @Mention: Tue Feb 23 16:37:22 +0000 2010 [9532698390]:<ardantus safirius@ardantus> @suqmuhnutz yes i know but when i check username now show.
<sp33chy> [Twitter]: (Megahal) sp33chy's reply tweet: RT @ardantus <sp33chy> Yes sp33chy and i for the show!
<sp33chy> [Twitter]: (Megahal) @Mention: Tue Feb 23 17:28:15 +0000 2010 [9534666878]:<ardantus safirius@ardantus> @suqmuhnutz sir where you come from?
<sp33chy> [Twitter]: (Megahal) sp33chy's reply tweet: RT @ardantus <sp33chy> Where sp33chy and ihateyou so [censored] hard for them to you sp33chy, i wish you would think i am a boy?". Fml.
<sp33chy> [Twitter]: (Megahal) @Mention: Tue Feb 23 18:01:51 +0000 2010 [9535940376]:<ardantus safirius@ardantus> @suqmuhnutz Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
<sp33chy> [Twitter]: (Megahal) sp33chy's reply tweet: RT @ardantus <sp33chy> Talking must be a big deal here. For kids that are into the fire was unknown.
I was at work when you were asking for help on efnet. But if you use the http package found above it will work for you. Any other issues, or if this is still an issue, hack it like below, this won't provide a real utf-8 input but this wont matter unless your bot is utf-8 patched...
Code: Select all
# Change this
set http [::http::config -useragent $twitter(agent) -urlencoding "utf-8"]
# To this:
set http [::http::config -useragent $twitter(agent)]
It presently already does this:
!twitter username - This gives you the profile + their last tweet
Soon, it will do this too:
!user [<range>] username - will work same as using restAPI commands...
The ability to AUTOSAVE timelines will also be added in version 4.31. This will keep your bot (if you use MegaHAL) from replying to timelines it already may have if it's crashed and restarted for example. This feature should've been added a long time ago.....
After 4.31, I'll include some ability to add friends and new time-interval-time-bind for listing friends tweets automatically, as well as having the megahal reply ability when any friend's new private message hits your account.. For private message to work the bot has to add that person as a friend (follow them) before anyone can private message it. To make it auto-friend someone will be a special string you designate, and when it's within one of your accounts @mentions, that person will be autofriended. It will of course be possible to set that to "*" and be anything and it auto-follows anyone who dares talk to it. It will do this all on auto-pilot and message them back exactly what you want. After that, once they follow you this gives you the ability to private message them back. After this occurs the bot can notice this via time bind and immedaite tweet @them something dumb the moment it happens. There will be alot of cool and unexpected things added in time (the MegaHAL was unexpected ). Next unexpected idea is linking your eggdrop's scripts back to twitter @mentions and friends. A user on twitter sends you "@username !g hello" ... and your bot sends back the first replies from google (even self shortening the links before hand) and basically becomes a google twitter bot. Any script you have on your bot would create the instant ability for anyone on twitter to @mention or friend you and have that command available.. The future will be interesting...
Enjoy the experiment and have fun creating megahal bots all over twitter.. xD
Version 4.31 will be here the weekend or possibly sooner.... stay tuned