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

please add a table to record players chat #270

Open
willyautoman opened this issue Jan 20, 2023 · 4 comments · May be fixed by #272
Open

please add a table to record players chat #270

willyautoman opened this issue Jan 20, 2023 · 4 comments · May be fixed by #272
Assignees
Labels
plugin feature request Feature request related to the SquadJS plugins

Comments

@willyautoman
Copy link

I'm a chinese developer ,when i host a squad server sometimes, players in the server will insult other players through the chat box, we need to record the information of these people through the plug-in, and then ban them through our joint Ban system

@willyautoman willyautoman added the plugin feature request Feature request related to the SquadJS plugins label Jan 20, 2023
@DrKittens
Copy link
Contributor

Feature exists, configre the DiscordChat plugin in config.json

Remove the "SquadChat" entry from the ignorechats key if you want to log everything.

@ect0s
Copy link
Contributor

ect0s commented Jan 20, 2023

I believe, due to the reference to 'tables' that this is a request to store it via mysql/sqlite etc.

Its a simple enough thing to do.

If I have time this weekend I'll add it to DBlog or make another plugin specifically for it.

@ect0s
Copy link
Contributor

ect0s commented Jan 21, 2023

@willyautoman Are you using the DB-log plugin? I assume you want this in mysql.

I'm thinking a simple schema:

Time
Steamid
Chat (TeamChat/SquadChat/AdminChat)
Message

But I could also add in cross references to

Match
Server
Player (SteamUser)

@ect0s ect0s linked a pull request Jan 21, 2023 that will close this issue
@ect0s
Copy link
Contributor

ect0s commented Jan 21, 2023

@willyautoman Linked pull request will close this once its merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plugin feature request Feature request related to the SquadJS plugins
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants