Esempio n. 1
0
        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"));
        }
Esempio n. 2
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"));
        }
Esempio n. 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"));
        }
Esempio n. 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;
 }
Esempio n. 7
0
 public AdminAddCommand(TomeChat chat)
 {
     _chat = chat;
 }
Esempio n. 8
0
        public UserTeachReply(TomeChat chat)
        {
            _chat = chat;

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

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