export chat to IRC

Discussion related to Turbo Sliders and beta version feedback.

Moderator: Forum Moderators

Post Reply
Caber
Posts: 4
Joined: Fri Dec 26, 2008 9:05 am

export chat to IRC

Post by Caber » Mon Feb 09, 2009 2:38 pm

Hi all,

I'm busy with setting up an server and I would be very pleased if it would be possible to export the chat to IRC, is that possible in any way? (i've a license so that is no problem)

Greetings and thanks...

User avatar
dede
Community User Level: 5
Community User Level: 5
Posts: 3314
Joined: Mon Apr 10, 2006 10:29 am
Contact:

Re: export chat to IRC

Post by dede » Mon Feb 09, 2009 3:49 pm

Caber wrote:I would be very pleased if it would be possible to export the chat to IRC, is that possible in any way?
Badeend (a player) had something like that working at his server. I think you could read the chat from server logs and repeat new msg's to IRC chat through a bot.
Just an idea.

User avatar
Badeend
Community User Level: 1
Community User Level: 1
Posts: 91
Joined: Sun Nov 28, 2004 6:37 pm

Post by Badeend » Mon Feb 09, 2009 5:56 pm

Correct. It's just a PHP IRC bot reading the server log and outputting them to an IRC channel after filtering the messages. So if you have experience with PHP or any other programming language, it should be possible to fix this.
I've had it online for a while, but I'm not sure I still have it somewhere.

Caber
Posts: 4
Joined: Fri Dec 26, 2008 9:05 am

Post by Caber » Mon Feb 09, 2009 6:03 pm

Badeend wrote: It's just a PHP IRC bot reading the server log and outputting them to an IRC channel after filtering the messages. So if you have experience with any programming language, it should be possible to fix this.
Yes I've experience with PHP and other programming languages. But I really don't know how to do this with TurboSliders. So if you have the script I would be very pleased.

Is it also possible to talk back from IRC?

Thanks...

User avatar
Badeend
Community User Level: 1
Community User Level: 1
Posts: 91
Joined: Sun Nov 28, 2004 6:37 pm

Post by Badeend » Mon Feb 09, 2009 6:15 pm

Well, TurboSliders writes everything to log.txt, and that's about everything TurboSliders does, you won't need anything else either. So if you build or download an IRC bot, you can build some kind of plugin to read the log.txt and output it to an IRC channel. And yes, it's also possible to send commands to the TurboSlider server. The server reads a txt file for commands every three seconds I believe, you can find it somewhere in the TurboSliders server documentation. So if you let an IRC command write something to that file, it should be working nicely.

I can't give you the script, it's not finished and it's not open source (yet).

Caber
Posts: 4
Joined: Fri Dec 26, 2008 9:05 am

Post by Caber » Mon Feb 09, 2009 6:54 pm

Badeend wrote:Well, TurboSliders writes everything to log.txt, and that's about everything TurboSliders does, you won't need anything else either. So if you build or download an IRC bot, you can build some kind of plugin to read the log.txt and output it to an IRC channel. And yes, it's also possible to send commands to the TurboSlider server. The server reads a txt file for commands every three seconds I believe, you can find it somewhere in the TurboSliders server documentation. So if you let an IRC command write something to that file, it should be working nicely.
Thanks a lot! I will manage to do what I want now...

Post Reply