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.

HELP

Old posts that have not been replied to for several years.
Locked
User avatar
Rusher2K
Halfop
Posts: 88
Joined: Fri Apr 18, 2003 10:45 am
Location: Germany
Contact:

HELP

Post by Rusher2K »

How i make this ad displaying on all chans the bot is but not on chan #1 one ???

Code: Select all

# Alternative, hit ctrl+k in IRC and copy paste in to dialog box.              #
################################################################################

##### GENERAL SETTINGS ####
# Channel
set channel "#isp4p"

# Time
set time 15

# AD-Text 1
set text "Probleme mit deinem Bouncer/Eggdrop ? Komm in #ISP4P.Support, denn da wirst du geholfen!"

##### DO NOT EDIT ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING #####

set a "$botnick"
set a [string tolower "$nick"]

if {![info exists ald]} {
set ald 1
timer $time go
}

proc go {} {
global a channel time text
foreach chan $channel {
putserv "PRIVMSG $chan :$text"
timer $time go

}
}
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

[channels] gives you a list of all the channels added in your bot.
What do you mean by "chan #1 one"?
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

replace from:

Code: Select all

foreach chan $channel { 
to:

Code: Select all

foreach chan [channels] { 
and should do what you've wanted.
Once the game is over, the king and the pawn go back in the same box.
Locked