2017-11-18 18:29:15 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ShiftOS.Main.Terminal.Commands
|
|
|
|
|
{
|
|
|
|
|
public class TestStory : TerminalCommand
|
|
|
|
|
{
|
|
|
|
|
public override string Name { get; } = "teststory";
|
|
|
|
|
public override string Summary { get; } = "Debug Command - Test the intro";
|
2017-11-19 00:32:37 +00:00
|
|
|
|
public override string Usage { get; } = "teststory";
|
2017-11-18 18:29:15 +00:00
|
|
|
|
public override bool Unlocked { get; set; } = false;
|
|
|
|
|
|
|
|
|
|
public override void Run(params string[] parameters)
|
|
|
|
|
{
|
2017-11-18 23:32:11 +00:00
|
|
|
|
var r = new Random();
|
|
|
|
|
WriteLine($"Incoming connection from {r.Next(0, 256)}.{r.Next(0, 256)}.{r.Next(0, 256)}.{r.Next(0, 256)}...");
|
|
|
|
|
Task.Delay(2000);
|
2017-11-18 18:29:15 +00:00
|
|
|
|
WriteLine("User set alias as \"DevX\".");
|
|
|
|
|
Thread.Sleep(2000);
|
|
|
|
|
WriteLine("User <DevX> has connected successfully!");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|