This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Request Version Reply

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
User avatar
play4free2
Voice
Posts: 34
Joined: Sat Nov 23, 2013 1:42 am
Contact:

Request Version Reply

Post by play4free2 »

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
Image
420-HIGHTIMES IRC Network
User avatar
play4free2
Voice
Posts: 34
Joined: Sat Nov 23, 2013 1:42 am
Contact:

Post by play4free2 »

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: Select all

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
Image
420-HIGHTIMES IRC Network
User avatar
Madalin
Master
Posts: 310
Joined: Fri Jun 24, 2005 11:36 am
Location: Constanta, Romania
Contact:

Post by Madalin »

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

Code: Select all

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]]"
}
User avatar
play4free2
Voice
Posts: 34
Joined: Sat Nov 23, 2013 1:42 am
Contact:

Post by play4free2 »

Thanks Madalin works great :)
Image
420-HIGHTIMES IRC Network
Post Reply