You are not logged in.

Dear visitor, welcome to KDE-Forum.org. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Sunday, March 18th 2007, 8:14pm

How to add a "alias" to send fortune-cookies to a chatpartner with kopete?

Hello there!

I have tried to add an "alias" with the alias module in Kopete to send a fortune cookie to my chatpartner or into a chat channel. I need a general solution to send the standard output of a terminal application to a chatpartner or channel.

I tried to add the following alias:

alias "/fortune"
command "exec /usr/games/fortune"

Unfortunatly this alias produces only an internal message with a "#" and it doesn't send it to the partner:
# Fortune cookie here!

But I want it like this:

<NoxTango> Here comes the text of the fortune cookie!
-- example from NoxTango


Does anybody know how to do this? I want to have it like the /media command, which sends the actually played media (music) with some kind of formatting to the chatpartner.

Please help me out. It can't be too difficult..

Daniel