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 

Bot should display something in 2 lines

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


Joined: 21 Jan 2006
Posts: 155

PostPosted: Thu Feb 23, 2006 10:47 am    Post subject: Bot should display something in 2 lines Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Feb 23, 2006 1:43 pm    Post subject: Reply with quote

Edit the script you're using.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
darton
Op


Joined: 21 Jan 2006
Posts: 155

PostPosted: Thu Feb 23, 2006 4:32 pm    Post subject: Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Feb 23, 2006 4:39 pm    Post subject: Reply with quote

darton wrote:
Nice help.

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


Joined: 21 Jan 2006
Posts: 155

PostPosted: Thu Feb 23, 2006 4:51 pm    Post subject: Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Feb 23, 2006 5:50 pm    Post subject: Reply with quote

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


Joined: 21 Jan 2006
Posts: 155

PostPosted: Fri Feb 24, 2006 11:38 am    Post subject: Reply with quote

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


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Fri Feb 24, 2006 8:35 pm    Post subject: Reply with quote

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
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