mekasu0124

Untitled

Mar 12th, 2024
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.87 KB | None | 0 0
  1. using System.Reflection;
  2.  
  3. namespace microsoft.botsay;
  4.  
  5. internal class Program
  6. {
  7.     static void Main(string[] args)
  8.     {
  9.         if (args.Length == 0)
  10.         {
  11.             var versionString = Assembly.GetEntryAssembly()?
  12.                                     .GetCustomAttribute<AssemblyInformationalVersionAttribute>()?
  13.                                     .InformationalVersion
  14.                                     .ToString();
  15.  
  16.             Console.WriteLine($"botsay v{versionString}");
  17.             Console.WriteLine("-------------");
  18.             Console.WriteLine("\nUsage:");
  19.             Console.WriteLine("  botsay <message>");
  20.             return;
  21.         }
  22.  
  23.         ShowBot(string.Join(' ', args));
  24.     }
  25.  
  26.     static void ShowBot(string message)
  27.     {
  28.         string bot = $"\n        {message}";
  29.         bot += @"
  30.            __________________
  31.                              \
  32.                               \
  33.                                  ....
  34.                                  ....'
  35.                                   ....
  36.                                ..........
  37.                            .............'..'..
  38.                         ................'..'.....
  39.                       .......'..........'..'..'....
  40.                      ........'..........'..'..'.....
  41.                     .'....'..'..........'..'.......'.
  42.                     .'..................'...   ......
  43.                     .  ......'.........         .....
  44.                     .    _            __        ......
  45.                    ..    #            ##        ......
  46.                   ....       .                 .......
  47.                   ......  .......          ............
  48.                    ................  ......................
  49.                    ........................'................
  50.                   ......................'..'......    .......
  51.                .........................'..'.....       .......
  52.             ........    ..'.............'..'....      ..........
  53.           ..'..'...      ...............'.......      ..........
  54.          ...'......     ...... ..........  ......         .......
  55.         ...........   .......              ........        ......
  56.        .......        '...'.'.              '.'.'.'         ....
  57.        .......       .....'..               ..'.....
  58.           ..       ..........               ..'........
  59.                  ............               ..............
  60.                 .............               '..............
  61.                ...........'..              .'.'............
  62.               ...............              .'.'.............
  63.              .............'..               ..'..'...........
  64.              ...............                 .'..............
  65.               .........                        ..............
  66.                .....
  67.        ";
  68.         Console.WriteLine(bot);
  69.     }
  70. }
Advertisement
Add Comment
Please, Sign In to add comment