diff --git a/css/master.css b/css/master.css
index cf51559a..73809a54 100644
--- a/css/master.css
+++ b/css/master.css
@@ -505,3 +505,11 @@
#inviteBtn:hover {
background-color: #393939;
}
+
+#usernameBtn {
+ cursor: pointer;
+}
+
+#usernameBtn:hover {
+ background-color: #393939;
+}
diff --git a/index.html b/index.html
index 5824b1a9..57e99f82 100644
--- a/index.html
+++ b/index.html
@@ -61,6 +61,14 @@
discord-livebot
+
+
+
+
diff --git a/js/app.js b/js/app.js
index ccb03ca4..cc5e88ee 100644
--- a/js/app.js
+++ b/js/app.js
@@ -21,8 +21,7 @@ function create() {
document.getElementById("usernameBox")
.addEventListener("keyup", function(event) {
if (event.keyCode === 13) {
- options('username', document.getElementById('usernameBox').value);
- document.getElementById("usernameBox").value = '';
+ changeUname()
}
});
@@ -619,6 +618,11 @@ function typing() {
}
+function changeUname() {
+ options('username', document.getElementById('usernameBox').value);
+ document.getElementById("usernameBox").value = '';
+}
+
function options(type, content) {
switch(type) {
case 'username':
@@ -627,8 +631,8 @@ function options(type, content) {
break;
case 'invite':
- selectedChan.createInvite().then(invite => {command('Created invite for '+invite.guild.name+' \nhttps://discord.gg/'+invite.code);})
-
+ selectedChan.createInvite().then(invite => {command('Created invite for '+invite.guild.name+' \nhttps://discord.gg/'+invite.code);})//options.unique = true, options.temporary = document.getElementById('temporary-inviteBox').value, options.maxUses = document.getElementById('maxuses-inviteBox').value, options.maxAge = document.getElementById('maxage-inviteBox').value).then(invite => {command('Created invite for '+invite.guild.name+' \nhttps://discord.gg/'+invite.code);})
+ document.getElementById('usernameBox').value
break;
}
}