From d1594156312e1050438e3f3173df8a324caa2f54 Mon Sep 17 00:00:00 2001
From: Supositware <loic.bersier1@gmail.com>
Date: Tue, 1 Jan 2019 03:49:37 +0100
Subject: [PATCH] Change bot username

---
 commands/owner/username.js | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)
 create mode 100644 commands/owner/username.js

diff --git a/commands/owner/username.js b/commands/owner/username.js
new file mode 100644
index 00000000..f8982de8
--- /dev/null
+++ b/commands/owner/username.js
@@ -0,0 +1,31 @@
+const { Command } = require('discord-akairo');
+
+class usernameCommand extends Command {
+    constructor() {
+        super('username', {
+            aliases: ['username'],
+            split: 'none',
+            category: 'owner',
+            ownerOnly: 'true',
+            args: [
+                {
+                    id: 'username',
+                    prompt: 'Wich username should i have?',
+                    type: 'string'
+                }
+            ],
+            description: {
+				content: 'Change the username of the bot',
+				usage: '[username]',
+				examples: ['haha no']
+			}
+        });
+    }
+
+    async exec(message, args) {
+        this.client.user.setUsername(args.username);
+        message.channel.send(`The username have been changed sucessfully to ${args.username}`);
+    }
+}
+
+module.exports = usernameCommand;
\ No newline at end of file