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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
-
R-WaT
- Halfop
- Posts: 79
- Joined: Fri Jan 06, 2006 7:45 pm
Post
by R-WaT »
can anyone give me a script so when someone types "O RLY?" or "O RLY" the bot says "YA RLY!". just something for fun
-
R-WaT
- Halfop
- Posts: 79
- Joined: Fri Jan 06, 2006 7:45 pm
Post
by R-WaT »
Code: Select all
on *:TEXT:*o rly*:#: {
if (!%var) { msg $chan YA RLY! | set -u15 %var 1 }
}
irc version
After being activated, it will wait 15 seconds to try again
-
Alchera
- Revered One
- Posts: 3344
- Joined: Mon Aug 11, 2003 12:42 pm
- Location: Ballarat Victoria, Australia
-
Contact:
Post
by Alchera »
Code: Select all
set orly "*o rly*"
bind pubm - * checktext
proc checktext {nick uhost hand chan text} {
if {[string match $::orly [string tolower $text]]} {
puthelp "PRIVMSG $chan :YA RLY"
}
}
The above should do what you wish.
Last edited by
Alchera on Sun May 07, 2006 11:08 am, edited 1 time in total.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM
-
R-WaT
- Halfop
- Posts: 79
- Joined: Fri Jan 06, 2006 7:45 pm
Post
by R-WaT »
Tcl error [checktext]: can't read "text": no such variable
everytime i type something in the channel it says that
-
DragnLord
- Owner
- Posts: 711
- Joined: Sat Jan 24, 2004 4:58 pm
- Location: C'ville, Virginia, USA
Post
by DragnLord »
Edit the proc:
Code: Select all
proc checktext {nick uhost hand chan text}
-
R-WaT
- Halfop
- Posts: 79
- Joined: Fri Jan 06, 2006 7:45 pm
Post
by R-WaT »
thanks
-
Alchera
- Revered One
- Posts: 3344
- Joined: Mon Aug 11, 2003 12:42 pm
- Location: Ballarat Victoria, Australia
-
Contact:
Post
by Alchera »
Grrrr .. me and my typos.
Add [SOLVED] to the thread title if your issue has been.
Search |
FAQ |
RTM