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.

Script request.

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
D
D3ViLiF3
Voice
Posts: 21
Joined: Thu Nov 16, 2006 10:11 am
Location: Avellino (Italy)

Script request.

Post by D3ViLiF3 »

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? :)
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

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?
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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: Select all

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
c
cache
Master
Posts: 306
Joined: Tue Jan 10, 2006 4:59 am
Location: Mass

Post by cache »

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: Select all

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?
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

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: Select all

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
User avatar
Alchera
Revered One
Posts: 3344
Joined: Mon Aug 11, 2003 12:42 pm
Location: Ballarat Victoria, Australia
Contact:

Post by Alchera »

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: Select all

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
Post Reply