-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
executable file
·52 lines (37 loc) · 927 Bytes
/
Program.cs
File metadata and controls
executable file
·52 lines (37 loc) · 927 Bytes
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
28
29
30
31
32
33
34
35
36
37
38
39
40
using System;
using Ucu.Poo.DiscordBot.Domain;
using Ucu.Poo.DiscordBot.Services;
namespace Ucu.Poo.DiscordBot.Program
{
/// <summary>
/// Un programa que implementa un bot de Discord.
/// </summary>
internal static class Program
{
/// <summary>
/// Punto de entrada al programa.
/// </summary>
private static void Main(string[] args)
{
if (args.Length != 0)
{
DemoFacade(args);
}
else
{
DemoBot();
}
}
private static void DemoFacade(string[] args)
{
if (args.Length > 0)
{
Console.WriteLine(Facade.Instance.GetUserInfo(args[0]));
}
}
private static void DemoBot()
{
BotLoader.LoadAsync().GetAwaiter().GetResult();
}
}
}