-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Program.cs
52 lines (41 loc) · 2.28 KB
/
Program.cs
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
41
42
43
44
45
46
47
48
49
50
51
52
using Microsoft.Owin.Hosting;
using System;
using System.Text;
namespace MechaChat.API
{
public interface ICommand
{
void Execute();
}
public static class Program
{
const string url = "http://api.mecha.chat";
public static Random random = new Random();
static void Main(string[] args)
{
using (WebApp.Start<Startup>(url))
{
Console.WriteLine("-------------------------------------------------------------------------------------------------------------------");
Console.WriteLine(
" _______ _______ _______ _______ _______ _______ _________ _______ _______ _________\n" +
"( )( ____ \\( ____ \\|\\ /|( ___ )( ____ \\|\\ /|( ___ )\\__ __/ ( ___ )( ____ )\\__ __/\n" +
"| () () || ( \\/| ( \\/| ) ( || ( ) || ( \\/| ) ( || ( ) | ) ( | ( ) || ( )| ) ( \n" +
"| || || || (__ | | | (___) || (___) || | | (___) || (___) | | | | (___) || (____)| | | \n" +
"| |(_)| || __) | | | ___ || ___ || | | ___ || ___ | | | | ___ || _____) | | \n" +
"| | | || ( | | | ( ) || ( ) || | | ( ) || ( ) | | | | ( ) || ( | | \n" +
"| ) ( || (____/\\| (____/\\| ) ( || ) ( || (____/\\| ) ( || ) ( | | | | ) ( || ) ___) (___\n" +
"|/ \\|(_______/(_______/|/ \\||/ \\|(_______/|/ \\||/ \\| )_( |/ \\||/ \\_______/\n"
);
Console.WriteLine($"[API] Server Started: {url}\n");
Console.WriteLine("-------------------------------------------------------------------------------------------------------------------\n");
// Command Logic
Handlers.CommandHandler.Sync();
}
}
public static string DecodeURIParameters(this string encodedStr)
{
var decodedStr = Uri.UnescapeDataString(encodedStr);
return decodedStr.ToString();
}
}
}