mirror of
https://github.com/Jetsparrow/karmabot.git
synced 2026-01-21 09:06:09 +03:00
29 lines
603 B
C#
29 lines
603 B
C#
using System;
|
|
|
|
namespace JetKarmaBot
|
|
{
|
|
public class App
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
Current = new App(new Config("karma.cfg.json"));
|
|
|
|
Console.ReadKey();
|
|
}
|
|
|
|
public static App Current { get; private set; }
|
|
|
|
public App(Config cfg)
|
|
{
|
|
Config = cfg;
|
|
Db = new Db(Config);
|
|
Watcher = new JetKarmaBot(Config, Db);
|
|
Console.WriteLine("JatKarmaBot started!");
|
|
}
|
|
|
|
Config Config { get; }
|
|
Db Db { get; }
|
|
JetKarmaBot Watcher { get; }
|
|
}
|
|
}
|