Coder Social home page Coder Social logo

cs2-discordstatus's Introduction

Discord Status

This CSSharp plugin allows monitoring server status from discord with cute embeds and nameformat support.

Requirments

CounterStrikeSharp >= 101

Usage

  • Install plugin like u use to
  • Make a webhost server and put connect.php there if you have one(you can use free webhosting like 000webhost)* not required
  • Do the samething for map img url (or see below)
  • Load the plugin
  • Change the config (/addons/counterstrikesharp/configs/plugins/DiscordStatus)

Commands

  • css_request - @notify members to join the server
  • css_update_names - Update nameformat and updating the embed with the provided argument after the command. exmaple usage: css_update_names {FLAG}{CLAN} {NAME}: {K} - {D}
  • css_update_settings - read and update settings from config without reloading the plugin

Features

  • Displaying server status on discord
  • Showing Country Flags
  • Custom Name Formatting
  • Sorting Players by CT and T and with their respective team colors (not working if using flags)
  • Sorting Players by kills
  • different displays on Idle, with players, with players not inlined, requesting players, offline.
  • Showing Connect ip:port
  • Embeded links directing to automatically lauch steam and joins server
  • Configurable update intervals to release serverloads
  • Automatically update config and rename the old config

Config

{
  "GeneralConfig": {
    "ServerIP": "77.77.77.77:27027",
    "UpdateInterval": 30,
    "PHPURL": "https://okand.com/connect.php"
  },
  "WebhookConfig": {
    "NotifyMembersRoleID": 0,
    "NewMapNotification": true,
    "GameEndScoreboard": true,
    "NotifyWebhookURL": "https://discord.com/api/webhooks/",
    "RequestPlayersURL": "https://discord.com/api/webhooks/,https://discord.com/api/webhooks/",
    "ScoreboardURL": "https://discord.com/api/webhooks/",
    "StatusWebhookURL": "https://discord.com/api/webhooks/",
    "StatusMessageID": 0
  },
  "EmbedConfig": {
    "Title": "my cs2 server",
    "MapImg": "{MAPNAME}.jpg.png.gif",
    "OfflineImg": ".jpg.png.gif",
    "IdleImg": ".jpg.png.gif",
    "RequestImg": ".jpg.png.gif",
    "EmbedColor": "#00ffff",
    "RandomColor": true,
    "MapField": "🗺️ㅤMap",
    "OnlineField": "👥ㅤOnline",
    "CTField": "CT :ㅤ{SCORE}",
    "TField": "T :ㅤ{SCORE}",
    "MVPField": " 👑ㅤMVP ",
    "NameFormat": "{FLAG}{CLAN} {NAME}: {K} - {D}",
    "EmbedSteamLink": true,
    "RequestPlayers": "is requesting players to join the server",
    "MapChange": "Map changed to {mapname}, Join Now",
    "ServerEmpty": "Server Empty",
    "JoinHere": "👈 Join Here",
    "PlayersInline": true
  },
  "ConfigVersion": 5
}
NAME TAG FORMAT:
{NAME} = NAMES
{K} = KILLS
{D} = DEATHS
{A} = ASSISTS
{KD} = KD Ratio
{CLAN} = Clantag
{RC} = Region Code
{CC} = Country Code
{FLAG} = Country Flag

Note

For imageurl u can also use "https://image.gametracker.com/images/maps/160x120/csgo/{MAPNAME}.jpg"

Server Empty(Custom Img):

image

Server With Players(Custom Map Img / Custom Img):

image

Server With Players(With Steam hyperlinks):

image

Scoreboard Snapshot

image

Request Players:

image

Roadmap

  • Adding scoreboard snapshots

cs2-discordstatus's People

Contributors

tianxsky avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.