egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Script request.

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
D3ViLiF3
Voice


Joined: 16 Nov 2006
Posts: 21
Location: Avellino (Italy)

PostPosted: Sat Dec 23, 2006 3:25 am    Post subject: Script request. Reply with quote

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? Smile
Back to top
View user's profile Send private message MSN Messenger
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Dec 23, 2006 3:57 am    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Sat Dec 23, 2006 4:24 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
cache
Master


Joined: 10 Jan 2006
Posts: 306
Location: Mass

PostPosted: Wed Dec 27, 2006 12:53 pm    Post subject: Reply with quote

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
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Wed Dec 27, 2006 5:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
Alchera
Revered One


Joined: 11 Aug 2003
Posts: 3344
Location: Ballarat Victoria, Australia

PostPosted: Wed Dec 27, 2006 7:14 pm    Post subject: Reply with quote

metroid wrote:
How naughty of you to use lindex on a string :p


* Alchera Woops Smile

@ 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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber