added file for decoding commands
This commit is contained in:
parent
40fd7e4274
commit
18a1050c08
1 changed files with 26 additions and 0 deletions
26
decode.cs
Normal file
26
decode.cs
Normal file
|
@ -0,0 +1,26 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Pithos
|
||||
{
|
||||
class decode
|
||||
{
|
||||
public decode() { }
|
||||
public string injectVariables(string text)
|
||||
{
|
||||
text = text.Replace("$user", Environment.UserName);
|
||||
return text;
|
||||
}
|
||||
public void command(string text)
|
||||
{
|
||||
string[] args = text.Substring(1).Split(' ');//splits string and removed character
|
||||
if (args[0] == "lock")
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue