where do I code?

For general discussion of the Poker Mavens software
Post Reply
gpbets
Posts: 24
Joined: Sat Jun 07, 2014 9:46 am

where do I code?

Post by gpbets »

where do I code commands like ::mute and ::ban for my pmaven?
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: where do I code?

Post by Kent Briggs »

gpbets wrote:where do I code commands like ::mute and ::ban for my pmaven?
You mean in the chat or somewhere else? Where are you seeing "::mute" and "::ban"?
gpbets
Posts: 24
Joined: Sat Jun 07, 2014 9:46 am

Re: where do I code?

Post by gpbets »

^^
I want to implement commands like ::mute (player) (1H)
::ban (player)
player = players name
1H = 1 hour
::ban = adds a player to blacklist.
::ipban = adds a players IP to blacklist

Where would I need to code a custom script to perform this?
Poker maven files or callback?
Kent Briggs
Site Admin
Posts: 5880
Joined: Wed Mar 19, 2008 8:47 pm

Re: where do I code?

Post by Kent Briggs »

gpbets wrote:^^
Where would I need to code a custom script to perform this?
Poker maven files or callback?
Depends on where you want to enter those commands, directly from the chat or from a web page somewhere. From the chat, you can use the "Lobby chat event" callback and optionally use the regex setting for filtering. Or from a web site, create a form for input. Either way, you'll make an API call to AccountsEdit for chat banning or to BlacklistAdd /BlacklistEdit for other banning.
Post Reply