Skip to content

PhantomFR/SCP-SL-AtlantiaBreach-Info

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SCPDiscord

SCPDiscord links features from your SCP:SL server console to Discord channels, such as printing out server events to Discord and using server commands through Discord. It is incredibly customisable as you can read more about below.

I was going to wait with making this plugin until SCP:SL updates to .NET 4.6 from the current .NET 3.5 but apperently that has been delayed (indefinitely?). This means I can't use a C# Discord API directly from the plugin and thus have to seperate it into two different programs.

They send messages along like this: SCPDiscordPlugin -> SCPDiscordBot -> Discord Channel

Features:

  • Ability to log any ServerMod event to Discord. All are optional and can be toggled individually.

  • Complete multi-channel support letting you post different events to different channels. All can be individually re-routed.

  • Support for MultiAdmin managed servers, each sub-server can post to the same channel, different channels or even different bots and different Discord servers.

  • You can for instance have one public channel for each of your servers where things like player joins, kills, round starts and round ends are posted. You could then add one channel for each server visible only to moderators, showing things like admin actions and logging who attacks who on each server to check for teamkillers.

  • Ability to use different commands through Discord, currently kick, ban and unban. To my knowledge this is the only plugin that currently offers banning offline players, so hackers leaving as soon as they see an admin coming on is no longer an issue. It is also the only plugin I'm aware of that lets you unban players.

  • The ability to completely customise every single message from the plugin and use different languages. More info here.

  • Player count is displayed in the bot activity field. The bot's status changes from dnd when the scp server is on but the bot server is on, away when there are no players on a server and online when a server has players.

  • An auto-updating channel topic with information such as number of players, server uptime, ip and gameplay information.

Upcoming features

It will be possible to sync ranks from discord to the game, letting you automate things like patreon rewards and moderator positions.

Installation and configuration

Check out the Wiki tab for all guides on installation and configs.

Bot commands


Setavatar

Command usage:

setavatar <url>/<path> - Sets the avatar picture for your bot. (Administrator permission in Discord required)

Variables:

  • <url>/<path> - Either a local path or url to an image to set as your bot's avatar.

Ban

Command usage:

ban <steamid> <duration> (reason) - Bans a player from the server. (Ban permission in Discord required)

Variables:

  • <steamid> - The SteamID of the player to be banned.

  • <duration> - The duration of the ban, time formatting info below.

  • (reason) - Optional reason for the ban.

Example: +ban 76561138022363616 4d Bad man. Bans the player for four days with the reason "Bad man."


Unban

Command usage:

unban <steamid/ip> - Unbans a player from the server. (Ban permission in Discord required)

Variables:

  • <steamid/ip> - The SteamID or IP of the player to be unbanned.

Kick

Command usage:

kick <steamid> (reason) - Kicks a player from the server. (Kick permission in Discord required)

Variables:

  • <steamid> - The SteamID of the player to be kicked.
  • (reason) - Optional reason for the ban.

Kickall

Command usage:

kickall (reason) - Kicks all players from the server with a message, useful for server shutdowns. (Kick permission in Discord required)

Variables:

  • (reason) - Reason to be displayed to all players kicked.

Show and hide tag using ToggleTag plugin

Command usage:

hidetag <steamid> - Hides the tag of a player. (Requires manage nicknames permission in Discord)

showtag <steamid> - Shows the tag of a player. (Requires manage nicknames permission in Discord)

Variables:

  • <steamid> - The SteamID of the player to change tag of.

Any other console commands

Command usage:

Enter the console command starting with your command prefix. Example with command prefix +: +roundrestart (Administrator permission in Discord required).


Time

Time is expressed in the format NumberUnit where unit is a unit of time and number is the amount of that time unit, for example 6M represents six months.

Valid time units:

  • s - Seconds

  • m - Minutes

  • h - Hours

  • d - Days

  • w - Weeks

  • M - Months

  • y - Years

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published