aboutsummaryrefslogtreecommitdiff
path: root/commands/setprefix.js
diff options
context:
space:
mode:
authorAlee <alee14498@gmail.com>2018-04-20 20:03:47 -0400
committerAlee <alee14498@gmail.com>2018-04-20 20:03:47 -0400
commit1bef4db2b6d2f916aa19d8a15634f6fe1d4ef980 (patch)
treef45cd20257382497d60281224a0270898765c2ee /commands/setprefix.js
parent6684a9a4f7c9cab8a5dfeb66c9a57f2040f93d71 (diff)
downloadAleeBot-1bef4db2b6d2f916aa19d8a15634f6fe1d4ef980.tar.gz
AleeBot-1bef4db2b6d2f916aa19d8a15634f6fe1d4ef980.tar.bz2
AleeBot-1bef4db2b6d2f916aa19d8a15634f6fe1d4ef980.zip
Added new things in setprefix
Diffstat (limited to 'commands/setprefix.js')
-rw-r--r--commands/setprefix.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/commands/setprefix.js b/commands/setprefix.js
index 730f5b5..39b03f6 100644
--- a/commands/setprefix.js
+++ b/commands/setprefix.js
@@ -18,6 +18,12 @@
*
* *************************************/
module.exports.run = async (client, message, args) => {
+ const moment = require('moment');
+ const log = message => {
+
+ console.log(`[${moment().format('YYYY-MM-DD HH:mm:ss')}] ${message}`);
+
+ };
const fs = require('fs');
if(!message.member.hasPermission("ADMINISTRATOR")) return message.reply('Sorry you need admin to set my prefix')
if(!args[0] || args[0 == "help"]) return message.reply(`Usage: <your prefix>setprefix <prefix>`)
@@ -33,6 +39,7 @@ module.exports.run = async (client, message, args) => {
})
message.reply(`AleeBot's Prefix in this guild is now \`${args[0]}\``);
+ log(`[i] The guild ${message.guild.name} has changed AleeBot's prefix to ${args[0]}`)
};
exports.conf = {