Beispiel #1
0
        public AdminEditCommand(TomeChat chat)
        {
            _chat = chat;

            Tables.Add("command", new Table(Database.GetDatabase("tomestone.db"), "commands", "id", "reply"));
            Tables.Add("reply", new Table(Database.GetDatabase("tomestone.db"), "replies", "id", "reply"));
        }
Beispiel #2
0
        public UserBribeCommand(TomeChat chat)
        {
            _chat = chat;

            _tables.Add("bribe", new Table(Database.GetDatabase("tomestone.db"), "votes", "id", "name", "count", "vote"));
            _tables.Add("dragon", new Table(Database.GetDatabase("dragon.db"), "dragon", "dragonId", "user", "coins"));
        }
Beispiel #3
0
        public AdminDeleteCommand(TomeChat chat)
        {
            _chat = chat;

            _tables.Add("command", new Table(Database.GetDatabase("tomestone.db"), "commands", "id"));
            _tables.Add("reply", new Table(Database.GetDatabase("tomestone.db"), "replies", "id"));
            _tables.Add("quote", new Table(Database.GetDatabase("tomestone.db"), "quotes", "id"));
        }
Beispiel #4
0
        public void Start()
        {
            RememberCredentials();

            chatMain = View.Main;
            chatMods = View.Mods;

            Chat = new TomeChat(View.Login, View.OAuth, View.Main, View.Mods);
        }
Beispiel #5
0
        public UserQuoteCommand(TomeChat chat)
        {
            _chat = chat;

            _tables.Add("quote", new Table(Database.GetDatabase("tomestone.db"), "quotes", "id", "addedBy", "trigger", "reply"));
        }
Beispiel #6
0
 public AdminTomeoutCommand(TomeChat chat)
 {
     _blacklist = new Dictionary <string, DateTime>();
     _chat      = chat;
 }
Beispiel #7
0
        public UserTeachCommand(TomeChat chat)
        {
            _chat = chat;

            Tables.Add("reply", new Table(Database.GetDatabase("tomestone.db"), "replies", "id", "addedBy", "trigger", "reply"));
        }
 public AdminInfoCommand(TomeChat chat)
 {
     _chat = chat;
 }
 public UserHighlightCommand(TomeChat chat)
 {
     _chat = chat;
 }
Beispiel #10
0
 public AdminAddCommand(TomeChat chat)
 {
     _chat = chat;
 }
 public AdminCheckCommand(ChatDatabase database, TomeChat chat)
 {
     _database = database;
     _chat     = chat;
 }