Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Request] API/Command to create new Chat Messages #22

Open
dannegm opened this issue Dec 4, 2019 · 1 comment
Open

[Request] API/Command to create new Chat Messages #22

dannegm opened this issue Dec 4, 2019 · 1 comment

Comments

@dannegm
Copy link

dannegm commented Dec 4, 2019

First of nothing, I would like to extend my support for this plugin, it's awesome and I really love the integration with DiscorSRV.

For this time, I have a request but I understand if is not posible.

The idea is to have a way, either via a API for developers or via command for admins, to create new chat messages into the history.

Currently I have some commands and NPC integrations that expose new dialogs into the chat server and discord (with the broadcast command). So, would be awesome save that dialogs into the history of the chat such as ChatReplay does.

Maybe, if you create a new API, should be eough to use the ChatMessage object, or, if you prefer (and this is which I prefer) create a new command like:

/chatreplay create <player_name> <message> [timestamp]

Where the <player_name> parammeter could be a real player or not (for the NPC integration).
And maybe, has support with the following permissions:

  • chatreplay.admin.*
  • chatreplay.create

That's all for my side and thank you in advance.

@dannegm dannegm changed the title [Request] API/Command to create new Chat Lines [Request] API/Command to create new Chat Messages Dec 4, 2019
@Trikolon
Copy link
Member

Trikolon commented Dec 4, 2019

I'm glad you like the plugin!
The plugin subscribes to the regular player chat event, so if your NPC implementation emits regular chat events it will record those. That would be the most seamless way to integrate this.

If that's not feasible, I'd accept a PR for an API method for adding messages. I think adding a command to create the messages isn't a clean approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants