Lobby Chat

For discussion of the Poker Mavens server module and other administration topics

Lobby Chat

Postby console » Mon Oct 07, 2013 10:18 am

How would one go about getting a feed of the lobby chat?
Is there a way to get it with the API other then maybe logging the lobby chat and reading it form the logs?

I want to display lobby chat elsewhere on my site, what are my options?
console
 
Posts: 10
Joined: Tue Oct 01, 2013 7:33 am

Re: Lobby Chat

Postby Kent Briggs » Mon Oct 07, 2013 11:41 am

console wrote:How would one go about getting a feed of the lobby chat?
Is there a way to get it with the API other then maybe logging the lobby chat and reading it form the logs?
I want to display lobby chat elsewhere on my site, what are my options?


A callback event for the lobby chat was added in version 4.02 where you can get the text of every message as they occur. To retrieve an entire day's worth of lobby chat, use the LogsLobbyChat command in the API.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3906
Joined: Wed Mar 19, 2008 8:47 pm

Re: Lobby Chat

Postby console » Tue Oct 08, 2013 6:55 am

Thanks for the quick reply,
That will do the trick fantastic.
Its right there in the Documents sorry i missed it,

For future reference:
Code: Select all
LogsLobbyChat - call without any parameters to retrieve a list of dates where a lobby chat log file was created. Example output will look something like this:

Result=Ok
Files=3
Date1=2009-03-01
Date2=2009-03-05
Date3=2009-03-06

Call with a Date parameter in the format of yyyy-mm-dd to retrieve the contents of a lobby chat log file. Example output will look something like this:

Result=Ok
2009-02-10 18:35:55 Alice: are you going to play in the tournament?
2009-02-10 18:36:14 Bob: yeah, see you there



http://www.briggsoft.com/docs/pmavens/T ... erface.htm
console
 
Posts: 10
Joined: Tue Oct 01, 2013 7:33 am

Re: Lobby Chat

Postby console » Fri Oct 11, 2013 3:26 am

Just so everyone knows the above call only works if logging is enabled, i was hoping to use the same requests the client not read from a log file, for that to work you need to have chat logging enabled :)
I really cbf reversing it just ot get chat.
console
 
Posts: 10
Joined: Tue Oct 01, 2013 7:33 am

Re: Lobby Chat

Postby Kent Briggs » Fri Oct 11, 2013 9:13 am

console wrote:Just so everyone knows the above call only works if logging is enabled, i was hoping to use the same requests the client not read from a log file, for that to work you need to have chat logging enabled :)
I really cbf reversing it just ot get chat.


It only makes sense to have logging enabled to be able to read a log file. Otherwise, use the Callback Event instead and monitor the chat in real time.
Kent Briggs - [email protected]
Briggs Softworks - http://www.briggsoft.com
Kent Briggs
Site Admin
 
Posts: 3906
Joined: Wed Mar 19, 2008 8:47 pm

Re: Lobby Chat

Postby superman7 » Tue Jan 07, 2014 5:28 am

It retrieve an entire day's worth of lobby chat, use the LogsLobbyChat command in the API.
superman7
 
Posts: 2
Joined: Tue Jan 07, 2014 5:18 am


Return to Site Administration

Who is online

Users browsing this forum: No registered users and 5 guests

cron