| View previous topic :: View next topic |
| Author |
Message |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Thu Feb 23, 2006 10:47 am Post subject: Bot should display something in 2 lines |
|
|
Hello!
I have installed some scripts for my bot. But how is it possible that the bot does not display everything in one line but in two or three or anything like that.
Here an example:
| Quote: | (15:46:25) (@Darton) !hello
(15:46:29) (@Bot) The Bot says hello to Darton.
(15:46:30) (@Bot) What's up?
(15:46:31) (@Bot) How did you sleep?
...
|
How is it possible to make a line break? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Thu Feb 23, 2006 4:32 pm Post subject: |
|
|
Nice help. But what do I have to change? Look at this script:
| Code: |
bind pub - !aeg aeg
proc aeg {nick host hand chan rest} {
puthelp "privmsg $chan :aaaaaaaaaaeeeeeeeeggggggggg"
}
|
What do I have to change that it is displayed like this:
| Quote: |
(@Darton) !aeg
(@Bot) aaaaaaaaaa
(@Bot) eeeeeeee
(@Bot) ggggggggg
|
|
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Feb 23, 2006 4:39 pm Post subject: |
|
|
That's the nice help you get when you provide "nice" information about your problem.
Eggdrop does not split the text. My only explanation for what's happening with your bot is that the network it's on might be splitting the text or you have some proc that's overriding the original eggdrop puthelp queue (do you?). _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Thu Feb 23, 2006 4:51 pm Post subject: |
|
|
Neither the network it's on might be splitting nor I have some procs that overrides the original puthelp queue as far as I know.
So it is not possible to make a line break? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Feb 23, 2006 5:50 pm Post subject: |
|
|
Wait a minute, I maybe got you wrong. You want it to display
| Quote: | (@Bot) aaaaaaaaaa
(@Bot) eeeeeeee
(@Bot) ggggggggg |
instead of
| Quote: | | (@Bot) aaaaaaaaaaeeeeeeeeggggggggg | ?
Then add several puthelp lines to do so, it's as simple as that. or you can use a foreach loop, for example:
| Code: | set text {"aaaaaaaaaa" "eeeeeeee" "ggggggggg"}
foreach word $text {
puthelp "privmsg $chan :$word"
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
darton Op
Joined: 21 Jan 2006 Posts: 155
|
Posted: Fri Feb 24, 2006 11:38 am Post subject: |
|
|
| You are right Sir_Fz. Thank you very much. There is a little delay but I think this the delay is unrecoverable. |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Fri Feb 24, 2006 8:35 pm Post subject: |
|
|
You can use a faster queue (i.e. putserv or putquick) instead of puthelp. _________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
|