Report command for Arcturus Morningstar, since the report function in Nitro doesn't work yet. https://stuxcraft.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Marvin 1dfc640375 Update version number 12 months ago
src/main Added modtool reporting + readme update 12 months ago
NitroReporting.iml V1 - initial commit 1 year ago
README.md Added modtool reporting + readme update 12 months ago
pom.xml Update version number 12 months ago

README.md

NitroReporting

Report command for Arcturus Morningstar, since the report function in Nitro doesn't work yet.

Allows user to report another user, by using the following command: :report [username] [reason]

Then it sends a message to a Discord webhook, including the chatlog of the current room. It will also create a ticket in modtools.

Configuration

For every text value a key is made in the emulator_texts table. For configuration there are 3 keys in the emulator_settings table:

  • report_command.chatlogs.amount | This sets the amount of chatlog lines which will be sent to Discord
  • report_command.discord_url | This should be set to your Discord webhook URL
  • report_command_cooldown_key | This key prevents users from spamming the command. It set's a timeout in seconds, before the same user can use the command again

You can add @everyone and @here to the text keys, to mention people in Discord. You can also tag roles, for more info see: https://birdie0.github.io/discord-webhooks-guide/other/discord_markdown.html and https://birdie0.github.io/discord-webhooks-guide/structure/allowed_mentions.html

Credits

ArpyAge - For SQL inspiration and the cooldown function 💗

k3kdude/Gelox for the Discord class 💗