From baf48644db4d0d3405138cbd088c6e563eb20616 Mon Sep 17 00:00:00 2001
From: unknown <loic.bersier1@gmail.com>
Date: Tue, 18 Sep 2018 01:40:27 +0200
Subject: [PATCH 1/5] auto response are now canse insensitive

---
 index.js | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index 1a36c33c..1180a667 100644
--- a/index.js
+++ b/index.js
@@ -65,8 +65,9 @@ client.registry
 
 //  Auto respond to messages
     client.on("message", (message) => {
-        if(responseObject[message.content]) {
-          message.channel.send(responseObject[message.content]);
+        let message_content = message.content.toLowerCase();
+        if(responseObject[message_content]) {
+          message.channel.send(responseObject[message_content]);
         }
       });
 

From ab75cc5f922fe8749fba7cec029a18bdbd4cd3e8 Mon Sep 17 00:00:00 2001
From: unknown <loic.bersier1@gmail.com>
Date: Tue, 18 Sep 2018 01:49:50 +0200
Subject: [PATCH 2/5] Uptime now show hours/minutes/seconds

---
 commands/utility/stats.js | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/commands/utility/stats.js b/commands/utility/stats.js
index 28d05c72..1f1b10bc 100644
--- a/commands/utility/stats.js
+++ b/commands/utility/stats.js
@@ -10,6 +10,12 @@ module.exports = class MeowCommand extends Command {
     }
 
     async run(message) {
-        return message.channel.send(`Servers: \`${this.client.guilds.size}\`\nChannels: \`${this.client.channels.size}\`\nUsers: \`${this.client.users.size}\`\nBot uptime: \`${process.uptime()}\``);
+        let totalSeconds = (this.client.uptime / 1000);
+        let hours = Math.floor(totalSeconds / 3600);
+        totalSeconds %= 3600;
+        let minutes = Math.floor(totalSeconds / 60);
+        let seconds = totalSeconds % 60;
+        let uptime = `${hours} hours, ${minutes} minutes and ${seconds} seconds`;
+        return message.channel.send(`Servers: \`${this.client.guilds.size}\`\nChannels: \`${this.client.channels.size}\`\nUsers: \`${this.client.users.size}\`\nBot uptime: \`${uptime}\``);
     }
 };
\ No newline at end of file

From 81c42a4d293ac82295f69340247db2db3c567fee Mon Sep 17 00:00:00 2001
From: unknown <loic.bersier1@gmail.com>
Date: Tue, 18 Sep 2018 01:52:03 +0200
Subject: [PATCH 3/5] added days

---
 commands/utility/stats.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/commands/utility/stats.js b/commands/utility/stats.js
index 1f1b10bc..2ec374e4 100644
--- a/commands/utility/stats.js
+++ b/commands/utility/stats.js
@@ -11,11 +11,12 @@ module.exports = class MeowCommand extends Command {
 
     async run(message) {
         let totalSeconds = (this.client.uptime / 1000);
+        let days = Math.floor(totalSeconds / 86400);
         let hours = Math.floor(totalSeconds / 3600);
         totalSeconds %= 3600;
         let minutes = Math.floor(totalSeconds / 60);
         let seconds = totalSeconds % 60;
-        let uptime = `${hours} hours, ${minutes} minutes and ${seconds} seconds`;
+        let uptime = `${days} days, ${hours} hours, ${minutes} minutes and ${seconds} seconds`;
         return message.channel.send(`Servers: \`${this.client.guilds.size}\`\nChannels: \`${this.client.channels.size}\`\nUsers: \`${this.client.users.size}\`\nBot uptime: \`${uptime}\``);
     }
 };
\ No newline at end of file

From 329ce58dc9fab5e4f02011ae3dc4726e8972ed62 Mon Sep 17 00:00:00 2001
From: unknown <loic.bersier1@gmail.com>
Date: Tue, 18 Sep 2018 02:18:54 +0200
Subject: [PATCH 4/5] Changed groups name and added some info about server

---
 commands/utility/server.js | 24 +++++++++++++-----------
 index.js                   | 16 ++++++++--------
 2 files changed, 21 insertions(+), 19 deletions(-)

diff --git a/commands/utility/server.js b/commands/utility/server.js
index 75c11af5..95742901 100644
--- a/commands/utility/server.js
+++ b/commands/utility/server.js
@@ -5,21 +5,23 @@ module.exports = class ServerCommand extends Command {
         super(client, {
             name: 'server',
             group: 'utility',
+            guildOnly: 'true',
             memberName: 'server',
-            description: 'very yes',
+            description: 'Show some stats about the server',
         });
     }
 
     async run(message) {
-        const serverStatsEmbed = new Discord.RichEmbed()
-    .setColor('#0099ff')
-    .setTitle('Stats of the server')
-    .setDescription('Some description here')
-    .setThumbnail(message.guild.iconURL)
-    .addField(`Member: **${message.guild.memberCount}** \n Channel: **${message.guild.channels}**`)
-    .addBlankField()
-    .setTimestamp()
-
-    message.say(serverStatsEmbed);
+    const addEmbed = {
+        color: 0x0099ff,
+        title: 'Stats of the server',
+        thumbnail: {
+        url: `${message.guild.iconURL}`,
+    },
+        description: `Member: **${message.guild.memberCount}** \nChannel number: **${message.guild.channels.size}**\nGuild created at **${message.guild.createdAt}**\nOwner: **${message.guild.owner}**`,
+        timestamp: new Date(),
+    };
+    
+    message.say({ embed: addEmbed });
     }
 };
\ No newline at end of file
diff --git a/index.js b/index.js
index 1180a667..911ba518 100644
--- a/index.js
+++ b/index.js
@@ -16,10 +16,10 @@ const client = new CommandoClient({
 client.registry
     .registerDefaultTypes()
     .registerGroups([
-        ['fun',     'Fun commands'],
-        ['utility', 'Some useful commands'],
-        ['admin',   'Commands to make admin life easier'],
-        ['owner',   'Commands the owner can use to manage the bot'],
+        ['fun',     'Fun'],
+        ['utility', 'Utility'],
+        ['admin',   'Admins'],
+        ['owner',   'Owner'],
     ])
     .registerDefaultGroups()
     .registerDefaultCommands()
@@ -40,27 +40,27 @@ client.registry
     client.on("guildCreate", guild => {
         console.log(`${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`);
         const channel = client.channels.get('487766113292124160');
-        const exampleEmbed = {
+        const addEmbed = {
             color: 0x008000,
             title: 'Someone added the bot! :D YAY',
             description: `${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`,
             timestamp: new Date(),
         };
         
-        channel.send({ embed: exampleEmbed });
+        channel.send({ embed: addEmbed });
     })
 //  When bot get kicked from a guild send embeds with details about it.
     client.on("guildDelete", guild => {
         console.log(`***BOT KICKED***\n${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}\n***BOT KICKED***`);
         const channel = client.channels.get('487766113292124160');
-        const exampleEmbed = {
+        const kickEmbed = {
             color: 0xFF0000,
             title: 'Someone removed the bot :(',
             description: `${guild.name}\n${guild.memberCount} users\nOwner: ${guild.owner}`,
             timestamp: new Date(),
         };
         
-        channel.send({ embed: exampleEmbed });
+        channel.send({ embed: kickEmbed });
     })
 
 //  Auto respond to messages

From 44186ed2c6a49ac32e03a66f2d074080ac9c8b94 Mon Sep 17 00:00:00 2001
From: unknown <loic.bersier1@gmail.com>
Date: Tue, 18 Sep 2018 02:24:15 +0200
Subject: [PATCH 5/5] removed timestamps

---
 commands/utility/server.js | 1 -
 1 file changed, 1 deletion(-)

diff --git a/commands/utility/server.js b/commands/utility/server.js
index 95742901..53d23069 100644
--- a/commands/utility/server.js
+++ b/commands/utility/server.js
@@ -19,7 +19,6 @@ module.exports = class ServerCommand extends Command {
         url: `${message.guild.iconURL}`,
     },
         description: `Member: **${message.guild.memberCount}** \nChannel number: **${message.guild.channels.size}**\nGuild created at **${message.guild.createdAt}**\nOwner: **${message.guild.owner}**`,
-        timestamp: new Date(),
     };
     
     message.say({ embed: addEmbed });