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.
-
quiki
- Voice
- Posts: 10
- Joined: Wed Sep 24, 2003 6:20 am
- Location: Norway
-
Contact:
Post
by quiki »
I need a tcl that types messages when they type:
!list in the channel.
Could someone help me out please
-
CrazyCat
- Revered One
- Posts: 1304
- Joined: Sun Jan 13, 2002 8:00 pm
- Location: France
-
Contact:
Post
by CrazyCat »
wich messages?
-
quiki
- Voice
- Posts: 10
- Joined: Wed Sep 24, 2003 6:20 am
- Location: Norway
-
Contact:
Post
by quiki »
A commercial for shells. Like when they type !list, a list of shells turns up.
-
CrazyCat
- Revered One
- Posts: 1304
- Joined: Sun Jan 13, 2002 8:00 pm
- Location: France
-
Contact:
Post
by CrazyCat »
CrazyCat wrote:wich messages?
Wich kind of message: where are they stored? file, internal variable, web page?
-
quiki
- Voice
- Posts: 10
- Joined: Wed Sep 24, 2003 6:20 am
- Location: Norway
-
Contact:
Post
by quiki »
The messeges just need to be in the tcl like this:
"Commercial nr 1, line nr 1"
"Commercial nr 2, line nr 2"
In this way I just edit the list.tcl and .rehash the bot when I update the tcl
-
CrazyCat
- Revered One
- Posts: 1304
- Joined: Sun Jan 13, 2002 8:00 pm
- Location: France
-
Contact:
Post
by CrazyCat »
I'll give you a small tcl to do this, but it's so simple that you'd better use it to learn tcl...
Code: Select all
set mychan "#channel"
set mylist {
"my first line, really beautifull"
"my second line, it's awfull"
...
...
"the last line? well done"
}
bind pub - "!list" read:shells
proc read:shells {nick uhost handle chan args} {
global mychan mylist
if {[string tolower $chan] != [string tolower $mychan] } { return 0 }
foreach line $mylist {
puthelp "PRIVMSG $mychan :$line"
}
return 1
}
-
quiki
- Voice
- Posts: 10
- Joined: Wed Sep 24, 2003 6:20 am
- Location: Norway
-
Contact:
Post
by quiki »
Ok, thx man!