Ejemplo 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"));
        }
Ejemplo 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"));
        }
Ejemplo 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"));
        }
Ejemplo n.º 4
0
        public void Start()
        {
            RememberCredentials();

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

            Chat = new TomeChat(View.Login, View.OAuth, View.Main, View.Mods);
        }
Ejemplo n.º 5
0
 public UserHighlightCommand(TomeChat chat)
 {
     _chat = chat;
 }
Ejemplo n.º 6
0
 public AdminTomeoutCommand(TomeChat chat)
 {
     _blacklist = new Dictionary<string, DateTime>();
     _chat = chat;
 }
Ejemplo n.º 7
0
 public AdminAddCommand(TomeChat chat)
 {
     _chat = chat;
 }
Ejemplo n.º 8
0
        public UserTeachReply(TomeChat chat)
        {
            _chat = chat;

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

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