Running command over Discord?
Hey Guys,
I have a Question. I want to edit the Rustcord Plugin that im able to run a command over Discord.
I want to add a user that Types a command ("!auth HisSteamID").

with the command he should now be added to the group Discord.

A command i run with 
server.RunCommand("command");​

i think.

In Rustcord i searched for the following lines.

		private void Discord_MessageCreate(Message message)
		{
			Settings.Channel channelidx = FindChannelById(message.channel_id);
			if (channelidx == null)
				return;
			if (channelidx.Lobby == true)
				return;
			if (message.author.id == _settings.Botid) return;
			if (message.content[0] == '!')
			{
				string cmd;
				string msg;
				try
				{
					cmd = message.content.Split(' ')[0].ToLower();
					if (string.IsNullOrEmpty(cmd.Trim()))
						cmd = message.content.Trim().ToLower();
				}
				catch
				{
					cmd = message.content.Trim().ToLower();
				}

				cmd = cmd.Remove(0, 1);

				msg = message.content.Remove(0, 1 + cmd.Length).Trim();
				cmd = cmd.Trim();

				DiscordToGameCmd(cmd, msg, message.author, message.channel_id);
			}
			else
			{
				PrintToChat("[DISCORD] " + message.author.username + ": " + message.content);
			}
		}

		private void DiscordToGameCmd(string command, string param, User author, string channelid)
		{
			if (command == "players")
			{
				string listStr = string.Empty;
				var pList = BasePlayer.activePlayerList;
				int i = 0;
				foreach (var player in pList)
				{
					listStr += player.displayName + "[" + i++ + "]";
					if (i != pList.Count)
						listStr += ",";
				}
				Channel.GetChannel(_client, channelid, chan =>
				{
					// Connected Players [{count}/{maxplayers}]: {playerslist}
					chan.CreateMessage(_client, Translate("Discord_PlayersResponse", new Dictionary<string, string>
					{
						{ "count", Convert.ToString(BasePlayer.activePlayerList.Count) },
						{ "maxplayers", Convert.ToString(ConVar.Server.maxplayers) },
						{ "playerslist", listStr }
					}));
				});
			}
			if (command == "auth")
			{
				//Here i think i have to add some code but i dont know what exactly,
				//or maybe a function above where the thing with the i the author id and the "!" is?
			}

		}

i dont know how i run that command to add the player if he write "!auth hisSteamID" to the Group discord.
And is there a way that the discord user can run the command only once? by logging his Discord ID or something?
Or by giving him the role from Player to Member or something that only the "Player" can run this command?
Sorry my english is bad and im desperated :/

I hope someone can help me and sorry if iam not in the right forum section.

I just got a request to add this to the bot I have been working on today. I'll let you know if/when I finish it. If it's something you're interested in.
Yes that would be nice :) but if another person has a solution im intressted too :)