mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-24 10:46:14 +10:00
cleaned up anagram.js, combined module exports.
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
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;
|
||||
module.exports = {
|
||||
name = "Change Prefix",
|
||||
alias =['changeprefix', 'prefix'],
|
||||
helptext = "Changes the bots prefix for the server",
|
||||
permissions =["ADMINISTRATOR"],
|
||||
category = 'admin',
|
||||
args =["new-prefix"],
|
||||
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;
|
||||
}
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user