aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.Main/Terminal/Commands/TestStory.cs
blob: 1fd1795856cb9b132eefb62f7e1d203d0a502f3d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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";
        public override string Usage { get; } = "n/a";
        public override bool Unlocked { get; set; } = false;

        public override void Run(params string[] parameters)
        {
            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);
            WriteLine("User set alias as \"DevX\".");
            Thread.Sleep(2000);
            WriteLine("User <DevX> has connected successfully!");
        }
    }
}