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 

newbie basic help script

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive
View previous topic :: View next topic  
Author Message
Joel
Voice


Joined: 06 Sep 2005
Posts: 11

PostPosted: Wed Sep 07, 2005 4:47 am    Post subject: newbie basic help script Reply with quote

Code:

bind pub !help bot_help

proc bot_help {nick uhost hand chan rest} {
       putchan $chan "Google Commands: !google !image !groups !local /n
         BoFH Commands: !bofh !selbofh /n
         Bash.org: !bash /n
         Others: !seen"         
    return
}

I think I'm doing something wrong with the command !help?

Anyone give me a quick pointer?

Joel
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 Sep 07, 2005 5:03 am    Post subject: Reply with quote

your [bind] command has invalid format, it lacks flags parameter

use separate [putchan] command for each line to output
Back to top
View user's profile Send private message Visit poster's website
Joel
Voice


Joined: 06 Sep 2005
Posts: 11

PostPosted: Wed Sep 07, 2005 5:25 am    Post subject: Reply with quote

Your a star, thanks Very Happy

Is there any way to get it to just output everything in one chunk of text, rather than on separtate lines?

Joel
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 Sep 07, 2005 5:32 am    Post subject: Reply with quote

certainly there is, simply don't include newline character(s)
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu Sep 08, 2005 6:35 am    Post subject: Reply with quote

IRC protocol is single line, meaning if the bot really sends it out it will get the error that there are no commands called "BoFH", "Bash.org:" and "Others:" ^-^. There is no known for me to force a client to do a linebreak without really printing a new line.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
demond
Revered One


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

PostPosted: Thu Sep 08, 2005 11:48 am    Post subject: Reply with quote

not only IRC, you cannot force linebreak anywhere without using new line character Wink
Back to top
View user's profile Send private message Visit poster's website
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Thu Sep 08, 2005 12:41 pm    Post subject: Reply with quote

demond wrote:
not only IRC, you cannot force linebreak anywhere without using new line character Wink

thats wrong, in a telnet connection you can use linebreak (or beter move the cursor down and backwards, but thats the same as linebreak in the end anyway, at least in windows) with ANSI codes, but mIRC ignores ANSI codes altering the cursor (I confirmed that after posting my previous post).

Code:
[17:49:59] tcl: evaluate (.tcl): putdcc 11 "two \033\E\033\[40Dlines"
two
lines
test it yourself Smile
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...


Last edited by De Kus on Thu Sep 08, 2005 12:54 pm; edited 1 time in total
Back to top
View user's profile Send private message MSN Messenger
demond
Revered One


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

PostPosted: Thu Sep 08, 2005 12:53 pm    Post subject: Reply with quote

linebreak == newline == LF == \n
Back to top
View user's profile Send private message Visit poster's website
Alchera
Revered One


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

PostPosted: Fri Sep 09, 2005 9:23 pm    Post subject: Reply with quote

demond wrote:
linebreak == newline == LF == \n

I thought that was rather obvious to anyone. Laughing
_________________
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:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    egghelp.org community Forum Index -> Archive 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