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 

Request Version Reply

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


Joined: 23 Nov 2013
Posts: 33

PostPosted: Thu Dec 12, 2013 10:05 pm    Post subject: Request Version Reply Reply with quote

Hi,

I am looking for a script for a bot that uses the trigger !version <nick>

Then replies to the chanset #channel(s) with: Version Reply: mIRC 6.35 Khaled Mardam-Bey
Or what ever version(s) the user might be using.

Thanks,

play4free2
_________________

420-HIGHTIMES IRC Network
Back to top
View user's profile Send private message Visit poster's website
play4free2
Voice


Joined: 23 Nov 2013
Posts: 33

PostPosted: Fri Jan 31, 2014 11:36 pm    Post subject: Reply with quote

Update: I found this code, it was just for on join version replies I edited it to where it uses a public trigger instead of an on join bind and added the time command.

But I can't seem to figure out how to get it to work where i can do a chanset on it and I haven't been able to get it to where it triggers on !command <nick>
Code:
set chan "#channel"

bind pub - !version vers_proc
bind ctcr - VERSION return_vers

bind pub - !utime utms_proc
bind ctcr - TIME return_utms

proc vers_proc {nick uhost hand chan arg} {
  putserv "PRIVMSG $nick :\001VERSION\001"
}

proc return_vers {nick uhost hand dest key vers} {
  global chan
  set retvers [join [lrange [split $vers] 0 end]]
  putserv "PRIVMSG $chan :$nick is using: $retvers"
}

proc utms_proc {nick uhost hand chan arg} {
  putserv "PRIVMSG $nick :\001TIME\001"
}

proc return_utms {nick uhost hand dest key utms} {
  global chan
  set retutms [join [lrange [split $utms] 0 end]]
  putserv "PRIVMSG $chan :$nick's date and time: $retutms"
}


Any help would be appreciated.

Thanks
_________________

420-HIGHTIMES IRC Network
Back to top
View user's profile Send private message Visit poster's website
Madalin
Master


Joined: 24 Jun 2005
Posts: 310
Location: Constanta, Romania

PostPosted: Sat Feb 01, 2014 7:16 am    Post subject: Reply with quote

Use .chanset #channel +version in DCC CHAT to activate the script on what channel.

Code:
bind PUB - !version version:pub

bind CTCR - VERSION version:reply

setudef flag version

proc version:pub {nick uhost hand chan arg} {
   global temp

   if {![channel get $chan version]} { return }
   
   set temp(who) [lindex [split $arg] 0]
   set temp(chan) $chan
   putserv "PRIVMSG $temp(who) :\001VERSION\001"
}

proc version:reply {nick uhost hand dest key vers} {
   global temp

   putserv "PRIVMSG $temp(chan) :$nick is using: [join [lrange [split $vers] 0 end]]"
}

_________________
https://github.com/MadaliNTCL - To chat with me: https://tawk.to/MadaliNTCL
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger
play4free2
Voice


Joined: 23 Nov 2013
Posts: 33

PostPosted: Sat Feb 01, 2014 3:35 pm    Post subject: Reply with quote

Thanks Madalin works great Smile
_________________

420-HIGHTIMES IRC Network
Back to top
View user's profile Send private message Visit poster's website
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