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 

[req] ym check - new feature !

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Wed Feb 20, 2008 8:08 am    Post subject: [req] ym check - new feature ! Reply with quote

anyone could help me to write this scripts yahoo-messenger-invisible-checker ?

Code:
 <me>  !ym elisca
 <bot> Status Invisible (if she/he invisible)

and

 <me> !ym elisca
 <bot> Status Online (if she/he online)

 <me>  !ym elisca
 <bot> Status Offline (if she/he offline)


thanks in advance

Embarassed


Last edited by elisca on Sat Feb 23, 2008 10:39 am; edited 2 times in total
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Wed Feb 20, 2008 12:44 pm    Post subject: Reply with quote

Code:
package require http

bind pub -|- !ym yahoo:status

proc yahoo:status {nick host hand chan arg} {

        set yahooid [join [lindex [split $arg] 0]]
        set token [http::config -useragent "lynx"]
        set token [http::geturl "http://invisible.ir/getstatus?yahooid=$yahooid"]
        set html [http::data $token]
      
   putlog "\00304 Checking online status for $yahooid."
   
   if {[string match "*Online*" $html]} {
                puthelp "PRIVMSG $chan :$yahooid is Online!."
          return 0
        }

   if {[string match "*Offline*" $html]} {
                puthelp "PRIVMSG $chan :$yahooid is Offline!."
          return 0
        }

   if {[string match "*Invisible*" $html]} {
                puthelp "PRIVMSG $chan :$yahooid is Invisible!."
          return 0
        }

        if {[string match "*Server is busy*" $html]} {
                puthelp "PRIVMSG $chan :The server seems busy or invalid user id, try next."
          return 0
        }

   if {[string match "*Main Yahoo*" $html]} {
                puthelp "PRIVMSG $chan :$yahooid is a Main Yahoo ID!."
          return 0
        }

}

putlog "Yahoo Messenger Status loaded sucessfully."


Code:
[21:40] <iamdeath`> !ym vrdead
[21:40] <Cricket> The server seems busy or invalid user id, try next.
[21:40] <iamdeath`> !ym vrdead
[21:40] <Cricket> vrdead is Online!.
[21:40] <iamdeath`> !ym zk_chachar
[21:40] <Cricket> zk_chachar is Offline!.


Tested and working.

A copy of this script is loaded at:

Yahoo Status Checker

peace
death.

Edit: Removed http.tcl link.
Edit: Added one more option, Main Yahoo ID.
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...


Last edited by iamdeath on Sat Feb 23, 2008 12:51 pm; edited 4 times in total
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Wed Feb 20, 2008 1:59 pm    Post subject: Reply with quote

iamdeath thanks so much to write this..
but Crying or Very sad

Code:
(Bot [17:43] Tcl error in file 'Bot.conf':
12:53(Bot [17:43] conflicting versions provided for package "http": 2.5.0, then 2.5.001
12:53(Bot     while executing
12:53(Bot "package provide http 2.5.001"
12:53(Bot     (file "scripts/http.tcl" line 29)
12:53(Bot     invoked from within
12:53(Bot "source scripts/http.tcl"
12:53(Bot     (file "Bot.conf" line 288)
12:53(Bot [17:43] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)
12:53(Bot [22] Chat closed


could u tell me why ?

Note : I remove http.tcl and yahoo.tcl run good without it.


Last edited by elisca on Wed Feb 20, 2008 7:13 pm; edited 1 time in total
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Feb 20, 2008 4:11 pm    Post subject: Reply with quote

You don't need http.tcl, since you're using "package http" which is part of libtcl.

I think http.tcl (as well as egghttp.tcl) are obsoleted by package http.
Back to top
View user's profile Send private message
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Wed Feb 20, 2008 4:27 pm    Post subject: Reply with quote

thanks for the info rosc2112 Smile
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Wed Feb 20, 2008 11:34 pm    Post subject: Reply with quote

didnt know that, thanks rosc Razz

You're welcome elicsa

peace
death
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Sat Feb 23, 2008 10:41 am    Post subject: Reply with quote

there's a new feature from the web (Main Yahoo! ID detector!)..

could you put it on the scripts ?

thanks in advance Wink
Back to top
View user's profile Send private message
iamdeath
Master


Joined: 11 Feb 2005
Posts: 323
Location: *HeLL*

PostPosted: Sat Feb 23, 2008 12:51 pm    Post subject: Reply with quote

Done and use the edited script but if you focus on the change you will see it's not a big deal, if you just try you can add options yourself.. Smile

peace
death
_________________
|AmDeAtH @ Undernet


Death is only the *Beginning*...
Back to top
View user's profile Send private message Visit poster's website
elisca
Halfop


Joined: 27 Jan 2007
Posts: 65
Location: in the middle of nowhere

PostPosted: Sun Feb 24, 2008 2:40 am    Post subject: Reply with quote

thanks death Embarassed
Back to top
View user's profile Send private message
shahrul
Voice


Joined: 06 Mar 2005
Posts: 27

PostPosted: Wed Apr 23, 2008 1:52 am    Post subject: Reply with quote

it's work, thanks man..
Back to top
View user's profile Send private message
uffs
Voice


Joined: 17 Apr 2008
Posts: 14
Location: 6°10.5S-106°49.7E

PostPosted: Wed Jun 15, 2011 10:43 am    Post subject: Reply with quote

anyone could fixed this script ?

or suggest similiar scripts


TIA
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 Requests All times are GMT - 4 Hours
Page 1 of 1

 
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