Initial commit

This commit is contained in:
2019-03-16 14:48:09 +11:00
commit 5dd1619545
32 changed files with 1757 additions and 0 deletions

16
commands/changeprefix.js Normal file
View File

@@ -0,0 +1,16 @@
exports.name = "Change Prefix"
exports.alias = ['changeprefix','prefix']
exports.helptext = "Changes the bots prefix for the server"
exports.permissions = ["ADMINISTRATOR"]
exports.category = 'admin'
exports.args = ["new-prefix"]
exports.command = (client, msg) => {
if (msg.suffix.length != 1) {
msg.reply("please only use 1 character")
return;
}
client.database.set_setting(msg.guild.id, "prefix", msg.suffix)
client.cachedserversettings.filter(function (server) {
return server.guildID == msg.guild.id;
})[0].prefix = msg.suffix;
}