Exemple #1
0
        public async Task DisableCommand(ulong guildID, string cmdName)
        {
            SQLProcessor sql = new SQLProcessor(DatabaseConnection.connection);

            if (CommandDisabled(cmdName))
            {
                return;
            }

            await sql.ExecuteQueryAsync($"INSERT INTO blacklistedcommands (guildID, command) VALUES ({guildID}, '{cmdName}')");
        }
Exemple #2
0
 private async Task UpdateGuildPrefix(ulong guildId, string newPrefix)
 {
     SQLProcessor sql = new SQLProcessor(DatabaseConnection.connection);
     await sql.ExecuteQueryAsync($"UPDATE guildprefix SET prefix='{newPrefix}' WHERE guildID={guildId}");
 }
Exemple #3
0
 private async Task InsertGuildPrefix(ulong guildId, string newPrefix)
 {
     SQLProcessor sql = new SQLProcessor(DatabaseConnection.connection);
     await sql.ExecuteQueryAsync($"INSERT INTO guildprefix (guildID, prefix) VALUES ({guildId}, '{newPrefix}')");
 }
Exemple #4
0
 public async Task EnableCommand(ulong guildID, string cmdName)
 {
     SQLProcessor sql = new SQLProcessor(DatabaseConnection.connection);
     await sql.ExecuteQueryAsync($"DELETE FROM blacklistedcommands WHERE guildID={guildID} and command='{cmdName}'");
 }