From 1bef4db2b6d2f916aa19d8a15634f6fe1d4ef980 Mon Sep 17 00:00:00 2001 From: Alee Date: Fri, 20 Apr 2018 20:03:47 -0400 Subject: Added new things in setprefix --- commands/setprefix.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'commands/setprefix.js') 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: setprefix `) @@ -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 = { -- cgit v1.2.3