From 18a1050c083ad899092559d529887cf4f24ad585 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Mon, 29 Dec 2014 23:43:48 +0000 Subject: [PATCH] added file for decoding commands --- decode.cs | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 decode.cs diff --git a/decode.cs b/decode.cs new file mode 100644 index 0000000..1e5c4c4 --- /dev/null +++ b/decode.cs @@ -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") + { + + } + } + } +}