Adding initial samples
This commit is contained in:
71
samples/dotnetbot/Program.cs
Normal file
71
samples/dotnetbot/Program.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
using System;
|
||||
|
||||
namespace DotnetBot
|
||||
{
|
||||
public static class Program
|
||||
{
|
||||
public static void Main(string[] args)
|
||||
{
|
||||
string message = "";
|
||||
if (args.Length < 1)
|
||||
{
|
||||
message = "Welcome to .NET Core!";
|
||||
} else
|
||||
{
|
||||
foreach (string item in args)
|
||||
{
|
||||
message += item;
|
||||
}
|
||||
}
|
||||
Console.WriteLine(GetBot(message));
|
||||
}
|
||||
|
||||
public static string GetBot(string message)
|
||||
{
|
||||
string bot = "\n" + " " + message;
|
||||
bot += @"
|
||||
__________________
|
||||
\
|
||||
\
|
||||
....
|
||||
....'
|
||||
....
|
||||
..........
|
||||
.............'..'..
|
||||
................'..'.....
|
||||
.......'..........'..'..'....
|
||||
........'..........'..'..'.....
|
||||
.'....'..'..........'..'.......'.
|
||||
.'..................'... ......
|
||||
. ......'......... .....
|
||||
. ......
|
||||
.. . .. ......
|
||||
.... . .......
|
||||
...... ....... ............
|
||||
................ ......................
|
||||
........................'................
|
||||
......................'..'...... .......
|
||||
.........................'..'..... .......
|
||||
........ ..'.............'..'.... ..........
|
||||
..'..'... ...............'....... ..........
|
||||
...'...... ...... .......... ...... .......
|
||||
........... ....... ........ ......
|
||||
....... '...'.'. '.'.'.' ....
|
||||
....... .....'.. ..'.....
|
||||
.. .......... ..'........
|
||||
............ ..............
|
||||
............. '..............
|
||||
...........'.. .'.'............
|
||||
............... .'.'.............
|
||||
.............'.. ..'..'...........
|
||||
............... .'..............
|
||||
......... ..............
|
||||
.....
|
||||
|
||||
";
|
||||
return bot;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user