This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Formatting messages told by a bash script.

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
s
sadnem
Voice
Posts: 10
Joined: Thu Mar 18, 2010 5:58 pm

Formatting messages told by a bash script.

Post by sadnem »

Hi,
The thing is I want my eggdrop bot to display messages that would be told by a bash script I have on a different server. It seems to be a simple job but I have no experience with eggdrop/tcl so I can´t do much about it.

What people told me to do was to make eggdrop listen on some port and then telnet the info to it although I have no idea how to do that.

Regards.

EDIT: Some user pointed me to this thread http://forum.egghelp.org/viewtopic.php?p=86819 which almost solved my problem but I´d like the messages that I send to my bot to be formatted and if I send a message like:
(See the posted thread to understand this)

Code: Select all

echo "write #mychan \002Bold text\002" | nc localhost 12345 
My bot will display \002Bold text\002 instead of Bold text
User avatar
Trixar_za
Op
Posts: 143
Joined: Wed Nov 18, 2009 1:44 pm
Location: South Africa
Contact:

Post by Trixar_za »

You have to use the bold character 'block' () instead of the \00 type codes.
s
sadnem
Voice
Posts: 10
Joined: Thu Mar 18, 2010 5:58 pm

Post by sadnem »

That was it, thank you ;)
Post Reply