This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
pithos/decode.cs

32 lines
741 B
C#
Raw Normal View History

2014-12-29 23:43:48 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
2014-12-30 20:55:50 +00:00
using System.Drawing;
2014-12-29 23:43:48 +00:00
namespace Pithos
{
class decode
{
public decode() { }
public string injectVariables(string text)
{
text = text.Replace("$user", Environment.UserName);
return text;
}
2014-12-30 20:55:50 +00:00
2014-12-29 23:43:48 +00:00
public void command(string text)
{
string[] args = text.Substring(1).Split(' ');//splits string and removed character
2014-12-30 20:55:50 +00:00
2014-12-29 23:43:48 +00:00
if (args[0] == "lock")
{
2014-12-30 20:55:50 +00:00
Program.MW.display("Locking Software...", Color.Red);
Program.MW.Hide();
Program.UL.Show();
2014-12-29 23:43:48 +00:00
}
}
}
}