dotnet-core/samples/dotnetsay/Program.cs

59 lines
2 KiB
C#
Raw Normal View History

2019-03-04 07:48:21 +01:00
using System;
2018-02-27 00:35:56 +01:00
string message = "Welcome to dotnetsay, a .NET tool!";
2018-02-27 00:35:56 +01:00
if (Console.IsInputRedirected)
{
message = Console.In.ReadToEnd();
}
else if (args.Length > 0)
{
message = string.Join(" ", args);
}
2018-02-27 00:35:56 +01:00
Console.WriteLine(GetBot());
2018-02-27 00:35:56 +01:00
string GetBot()
{
return @$"
{message}
2018-02-27 00:35:56 +01:00
__________________
\
\
....
....'
....
..........
.............'..'..
................'..'.....
.......'..........'..'..'....
........'..........'..'..'.....
.'....'..'..........'..'.......'.
.'..................'... ......
. ......'......... .....
. ......
.. . .. ......
.... . .......
...... ....... ............
................ ......................
........................'................
......................'..'...... .......
.........................'..'..... .......
........ ..'.............'..'.... ..........
..'..'... ...............'....... ..........
...'...... ...... .......... ...... .......
........... ....... ........ ......
....... '...'.'. '.'.'.' ....
....... .....'.. ..'.....
.. .......... ..'........
............ ..............
............. '..............
...........'.. .'.'............
............... .'.'.............
.............'.. ..'..'...........
............... .'..............
......... ..............
.....
";
}