Code Monkey home page Code Monkey logo

discordintegration's Introduction

DiscordIntegration

A bot and server plugin to allow server logs to be sent to Discord channels, and for server commands to be run via the Discord bot.

Minimum requirements

EXILED 6.0.0++

Installation

  1. Extract DiscordIntegration.dll and its dependencies from Plugin.tar.gz.
  2. Place DiscordIntegration.dll inside the EXILED Plugins folder like any other plugin and its dependencies in the Plugins/dependencies folder.
  3. Download the DiscordIntegration.Bot (Linux) or DiscordIntegration.Bot.exe (Windows) file, and place it anywhere within the system running the SL server.

How to create a Discord bot

  1. Go to https://discord.com/developers/applications and create a new application.
  2. Inside of the application page under "settings" click Bot & build the bot.
  3. After creating the bot you can change the bots username and avatar if you wish.

Bot token is located on the Bot page under username, Do NOT share the token because people can control the bot if they get it.

How to invite the bot to your discord

  1. Go to "OAuth2" tab of the bot application on the above link.
  2. Click the boxes labled "bot" and "application.commands".
  3. Give the bot appropriate permissions (this is usually either Admin, or at the very least Send Messages).
  4. Copy & paste the oauth2 URL link provided at the bottom of the page into a browser window.
  5. The new page will ask you which server to invite the bot to, and once you select the correct server, click Authorize.

Note that before generating the link, check that you have applications.commands scope.

How to run the bot

Open the bot once to let it automatically generate config.json file. Remember to always wrap configs with quotation marks, even if it's not necessary for strings.

Fill out the bot's config for the bot token, discord server id, and channel IDs, then start the bot.

Windows

  1. Double-click the .exe file.

Linux

  1. Run cd path/to/bot replacing path/to/bot with the path of where the extracted bot is located.
  2. Run ./DiscordIntegration.Bot.

How configure the execution of game commands through Discord

  1. Open your bot config.json file.

  2. Add role IDs and list every command they can execute. You can use .* to permit to that role ID to use all game commands without restrictions.

  "ValidCommands": {
    "1": {
      "953784342595915779": [
        "di"
      ]
    }
  },
  1. Never duplicate commands. Higher roles on your Discord server will be able to use lower roles commands as well, based on the position of the roles.

Available commands

Command Description Arguments Permission Example
di playerlist Gets the list of players in the server. di.playerlist di playerlist
di stafflist Gets the list of staffers in the server. di.stafflist di stafflist

discordintegration's People

Contributors

dentytxr avatar dgvagabond avatar infinitydevtech avatar iopietro avatar jatc252 avatar jeppevinkel avatar jesus-qc avatar joker-119 avatar pintthedragon avatar vladislav-cs avatar wafelowski avatar xroier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

discordintegration's Issues

[Enhancement]Inline codeblocks for names

Because of the *s and _s in some nicknames discord tries to highlight logs in bold and cursive

One way to solve it is to wrap EVERY message in multiline code block and remove every ` from the arguments

However wrapping just the nicknames into inline codeblocks and removing every ` looks much more cleaner

[SUGGESTION] Add client console command logging back

Ever since a recent release of discord integration came out, client console logging through the RA command logs channel has been stopped logging. For us, we'd find it really beneficial to get client console logging back to see who's entering which commands as we have a custom plugin which is currently still quite buggy and we're trying to find out whether someone has initiated something or not which is quite hard without these logs.

I'm not sure whether removing these were intentional or not. If they weren't: is there a possibility of adding it back? If they were: is there a possibility of adding a bool to the config to set whether they show up or not?

Many thanks. I'm sorry if this isn't the right place to post this, I couldn't think of anywhere else.

[ERROR]

[WARN] [DiscordIntegration] [NET] Connecting to MYIP:PORT*
[ERROR] [DiscordIntegration] [NET] An error occurred connecting: Unable to establish a connection as the target computer expressly denied that connection.

Error while starting Discord Bot

This is the error I'm seeing. I checked my configuration twice:

[steam@localhost dcbot2]$ node discordIntegration.js
/home/steam/dcbot2/discordIntegration.js:183
        console.error(`[NET][ERROR] An error has occurred while receiving data from ${socket?.address()?.address}:${socket?.address()?.port}: ${exception}`);
                                                                                             ^

SyntaxError: Unexpected token .
    at Module._compile (internal/modules/cjs/loader.js:723:23)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3)
[steam@localhost dcbot2]$

Fix pls or help

I have an error, when running the exe. In bot console there is a error "Exception.ToString()". And in my server console there are two types of errors(Exiled version 2.1.0):
[2020-08-21 22:03:29.123 +03:00] [DEBUG] [DiscordIntegration_Plugin] System.Runtime.Serialization.SerializationException: Binary stream '161' does not contain a valid BinaryHeader. Possible causes are invalid stream or object version change between serialization and deserialization.
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run () [0x0012f] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00069] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x000a2] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
at DiscordIntegration_Plugin.ProcessSTT.ReceiveData () [0x00032] in <4e8680b8d48a413e85f97e41744a01f4>:0

[2020-08-21 22:04:46.186 +03:00] [ERROR] [DiscordIntegration_Plugin] System.NullReferenceException: Object reference not set to an instance of an object
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.ReadObjectNull (System.Runtime.Serialization.Formatters.Binary.BinaryHeaderEnum binaryHeaderEnum) [0x0005f] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.__BinaryParser.Run () [0x000fd] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize (System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Runtime.Serialization.Formatters.Binary.__BinaryParser serParser, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00069] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Boolean isCrossAppDomain, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x000a2] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck, System.Runtime.Remoting.Messaging.IMethodCallMessage methodCallMessage) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler, System.Boolean fCheck) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream, System.Runtime.Remoting.Messaging.HeaderHandler handler) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize (System.IO.Stream serializationStream) [0x00000] in <437ba245d8404784b9fbab9b439ac908>:0
at DiscordIntegration_Plugin.ProcessSTT.ReceiveData () [0x00032] in <4e8680b8d48a413e85f97e41744a01f4>:0
I wish you help me.

Bot only logs when a player begins to use an item

Examples of this being Medkits and SCP207 when you start using them right-clicking cancels the usage which the bot doesn't catch. As a side note to this, you can spam left and right clicks with a medkit or similar allowing you to spam log channel with useless nonsense which could be cleaned up better with "whatever event x{number of same consecutive event}".

[BUG] Logs showing false information about uncuffing

Describe the bug
Discord Integration is showing false logs for who uncuffed a certain user and is causing us large issues. For example, Person 1 cuffs Person 2. Person 3 then uncuffs Person 2, and in Discord Integration logs it shows up as Person 1 uncuffing Person 2. This has led to many false bans on our server that we were unaware of until now.

To Reproduce
Steps to reproduce the behavior:

  1. Get 3 people
  2. Cuff one person
  3. Get the third person to uncuff the cuffed user
  4. Itll show in logs that the person was uncuffed by the user that originally cuffed them

Expected behavior
The logs show that the user was uncuffed by Person 3 and NOT person 1.

Server logs
n/a

EXILED Version ("latest" is not a version):
alpha.84

Results of show plugins command in console:
This will occur on any server with discord integration

Additional context
n/a

Suggestion: add a separate channel for punishment logs. Would be really useful for staff.

Similar to how the bot logs RA commands and game logs in separate channels, add a channel for punishment logs.

This would be really useful for staff since they can quickly scan in that channel for previous punishments before making a decision on the current one. Not only this, they could also review all punishments and check whether they were appropriate, since others can be lost in the game logs. (sometimes in the game logs if you kick/ban 2 or more people at once itll only show the ban message for the first one banned)

Possible info ideas for each punishment:

Banned username:
Banned user steam id:
Staff issuing the ban:
Time/Date banned:
Length of ban:
Reason provided when banned (if applicable):

Thanks for reading and I hope this suggestion is taken into account, since I've seen it requested from quite a few people & I'm sure others would agree that this is a very much needed addition to Discord Integration.

GuildID doesnt work.

Hello,
My bots are on two different servers: one for logging the other just to show the playercount. Now the bot worked perfectly when it was on one server. But when it is on two servers it does not write any logs in my log server. I have setup GuildID correctly.

The bot does say: DequeueSend Channel not found!

Kind regards,
Oyplap

[Error]Bot launch error

When I write "npm install" to the console, it gives me errors
Screenshot of the error: Click
And also when I run the bot "node discordIntegration.js"
Screenshot of the error: Click

Permission denied.

When I run the bot everything is fine but when I run commands that are higher then permission 0, I get permission denied. I have the role and the role id is set up properly. Windows 10 64 bit (if this matters)

[BUG]

Describe the bug
The Discord Intergration isnt working and is giving a problem in config

Expected behavior
For it to work.

Server logs
https://pastebin.com/uHYPttih

EXILED Version
3.0.5

Results of show plugins command in console:

Additional context
Add any other context about the problem here.

# breaks logs

I'm not sure where to start as I am fairly new to programming and can't properly read the complexity of the code however if you use # it completely breaks the logs. Anything that is before the # will be erased from existence. Not only does this make discord usernames break and only show their 4 number handle but also allows for mods running commands and completely erasing their tracks by putting a # after their command.

[issue]

The issue with the latest version and latest exiled.

Exception:
[2020-04-13 05:52:58.368 +02:00] [ERROR] [EXILED]: Plugin Discord Integration threw an exception while enabling System.TypeLoadException: Could not resolve type with token 010000af (from typeref, class/assembly OnElevatorInteract, ) at EXILED.PluginManager.OnEnable () [0x00019] in <dbc43024854b48d89695df941486a713>:0

This wasn't on my server but it should be looked into.

[BUG] Kill logs not being recorded

Describe the bug
Kill events are not being logged in discord integration. If this is a known bug please let me know, I thought I'd just report it here since it's making moderation much harder for us. Everything else is being logged fine.

To Reproduce
Steps to reproduce the behavior:

  1. Use discord integration
  2. Kill someone
  3. Kill event isnt logged

Expected behavior
The logs allow kills to be recorded.

Server logs
n/a

EXILED Version ("latest" is not a version):
4.0.0

Results of show plugins command in console:
n/a

Additional context
n/a

Revoking SyncedRoles doesn't work

I am using this plugin for logging, playercount and remote commands. I also started using the plugin to sync roles with Discord. I added all the roles we have in SCP and Discord with the di add rol (id of role in discord) (name of role in SCP) command

I then added users with the di add user command. This works fine, I don't even have to restart the server, but the next time this user joins the server (or the round restarts) the new role is granted.

Problem is, when I either remove the role in Discord, or run the di remvee user command, it won't remove their status in SCP, I have to restart the server for the changes to take effect.

I tried to avoid that part by using this plugin. Is there something I'm doing wrong?

Worth mentioning:
I tried running the di reload command, but even though it says "[3:38:30 PM] Bot configs reload request sent successfully. Language reloaded successfully! Bot synced roles reload request sent successfully." It didn't actually change anything

If I check the synced_roles.yml file, the changes are visible, but not reflected in the game. The user still has their special badge and their permissions to use RA.

Fix, maybe: Channel Update

https://github.com/galaxy119/DiscordIntegration/blob/2a2dbbcafc92f18819688774e2c8372a19cc6336/DiscordIntegration/Plugin.cs#L160

To solve the channel update error, you have to increase the update time simply to 5 minutes or more, since Discord has a ratelimit to update the topics of 2 calls every 10 minutes. I know that showing players every 10 minutes is very stupid, but I could do a counter of rounds, kills or TK, so that the statistics are interesting.
On my server I have some counters like that, but I haven't managed to get the statistics to be saved, since surely I have to use litleDB, but I don't know how to use it.

public IEnumerator<float> UpdateStatus()
		{
			for (;;)
			{
				ProcessSTT.SendData($"updateStatus {PlayerManager.players.Count}/{ConfigFile.ServerConfig.GetInt("max_players")}", 0);
				yield return Timing.WaitForSeconds(5f);
			}
		}

image

Disable commands if GuildID =/= Config GuildID

Currently, if you add a bot to a server Y, while in config server X is specified and you try to use a command on server Y it will break the bot, it won't respond to any commands on server X unless you remove him from Y and restart.

DiscordIntegration_Bot.exe issues

DiscordIntegration_Bot.exe file cannot print exception string because exception.tostring() fails
This is displayed and it cannot be executed.

Error when using pterodactyl panel

[14:00:22] [ERROR] [DiscordIntegration_Plugin] System.InvalidOperationException: Tcp Client not connected!
at DiscordIntegration_Plugin.ProcessSTT.ReceiveData () [0x00013] in <7380954c0d81418c90be33a2d3777a91>:0

I have no idea what it means. This only happens when i enable egg mode on both the bot and plugin config. The bot won't connect to the server what so ever.

Schermafbeelding 2021-01-04 152257

Address already in use

System.Net.Sockets.SocketException (0x80004005): Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in <6bc04dcac0a443ee834a449c98b8ed9d>:0
at System.Net.Sockets.TcpListener.Start (System.Int32 backlog) [0x00044] in <6bc04dcac0a443ee834a449c98b8ed9d>:0
at System.Net.Sockets.TcpListener.Start () [0x00000] in <6bc04dcac0a443ee834a449c98b8ed9d>:0
at DiscordIntegration_Bot.ProcessSTT.Init (DiscordIntegration_Bot.Program program) [0x00097] in <0241de0b471a465cb51bb0491f53e8c8>:0
at DiscordIntegration_Bot.Bot.b__11_0 () [0x00000] in <0241de0b471a465cb51bb0491f53e8c8>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in :0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in :0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in :0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in :0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in :0
[ERROR] FATAL UNHANDLED EXCEPTION: System.Net.Sockets.SocketException (0x80004005): Address already in use
at System.Net.Sockets.Socket.Bind (System.Net.EndPoint localEP) [0x00043] in <6bc04dcac0a443ee834a449c98b8ed9d>:0
at System.Net.Sockets.TcpListener.Start (System.Int32 backlog) [0x00044] in <6bc04dcac0a443ee834a449c98b8ed9d>:0
at System.Net.Sockets.TcpListener.Start () [0x00000] in <6bc04dcac0a443ee834a449c98b8ed9d>:0
at DiscordIntegration_Bot.ProcessSTT.Init (DiscordIntegration_Bot.Program program) [0x00097] in <0241de0b471a465cb51bb0491f53e8c8>:0
at DiscordIntegration_Bot.Bot.b__11_0 () [0x00000] in <0241de0b471a465cb51bb0491f53e8c8>:0
at System.Threading.ThreadHelper.ThreadStart_Context (System.Object state) [0x00014] in :0
at System.Threading.ExecutionContext.RunInternal (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00071] in :0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state, System.Boolean preserveSyncCtx) [0x00000] in :0
at System.Threading.ExecutionContext.Run (System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, System.Object state) [0x0002b] in :0
at System.Threading.ThreadHelper.ThreadStart () [0x00008] in :0

EXILED Loading Error

Installed the plugin and found the following error in the LocalAdmin logs

[ERROR] [Exiled.Loader] Plugin "DiscordIntegration" threw an exception while enabling: System.TypeLoadException: Could not resolve type with token 0100003a (from typeref, class/assembly Exiled.Events.EventArgs.UpgradingItemsEventArgs, Exiled.Events, Version=2.8.0.0, Culture=neutral, PublicKeyToken=null)

Game starts successfully but DiscordIntegration doesn't
What am i doing wrong here?

[BUG] Null value of syncedRoles properties

Describe the bug
The loadSyncedRoles function sets the properties of the syncedRoles variable to null if these properties are not specified in the config or their values are empty, which leads to errors when using the "di add user 76561198202269403@steam 219862538844635136" command.

An error has occurred while receiving data from 127.0.0.1:9000: TypeError: Cannot set properties of null (setting '76561198202269403@steam')

To Reproduce
Steps to reproduce the behavior:

  1. Specify an empty value for the "user_id_to_discord_id" parameter in the "synced-roles.yml" config.
  2. Restart bot.
  3. Enter the command "di add user 76561198202269403@steam 219862538844635136".

Expected behavior
The new value of parameter "user_id_to_discord_id" must be written in config "synced-roles.yml".

Server logs
N/a

EXILED Version ("latest" is not a version):
3.2.1

Results of show plugins command in console:
N/a

Additional context
To solve this problem, you have to replace line syncedRoles = tempSyncedRoles; in file "discordIntegration.js" 273 with syncedRoles = {roleToGroup: tempSyncedRoles["roleToGroup"] ?? {}, userIdToDiscordId: tempSyncedRoles["userIdToDiscordId"] ?? {}};

Connection Refused

I have two servers that run off the exiled hosting system, one of the bots works fine, the other doesn't. I have changed the configs to match the port and have the IP as the Localhost '127.0.0.1' however I keep experiencing this error:
'[2021-03-15 02:11:12.823 +00:00] [WARN] [DiscordIntegration] [NET] Connecting to 127.0.0.1:7054.
[2021-03-15 02:11:13.797 +00:00] [ERROR] [DiscordIntegration] [NET] An error has occurred while connecting: Connection refused'
Want to know if this is something in the Bots code or configs that can be causing this or is this a server-side issue that I have to get in contact with the exiled hosting team to rectify.

Is it possible to add a new feature?

It would be cool to add the ability not to log the admin actions of certain administrators, for example, I have many trusted administrators whom I trust, but even more beginners, and in order not to clog the logs and better monitor them, it would be cool to have such an opportunity.

[BUG] RNR command via DI does not work

Describe the bug
When executing the RNR(restartnextround) command from discord nothing happens, there is no response from the server but the bot logs say that it was executed.

To Reproduce

Just use the command.

Server logs
image

[4/9/2021 5:59:55 p. m.] Server Console has run the command players.
[4/9/2021 6:03:47 p. m.] Server Console has run the command rnr.
[4/9/2021 6:03:50 p. m.] Server Console has run the command restartnextround.

7777-RAlog.txt
Bot Logs

[DISCORD][DEBUG] SrLicht#9292 (230179802340917248) executed a command: [rnr]
[DISCORD][DEBUG] "[17:52:06] :keyboard: SrLicht#9292 (230179802340917248@discord) [None] used command: rnr" message has been sent in "🧰「comandos-cerb-3」" (735224742461571072).
[DISCORD][DEBUG] SrLicht#9292 (230179802340917248) executed a command: [restartnextround]
[DISCORD][DEBUG] Bot activity has been set to "0/45".
[DISCORD][DEBUG] "[17:52:09] :keyboard: SrLicht#9292 (230179802340917248@discord) [None] used command: restartnextround" message has been sent in "🧰「comandos-cerb-3」" (735224742461571072)

image

EXILED Version ("latest" is not a version):
Version 3.0.0-alpha.80

Results of show plugins command in console:

[2021-09-04 18:00:51.822 -03:00] Total number of plugins: 10
Enabled plugins: 9
Disabled plugins: 1

Exiled.Events:
        - Author: Exiled Team
        - Version: 3.0.0.0
        - Required Exiled Version: 3.0.0.0
        - Prefix: exiled_events
        - Priority: Highest
CerberusTweaks:
        - Author: Cerberus Team: Uriel, Licht, Beryl
        - Version: 3.0.5
        - Required Exiled Version: 3.0.0
        - Prefix: cerberus_tweaks
        - Priority: Medium
DiscordIntegration:
        - Author: Exiled Team
        - Version: 4.0.4.0
        - Required Exiled Version: 3.0.0
        - Prefix: discord_integration
        - Priority: Medium
Exiled.Permissions:
        - Author: Exiled Team
        - Version: 3.0.0.0
        - Required Exiled Version: 3.0.0.0
        - Prefix: exiled_permissions
        - Priority: Medium
StaffLogs:
        - Author: Cerberus Team: Uriel, Licht y Andrés
        - Version: 1.0.0.0
        - Required Exiled Version: 3.0.0.0
        - Prefix: staff_logs
        - Priority: Medium
Exiled.CustomItems:
        - Author: Exiled Team
        - Version: 3.0.0.0
        - Required Exiled Version: 3.0.0.0
        - Prefix: exiled_custom_items
        - Priority: Medium
Better-SCP-079:
        - Author: SrLicht
        - Version: 1.0.3
        - Required Exiled Version: 3.0.0.0
        - Prefix: better079
        - Priority: Medium
CerberusGamemodes:
        - Author: Cerberus Team: Uriel, Licht, Beryl
        - Version: 1.5.1
        - Required Exiled Version: 3.0.0.0
        - Prefix: cerberusgamemodes
        - Priority: Medium
Exiled.CreditTags:
        - Author: Babyboucher20 & iRebbok & Exiled Team
        - Version: 3.0.0.0
        - Required Exiled Version: 3.0.0.0
        - Prefix: exiled_credits
        - Priority: Medium
Exiled.Updater:
        - Disabled
        - Author: Exiled.Updater
        - Version: 3.1.1.0
        - Required Exiled Version: 3.0.0.0
        - Prefix: exiled_updater
        - Priority: Medium

Additional context
Although the command is executed and in the logs of the RA command it comes out, apparently it does not work because I have to manually run RNR from the server console to use it.

[SUGGESTION] Add logging of item-pickup

This could be useful for server owners that are either testing plugins which do things when an item is picked up, or for no-KOS servers to help moderate if someone got shot for picking up a gun. It's fine if you don't add it, but just wanted to suggest. Have a great day! :)

[BUG] Exiled is not loading DiscordIntegration.dll

Describe the bug
The plugin simply don't work because Exiled is not loading the plugin and the command "show plugins" don't show the DiscordIntegration even if the plugin and it's dependencies are in the correct folders.

To Reproduce
Steps to reproduce the behavior:

  1. Put DiscordIntegration.dll and it's dependencies in the correct folders
  2. Start the server
  3. Look into the console and see that DiscordIntegration.dll is not loaded

Expected behavior
DiscordIntegration.dll be loaded

Server logs
My server didn't generate a log.

EXILED Version ("latest" is not a version): 3.0.0-alpha.84

Results of show plugins command in console:

[2021-09-20 16:06:25.067 -03:00] Total number of plugins: 13
Enabled plugins: 13
Disabled plugins: 0

Exiled.Events:
- Author: Exiled Team
- Version: 3.0.0.0
- Required Exiled Version: 3.0.0.0
- Prefix: exiled_events
- Priority: Highest
SCPUtils:
- Author: Terminator_97#0507
- Version: 3.2.0
- Required Exiled Version: 3.0.0
- Prefix: s_c_p_utils
- Priority: Medium
Exiled.CustomItems:
- Author: Exiled Team
- Version: 3.0.0.0
- Required Exiled Version: 3.0.0.0
- Prefix: exiled_custom_items
- Priority: Medium
Exiled.CreditTags:
- Author: Babyboucher20 & iRebbok & Exiled Team
- Version: 3.0.0.0
- Required Exiled Version: 3.0.0.0
- Prefix: exiled_credits
- Priority: Medium
Admin Tools:
- Author: Originally by Galaxy119. Modifications by KoukoCocoa & Thomasjosif
- Version: 3.0.3
- Required Exiled Version: 3.0.0
- Prefix: AT
- Priority: Medium
Exiled.Updater:
- Author: Exiled.Updater
- Version: 3.1.1.0
- Required Exiled Version: 3.0.0.0
- Prefix: exiled_updater
- Priority: Medium
Common Utilities:
- Author: Galaxy119
- Version: 4.1.2.0
- Required Exiled Version: 3.0.0
- Prefix: CommonUtilities
- Priority: Medium
Exiled.Permissions:
- Author: Exiled Team
- Version: 3.0.0.0
- Required Exiled Version: 3.0.0.0
- Prefix: exiled_permissions
- Priority: Medium
SCP1162:
- Author: xRoier
- Version: 2.2.3
- Required Exiled Version: 3.0.0
- Prefix: scp1162
- Priority: Medium
Stalky106:
- Author: RogerFK
- Version: 3.0.0.0
- Required Exiled Version: 3.0.0.0
- Prefix: ST106
- Priority: Medium
WaitAndChillReborn:
- Author: Michal78900
- Version: 3.0.2
- Required Exiled Version: 3.0.0
- Prefix: wait_and_chill_reborn
- Priority: Medium
RespawnTimer:
- Author: Michal78900
- Version: 3.0.0
- Required Exiled Version: 3.0.0
- Prefix: respawn_timer
- Priority: Medium
SupplyDrop:
- Author: Wafel, KadeDev, JesusQC
- Version: 3.0.0
- Required Exiled Version: 3.0.0
- Prefix: SD
- Priority: Medium

Additional context
I'm using the most updated version of DiscordIntegration.
Prints of my plugins/dependencies folder:

image
image
image

Connection refused

Hi there, I wanted to set up the bot for a server, but i always get this response

[2021-04-07 23:00:56.866 +00:00] [WARN] [DiscordIntegration] [NET] Connecting to 127.0.0.1:9000.
[2021-04-07 23:00:57.438 +00:00] [ERROR] [DiscordIntegration] [NET] An error has occurred while connecting: Connection refused

would be nice, if somebody could help

Decontamination log spam

Light containment decontamination started and the bot then spammed the logs with the message "Deconamination has begun."
qaULLKwRBz

Fix `Plugins` folder.

string pluginsPath = Path.Combine(appData, "Plugins");
fix on
string pluginsPath = Path.Combine(appData, "EXILED", "Plugins");

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.