| View previous topic :: View next topic |
| Author |
Message |
Joel Voice
Joined: 06 Sep 2005 Posts: 11
|
Posted: Wed Sep 07, 2005 4:47 am Post subject: newbie basic help script |
|
|
| 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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Sep 07, 2005 5:03 am Post subject: |
|
|
your [bind] command has invalid format, it lacks flags parameter
use separate [putchan] command for each line to output |
|
| Back to top |
|
 |
Joel Voice
Joined: 06 Sep 2005 Posts: 11
|
Posted: Wed Sep 07, 2005 5:25 am Post subject: |
|
|
Your a star, thanks
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Sep 07, 2005 5:32 am Post subject: |
|
|
| certainly there is, simply don't include newline character(s) |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Thu Sep 08, 2005 6:35 am Post subject: |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Sep 08, 2005 11:48 am Post subject: |
|
|
not only IRC, you cannot force linebreak anywhere without using new line character  |
|
| Back to top |
|
 |
De Kus Revered One

Joined: 15 Dec 2002 Posts: 1361 Location: Germany
|
Posted: Thu Sep 08, 2005 12:41 pm Post subject: |
|
|
| demond wrote: | not only IRC, you cannot force linebreak anywhere without using new line character  |
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  _________________ 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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Thu Sep 08, 2005 12:53 pm Post subject: |
|
|
| linebreak == newline == LF == \n |
|
| Back to top |
|
 |
Alchera Revered One

Joined: 11 Aug 2003 Posts: 3344 Location: Ballarat Victoria, Australia
|
Posted: Fri Sep 09, 2005 9:23 pm Post subject: |
|
|
| demond wrote: | | linebreak == newline == LF == \n |
I thought that was rather obvious to anyone.  _________________ Add [SOLVED] to the thread title if your issue has been.
Search | FAQ | RTM |
|
| Back to top |
|
 |
|