egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Birdy (OAuth, Twitter, Tweets&MegaHAL v6.01d) Jun12,2013
Goto page Previous  1, 2, 3 ... 7, 8, 9 ... 19, 20, 21  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
bfoos
Voice


Joined: 30 Sep 2010
Posts: 6

PostPosted: Sat Jan 08, 2011 10:50 pm    Post subject: Reply with quote

Hey, speechles... Tried to query you on IRC about this. I'm getting the following error using this script...

Code:
[15:27:00] Tcl error [proc:twitter:megahal:privatereply]: invalid command name "getreply"
[15:27:01] (Megahal) eggfoos replied to (tehcollective) accounts.


Using MegaHAL v3.5
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sun Jan 09, 2011 11:59 pm    Post subject: Reply with quote

Quote:
<speechles> !tweet @emily_d_k HI :)\n░╔══╗░░░░╔╦╗░░░╔═════╗░☺\n░║╚═╬════╬╣╠═╗░║░▀░▀░║░\n░╠═╗║╔╗╔╗║║║╩╣░║╚═══╝║░\n░╚══╩╝╚╝╚╩╩╩═╝░╚═════╝░
<sp33chy> Tweet created: http://twitter.com/suqmuhnutz ( 24289599496912896@suqmuhnutz - 0s ago via bittersweet )

<speechles> !user 1-1
<sp33chy> ( 1-1 ) User timelines ( #roms-isos@suqmuhnutz ) http://twitter.com/suqmuhnutz :
<sp33chy> #roms-isos@efnet: @emily_d_k <speechles> HI :) ( 24289599496912896@suqmuhnutz - 6m, 3s ago via bittersweet )
<sp33chy> #roms-isos@efnet: ░╔══╗░░░░╔╦╗░░░╔═════╗░☺
<sp33chy> #roms-isos@efnet: ░║╚═╬════╬╣╠═╗░║░▀░▀░║░
<sp33chy> #roms-isos@efnet: ░╠═╗║╔╗╔╗║║║╩╣░║╚═══╝║░
<sp33chy> #roms-isos@efnet: ░╚══╩╝╚╝╚╩╩╩═╝░╚═════╝░

<speechles> !tsearch #140art 3-3
<sp33chy> ( 3-3 ) Search timelines ( #roms-isos@suqmuhnutz ):
<sp33chy> angelahnicole: RT @TW1TT3Rart: #TWITTERART RT @140ARTIST ( 24262516209094656@angelahnicole - 1h, 16m, 20s ago via web )
<sp33chy> angelahnicole: ─▒▒▒▒▒▌──▓▓▓▓▓▌──░░░░░▌
<sp33chy> angelahnicole: ▒▌▄▒▌▄▒▌▓▌▄▓▌▄▓▌░▌▄░▌▄▒▌
<sp33chy> angelahnicole: ▒▒▒▒▒▒▒▌▓▓▓▓▓▓▓▌░░░░░░░▌
<sp33chy> angelahnicole: ▒▌▒▌▒▌▒▌▓▌▓▌▓▌▓▌░▌░▌░▌░▌ ⋕Եժ #140art

<speechles> !tweet \n█▄▐▌▐▌──▐▀▄─▐▌───▐▌█▀─█▄▐▌█─▀▐█▀▀\n█──██▐▀▄─▐█─▐▌─█▐▐█▌──█─▐██▐▌─▀▀▄⋕Եժ\n██─▐▌▐▄▀▐▄▀─▐█▌▐▐▐▌█▄─██▐▌█▐▌▀██▀\n─────▐▌───────▄▄▀
<sp33chy> Tweet created: http://twitter.com/suqmuhnutz ( 24165464024285184@suqmuhnutz - 0s ago via bittersweet )

<speechles> !user 1-1
<sp33chy> ( 1-1 ) User timelines ( #roms-isos@suqmuhnutz ) http://twitter.com/suqmuhnutz :
<sp33chy> #roms-isos@efnet: <speechles> ( 24165464024285184@suqmuhnutz - 48m, 34s ago via bittersweet )
<sp33chy> #roms-isos@efnet: █▄▐▌▐▌──▐▀▄─▐▌───▐▌█▀─█▄▐▌█─▀▐█▀▀
<sp33chy> #roms-isos@efnet: █──██▐▀▄─▐█─▐▌─█▐▐█▌──█─▐██▐▌─▀▀▄⋕Եժ
<sp33chy> #roms-isos@efnet: ██─▐▌▐▄▀▐▄▀─▐█▌▐▐▐▌█▄─██▐▌█▐▌▀██▀
<sp33chy> #roms-isos@efnet: ─────▐▌───────▄▄▀

Full ascii-art support now included. You can create these, as well as easily view them from the comfort of IRC. Two options below control this feature:
Code:
# Split tweets with newlines into multi-line tweets?
# Without this set to 1, ascii art tweets will not
# show correctly.
# (0 no/1 yes)
set twitter(newline) 1

# Allow newlines in tweets? With this, you can create
# multi-line tweets on IRC by using \n to seperate
# each line.
# (0 no/1 yes)
set twitter(allow_newlines) 1


Also included, is !apps +app and -app commands. These allow you to ignore specific applications from automatically relaying to your channel. This helps if people attach iPhone applications to their twitter accounts and these applications keep tweeting achievement updates. To block these iPhone app updates, yet keep the rest of what that @username has to say automatically relaying. +app that_iPhone_app it's that easy.

Get the new version here:Twitter, Tweets with Megahal v5.02 (Egghelp version)
Enjoy and have a fun. Wink

If you experience any issues, please post about them in this thread.

NOTE: If your eggdrop is properly utf-8 patched and you are experiencing issues with proper encoding output.
Code:
if {![string equal $char [encoding system]]} { set text [encoding convertto $char $text] }
Find the above line, and comment it out. This will solve that issue.
____

bfoos wrote:
Hey, speechles... Tried to query you on IRC about this. I'm getting the following error using this script...

The problem is megahal version 3.5 does not give scripts any ability to interact with it. Making it unfortunate, but you cannot get interactiveness with this script using that version of megahal. Sorry Sad
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
bfoos
Voice


Joined: 30 Sep 2010
Posts: 6

PostPosted: Mon Jan 10, 2011 4:29 am    Post subject: Reply with quote

speechles wrote:
bfoos wrote:
Hey, speechles... Tried to query you on IRC about this. I'm getting the following error using this script...

The problem is megahal version 3.5 does not give scripts any ability to interact with it. Making it unfortunate, but you cannot get interactiveness with this script using that version of megahal. Sorry Sad


Yup, gleaned that from your rather lengthy explanation on IRC. Very Happy

Will likely switch over to BarkerJr's version at some point.

At any rate, stellar work on this script. I'm loving the ACII art.
Back to top
View user's profile Send private message
SignZ
Voice


Joined: 17 Jun 2010
Posts: 18

PostPosted: Mon Jan 24, 2011 12:46 pm    Post subject: Reply with quote

Yo speechles. I think I just found another flaw.
If a twitter-user got/posts/tweets location information in a tweet, your script fetches the location as $name instead of the name.
Back to top
View user's profile Send private message
Karunamon
Voice


Joined: 01 Aug 2010
Posts: 5

PostPosted: Fri Feb 04, 2011 6:14 pm    Post subject: Reply with quote

I'm having a slightly annoying issue with twitter's region detection. The physical server and internet connection that my bot is running on is in Canada, but for some reason a couple of weeks ago, I started getting french responses to the requests instead of english ones.

Code:

[3:02pm] <+Misato> [Twitter]: Nom: Misato Katsuragi; Localisation: The Internets; Following: 3; Followers: 5; Listed: 0; Total Tweets: 39.
[3:02pm] <+Misato> [Twitter]: I am an eggdrop bot for Lost Signal Networks #main IRC channel. Various people may show up in my stream. Follow for randomness. Owner/Operator: @tkware
[3:02pm] <+Misato> [Twitter]: Last Tweet: [33646312754778112] (Il y a moins de 10 secondes via Misato the Eggdrop Bot): <Odin> Marisa had to go to the bathroom
[3:02pm] <+Misato> [Twitter]: http://twitter.com/lsnmain [Region: fr]


I think I understand what's happening, but I'm not proficient enough at TCL to know how to fix it. Any ideas how I force it to stay in region: en-us?
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Sat Feb 05, 2011 2:20 pm    Post subject: Reply with quote

Karunamon wrote:
I'm having a slightly annoying issue with twitter's region detection. The physical server and internet connection that my bot is running on is in Canada, but for some reason a couple of weeks ago, I started getting french responses to the requests instead of english ones.

Code:

[3:02pm] <+Misato> [Twitter]: Nom: Misato Katsuragi; Localisation: The Internets; Following: 3; Followers: 5; Listed: 0; Total Tweets: 39.
[3:02pm] <+Misato> [Twitter]: I am an eggdrop bot for Lost Signal Networks #main IRC channel. Various people may show up in my stream. Follow for randomness. Owner/Operator: @tkware
[3:02pm] <+Misato> [Twitter]: Last Tweet: [33646312754778112] (Il y a moins de 10 secondes via Misato the Eggdrop Bot): <Odin> Marisa had to go to the bathroom
[3:02pm] <+Misato> [Twitter]: http://twitter.com/lsnmain [Region: fr]


I think I understand what's happening, but I'm not proficient enough at TCL to know how to fix it. Any ideas how I force it to stay in region: en-us?


This is mostly because of heritage. This scripts humble beginnings as strictly a "one trick pony"[1].

All it did was !twitter <username> .. that's it ..

This fakes a web browser, approaches without cookies, and just pulls the user page up on twitter. It then uses it's parsers to cut away their templates and get to the data. It uses their templates to name fields. This causes the issue you see. Some of twitters templates are regionalized. There is no present way to really fix this. Your IP is french canadian. It gives you french as a courtesy.

Over time of course, this has curved into using the API under oauth allowing more features to evolve. The one part still stuck in the past is any !twitter request. I apologize.. :/

I will eventually fix the issue signz reported regarding geo-coded tweets and incorrect name field used as account name. I will also re-write the !twitter function to properly use oauth and use the API. This will rectify the issue you are having presently.

* [1] One trick pony: In software development, a very limited program can be a serious liability, for example, since while it may attract attention at first, users will abandon it if it does not develop into a more rounded whole.
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Jagg
Halfop


Joined: 24 Jan 2004
Posts: 53

PostPosted: Tue Feb 08, 2011 10:53 am    Post subject: Reply with quote

Can I use this tcl to only show/present the tweets from some twitter user I want?

I don't want to make tweets from an irc channel or sth like that... I only want to set 3-10 twitter usernames the bot should "check for new tweets". If a new tweet was made from this 2-10 twitter names the bot should post that in the channel.

Thanks
Back to top
View user's profile Send private message
Karunamon
Voice


Joined: 01 Aug 2010
Posts: 5

PostPosted: Wed Feb 09, 2011 4:18 am    Post subject: Reply with quote

Since you basically have to register a twitter account and API access for your bot, all you need to do is only !follow users you want the bot to get tweets from.

speechles: I've also had a problem develop with that over the past three days.. !tweets are not being confirmed in the channel when they're posted (they still make it though okay) and followers stopped working also.

Sounds a lot like twitter's been mucking with the API again.

Thanks very much Very Happy
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Jagg
Halfop


Joined: 24 Jan 2004
Posts: 53

PostPosted: Wed Feb 09, 2011 8:44 am    Post subject: Reply with quote

I always get this error
Quote:

!user
<bott> OAuth failed: (401) Request: \/1\/statuses\/user_timeline.json?include_rts=1&screen_name=irc_tradingbot; Error: timestamp out of bounds

Code:

eggdrop.conf: set timezone "CET"
twitter.tcl: set twitter(fixMyDuration) "0" (also tried 3600/7200)

My timezone is GMT+1 (Berlin)

UPDATE: Got it... the bot server time was wrong!
Back to top
View user's profile Send private message
Jagg
Halfop


Joined: 24 Jan 2004
Posts: 53

PostPosted: Mon Mar 07, 2011 8:57 am    Post subject: Reply with quote

I get such error logs in partyline

Code:
[13:49:30] Tcl error [proc:twitter:user2]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent
[13:51:00] Tcl error [proc:twitter:friendsauto]: Unknown option -urlencoding, must be: -accept, -proxyfilter, -proxyhost, -proxyport, -useragent


My versions:
Twitter, Tweets with Megahal v5.03 (<- is this the latest version? or is still 5.02 the bugfree version?)
eggdrop v1.6.20 (utf-8 patched)

UPDATE:
Hmmm, ok commented that out as written in that post.

The last problem I have now is !user don't work anymore:
Code:
[15:00:46] Tcl error [proc:twitter:user2]: invalid command name "\},\{ {
}"

...and also on every check i get
Code:
[15:01:00]  can't read "status": no such variable
[15:01:01]  can't read "status": no such variable

lines in partyline
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Mon Mar 07, 2011 12:59 pm    Post subject: Reply with quote

5.03 is the pre-release beta version I needed people to test. Thank you for testing it. Yes, it had some minor issues that were worked out. Most of those you are experiencing..

I've since corrected all these issues, better OAuth error protection, and better all around at moving faster. I've lowered the timeouts from 10seconds to 5seconds. I've also beefed up the OAuth error mechanisms. The problem is when twitter has constant fail whales, the script would'nt realize the site had timed out. It would attempt to get http::data and this would freeze the bot for 3-5 minutes until it timed out. This was a huge flaw, and is now corrected. So yes, 5.02 is buggy. The pre-release 5.03 was buggy. The final 5.03 version which you see at the url below should be 100% bug-free.

Click below to get the newest version:
OAuth, Twitter, Tweets with Megahal v5.03

...and as always, have a fun, and dance like an robot ;D
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Jagg
Halfop


Joined: 24 Jan 2004
Posts: 53

PostPosted: Tue Mar 08, 2011 4:27 pm    Post subject: Reply with quote

from eggtcl chat:
Quote:
[17:25] speechles: i think you forgot a } after line 1401 in your new twitter.tcl version 5.03
Back to top
View user's profile Send private message
speechles
Revered One


Joined: 26 Aug 2006
Posts: 1398
Location: emerald triangle, california (coastal redwoods)

PostPosted: Tue Mar 08, 2011 8:14 pm    Post subject: Reply with quote

Jagg wrote:
from eggtcl chat:
Quote:
[17:25] speechles: i think you forgot a } after line 1401 in your new twitter.tcl version 5.03


That would crash your bot if that were so. So yeah, whatever. There is no missing }... Works fine for me... speechles out...
_________________
speechles' eggdrop tcl archive
Back to top
View user's profile Send private message
Jagg
Halfop


Joined: 24 Jan 2004
Posts: 53

PostPosted: Wed Mar 09, 2011 4:41 am    Post subject: Reply with quote

It crashed my bot Wink (until I set that "}"... don't know if i edited something wrong before... but i don't think so)
Back to top
View user's profile Send private message
Farbmeister
Voice


Joined: 18 Mar 2011
Posts: 1

PostPosted: Sat Mar 19, 2011 2:24 pm    Post subject: Reply with quote

I have this error ?!?!


Code:
Eggdrop: [19:21] Tcl error [proc:twitter:friendsauto]: no such channel record
Eggdrop: [19:21] Tcl error [proc:twitter:megahal:privatereply]: no such channel record
Eggdrop: [19:21] Tcl error [proc:twitter:megahal]: no such channel record


Have I forgotten anything?
What can i do ?
_________________
Gruss
Farbmeister

(german User)
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Goto page Previous  1, 2, 3 ... 7, 8, 9 ... 19, 20, 21  Next
Page 8 of 21

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber