public UserVoteCommand(TomeChat chat)
        {
            _chat = chat;

            _tables.Add("vote", new Table(Database.GetDatabase("tomestone.db"), "votes", "id", "name", "count", "vote"));
            _tables.Add("dragon", new Table(Database.GetDatabase("dragon.db"), "dragon", "dragonId", "user", "coins"));
        }
        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"));
        }
        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);
        }
 public UserHighlightCommand(TomeChat chat)
 {
     _chat = chat;
 }
 public AdminTomeoutCommand(TomeChat chat)
 {
     _blacklist = new Dictionary<string, DateTime>();
     _chat = chat;
 }
 public AdminAddCommand(TomeChat chat)
 {
     _chat = chat;
 }
Beispiel #8
0
        public UserTeachReply(TomeChat chat)
        {
            _chat = chat;

            Tables.Add("reply", new Table(Database.GetDatabase("tomestone.db"), "replies", "id", "addedBy", "trigger", "reply"));
        }
        public UserQuoteCommand(TomeChat chat)
        {
            _chat = chat;

            _tables.Add("quote", new Table(Database.GetDatabase("tomestone.db"), "quotes", "id", "addedBy", "trigger", "reply"));
        }
 public AdminCheckCommand(ChatDatabase database, TomeChat chat)
 {
     _database = database;
     _chat = chat;
 }
 public AdminInfoCommand(TomeChat chat)
 {
     _chat = chat;
 }