Skip to content

Discord Relay&Report is a simple plugin designed for syncing the chat on your CS2 Server and also includes a report function.

Notifications You must be signed in to change notification settings

imp87/discord-relay-report

Repository files navigation

Discord Relay&Report

Discord Relay&Report is a simple plugin designed for syncing the chat on your CS2 Server and also includes a report function.

Features

  • Sync Server Chat via Discord Webhook
  • Report Function via Discord Webhook
  • Custom Config via the configs/discord-relay-report/config.json
  • Locates players country and adding a flag by his name (by using an external API)

Languages

Requirements 📋

  1. Metamod 2.X
  2. Swiftly

Installation

  1. Download and install Metamod 2.X.
  2. Download and install Swiftly.
  3. Download the Discord Relay&Report Plugin from the releases page.
  4. Extract the files into addons/swiftly

Configuration

Edit the JSON configuration file addons/swiftly/configs/plugins/discord-relay-report/config.json with your configuration

{
    "enableChatsync": true,
    "enableReport": true,
    "webhookChatync": "",
    "webhookReport": "",
    "imageReport": "",
    "discordMessage": "We just received a new report of a suspect",
    "menucolor": "00B869",
    "reasons": [
        "Cheating",
        "Aimbot",
        "Wallhack",
        "Bunnyhop"
    ]
}

Configuration Parameters

  • enableChatsync: Set to true to enable chat synchronization via Discord webhook. Set to false to disable it.
  • enableReport: Set to true to enable the report functionality via Discord webhook. Set to false to disable it.
  • webhookChatync: The URL of the Discord webhook where chat messages will be sent.
  • webhookReport: The URL of the Discord webhook where player reports will be sent.
  • imageReport: (Optional) The URL of an image to include in the report messages.
  • discordMessage: The default message content for the report notifications.

Usage

  • Report: !report <playername> <reason>

Special Thanks

✦ Special thanks to @skuzzis for helping me

Contributors

@imp87

@Blue

@DeadPoolCS2

Contributors

About

Discord Relay&Report is a simple plugin designed for syncing the chat on your CS2 Server and also includes a report function.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages