| View previous topic :: View next topic |
| Author |
Message |
D3ViLiF3 Voice
Joined: 16 Nov 2006 Posts: 21 Location: Avellino (Italy)
|
Posted: Sat Dec 23, 2006 3:25 am Post subject: Script request. |
|
|
Hello, I need a script that when one user writes in a channel !join chan, the bot join the channel. How can help me please?  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Dec 23, 2006 3:57 am Post subject: |
|
|
I'll give you the benefit of the doubt and assume you spammed this request because the forum was not responding..
But... How do you expect the bot to receive a command in channels that its NOT in? |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Sat Dec 23, 2006 4:24 am Post subject: |
|
|
| rosc2112 wrote: | I'll give you the benefit of the doubt and assume you spammed this request because the forum was not responding..
But... How do you expect the bot to receive a command in channels that its NOT in? |
I think he means when they are in the same channel the bot is in a user can have the bot join any other channel via "!join #mychan".
| Code: | bind pub - !join join:channel
proc join:channel {nick uhost hand chan arg} {
set channel [lindex [string tolower $arg] 0]
channel add $channel
} |
_________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
cache Master
Joined: 10 Jan 2006 Posts: 306 Location: Mass
|
Posted: Wed Dec 27, 2006 12:53 pm Post subject: |
|
|
| Alchera wrote: | | rosc2112 wrote: | I'll give you the benefit of the doubt and assume you spammed this request because the forum was not responding..
But... How do you expect the bot to receive a command in channels that its NOT in? |
I think he means when they are in the same channel the bot is in a user can have the bot join any other channel via "!join #mychan".
| Code: | bind pub - !join join:channel
proc join:channel {nick uhost hand chan arg} {
set channel [lindex [string tolower $arg] 0]
channel add $channel
} |
|
Does that perm add it to a room? and how would they make it leave the room? |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Wed Dec 27, 2006 5:03 pm Post subject: |
|
|
| Alchera wrote: | | rosc2112 wrote: | I'll give you the benefit of the doubt and assume you spammed this request because the forum was not responding..
But... How do you expect the bot to receive a command in channels that its NOT in? |
I think he means when they are in the same channel the bot is in a user can have the bot join any other channel via "!join #mychan".
| Code: | bind pub - !join join:channel
proc join:channel {nick uhost hand chan arg} {
set channel [lindex [string tolower $arg] 0]
channel add $channel
} |
|
How naughty of you to use lindex on a string :p |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Wed Dec 27, 2006 7:14 pm Post subject: |
|
|
| metroid wrote: | | How naughty of you to use lindex on a string :p |
* Alchera Woops
@ cache: It dynamically adds the channel and the bot will remain there until it has been parted either using the following or via DCC Chat with ".-chan #chan".
| Code: | bind pub - !join join:channel
bind pub - !part part:channel
proc join:channel {nick uhost hand chan arg} {
set channel [string tolower $arg]
channel add $channel
}
proc part:channel {nick uhost hand chan arg} {
set channel [string tolower $arg]
channel remove $channel
} |
The above joins/parts via "!join <chan>" or "!part <chan>". _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|