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 

commands

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


Joined: 03 Jan 2006
Posts: 11

PostPosted: Tue Jan 03, 2006 11:57 pm    Post subject: commands Reply with quote

Hi ! This my first post here all though I have been scanning these forums and archives for hours . I am hoping someone can write a lil script for me .
I need something that when someone types @commands in channel it gives a list of commands the I have defined .
eg:
joeblo : @commands
eggbot : @define , @trivia , @help , @etc .... all on one line in like one sentance , so they get them quick and dont get flooded . I have looked and looked and maybe over looked but I havent been able to find exactly what I need . Thnks You .
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Jan 04, 2006 12:16 am    Post subject: Reply with quote

Code:

set commands {@define @trivia @help @etc}
bind pub - @commands foo
proc foo {n u h c t} {
    puthelp "privmsg $c :[join $::commands {, }]"
}

_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Rhedd
Voice


Joined: 03 Jan 2006
Posts: 11

PostPosted: Wed Jan 04, 2006 1:52 am    Post subject: Reply with quote

all tho i didnt really expect to get an answer so soon . I have no clue what u have just said or how to use it . Some comment would have been nice . like where to put the chanels it should work on . and it looks like an on join script that , people would get this list of commands on join , which would be anoying if they got this everytime . remember please I know nothing about tcl , I only just started with this eggdrop today . I got it up and running on my first try but have been searching for scripts that work with it all day . thankyou for such a quick response .
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 Jan 04, 2006 2:14 am    Post subject: Reply with quote

Rhedd wrote:
all tho i didnt really expect to get an answer so soon . I have no clue what u have just said or how to use it . Some comment would have been nice . like where to put the chanels it should work on . and it looks like an on join script that , people would get this list of commands on join , which would be anoying if they got this everytime . remember please I know nothing about tcl , I only just started with this eggdrop today . I got it up and running on my first try but have been searching for scripts that work with it all day . thankyou for such a quick response .

1) You did not request that it triggers on selected channels.
2) It is definitely not an "onjoin" script.
3) A user triggers the script by typing >> @command << in main.
4) Copy and paste into a text file (using Notepad on Windows system), save it with any filename you choose BUT it must have the .tcl extention.
5) Load the script via your conf file (see bottom of file for examples).
_________________
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
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Jan 04, 2006 2:32 am    Post subject: Reply with quote

your intuition deceives you Razz that [join] has nothing to do with joining channels, it's a Tcl command for joining list elements into string
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
Rhedd
Voice


Joined: 03 Jan 2006
Posts: 11

PostPosted: Wed Jan 04, 2006 6:50 pm    Post subject: Reply with quote

ty i understand a lil better now , got the script loaded after editing the triggers and worked from get go
since then i have been reading a few tutorials and understand the script a lil better now too . Thnx for writing is so quick Smile)
Back to top
View user's profile Send private message
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