Page 1 of 2

Log Administrator messages in some way

PostPosted: Sun Jul 27, 2014 4:55 am
by Raventhon
Currently the Announce To Table feature outputs chat to the table as Administrator: Message but that message is not saved in hand histories or table chat logs in any way. That should probably not be happening, right?

Re: Log Administrator messages in some way

PostPosted: Sun Jul 27, 2014 5:01 am
by Raventhon
More specifically, we're post-processing the data and have inserted important accounting data in these admin messages and they're not being logged anywhere as far as we can tell.

Re: Log Administrator messages in some way

PostPosted: Sun Jul 27, 2014 9:16 am
by Kent Briggs
Do you have "Save player chat" enabled in the Log Settings group?

Re: Log Administrator messages in some way

PostPosted: Sun Jul 27, 2014 9:19 am
by Kent Briggs
Also, I assume you are referring to the "RingGamesMessage" and "TournamentsMessage" commands in the API, correct?

Re: Log Administrator messages in some way

PostPosted: Sun Jul 27, 2014 6:55 pm
by Raventhon
Kent Briggs wrote:Also, I assume you are referring to the "RingGamesMessage" and "TournamentsMessage" commands in the API, correct?


Yes, we save player chat and can search logs for player chat with no issues. And yes, I'm talking about RingGamesMessage and TournamentsMessage.

Re: Log Administrator messages in some way

PostPosted: Sun Jul 27, 2014 8:34 pm
by Kent Briggs
Raventhon wrote:Yes, we save player chat and can search logs for player chat with no issues. And yes, I'm talking about RingGamesMessage and TournamentsMessage.


It's working for me. I've got "Save player chat" enabled in the Log Settings and I just ran this API command direct from my browser URL box:

http://127.0.0.1:8087/api?Password=x&Command=RingGamesMessage&Name=R1&Message=Test_Message

and when I go look in the server-side HandHistory file for HH2014-07-27 R1.text, I see the line:

Administrator: "Test_Message"

Re: Log Administrator messages in some way

PostPosted: Mon Jul 28, 2014 12:25 am
by Raventhon
Screenshot of administrator message: http://i.gyazo.com/6fc4334255b31e4b1756cb41959ae2b9.png

Log of hand history:

Hand #1142305-1 - 2014-07-28 00:19:52
Game: NL Hold'em (1500+0) - Blinds 10/20
Site: PokerShibes.com
Table: Admin SNG Test - Table 1
Seat 8: suchflush (1500) - sitting out
Seat 10: Admin (1500)
suchflush has the dealer button
suchflush posts small blind 10
Admin posts big blind 20
** Hole Cards ** [2 players]
suchflush folds
suchflush: "TEST MESSAGE"
Admin: "Test message."
Admin refunded 10
Admin wins Pot (20)
Admin shows [As 3s]
** Deck ** [As 6s 3s Jh]

Re: Log Administrator messages in some way

PostPosted: Mon Jul 28, 2014 12:27 am
by Raventhon
Screenshot of administrator message: http://i.gyazo.com/6fc4334255b31e4b1756cb41959ae2b9.png

Log of hand history:

Hand #1142305-1 - 2014-07-28 00:19:52
Game: NL Hold'em (1500+0) - Blinds 10/20
Site: PokerShibes.com
Table: Admin SNG Test - Table 1
Seat 8: suchflush (1500) - sitting out
Seat 10: Admin (1500)
suchflush has the dealer button
suchflush posts small blind 10
Admin posts big blind 20
** Hole Cards ** [2 players]
suchflush folds
suchflush: "TEST MESSAGE"
Admin: "Test message."
Admin refunded 10
Admin wins Pot (20)
Admin shows [As 3s]
** Deck ** [As 6s 3s Jh]

API information:

>>> mavens.system_get('HistoryChat')
{u'Result': u'Ok', u'Value': u'Yes'}
>>> mavens.tournaments_message('Admin SNG Test', 'TEST MESSAGE')
{u'Result': u'Ok'}
>>> data = mavens.logs_hand_history_data('Admin SNG Test - Table 1', '2014-07-28')
>>> print '\n'.join(l for l in data if 'TEST MESSAGE' in l.upper())
suchflush: "TEST MESSAGE"
Admin: "Test message."
>>>

Re: Log Administrator messages in some way

PostPosted: Mon Jul 28, 2014 12:32 am
by Raventhon
RingGameMessage test:

http://i.gyazo.com/5348a11606d6e57730140e8da21a254f.png

Admin: "Boop boop."
Administrator: "A computerized test message appears!"
Admin: "Huzzah."


It appears to work for Ring Games but not Tournaments.

Re: Log Administrator messages in some way

PostPosted: Mon Jul 28, 2014 10:38 am
by Kent Briggs
Raventhon wrote:It appears to work for Ring Games but not Tournaments.


Yup, I should have tested that too. It appears I have the "save" flag turned off by mistake in the tournament call. I will fix that in the next update. Thanks.