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.
Old posts that have not been replied to for several years.
-
S
Saktas
Post
by Saktas »
hi,
I am sure I remember seeing a small topic script where you told the bot certain topics, i.e
Topic 1 = Welcome to #MyChan
Topic 2 = This channel rocks!
Then users can just type !topic 1 to set the topic.
Anyone know this script, or suggest how to write it myself?
Thanks

-
caesar
- Mint Rubber
- Posts: 3778
- Joined: Sun Oct 14, 2001 8:00 pm
- Location: Mint Factory
Post
by caesar »
Code: Select all
bind pub o !topic pub:topic
proc pub:topic {nick uhost hand chan arg} {
set no [lindex $arg 0]
if {$no == ""} {
putserv "NOTICE $nick :Usage: !topic <number>"
return
}
switch -- $no {
"1" {
set topic "This is my no. 1 topic."
putserv "TOPIC $chan $topic"
}
"2 {
set topic "This is my no. 2 topic."
putserv "TOPIC $chan $topic"
}
"3" {
set topic "This is my no. 3 topic."
putserv "TOPIC $chan $topic"
}
}
}
Once the game is over, the king and the pawn go back in the same box.