From 84091d6e944fe84b3d2218ef63c1fc6ee62d7fad Mon Sep 17 00:00:00 2001 From: Thomas Lake Date: Tue, 16 Apr 2019 10:24:07 +0100 Subject: [PATCH] Add prompts to recolour and deleteColour functions --- mw.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mw.js b/mw.js index c830f83..e81ce9e 100644 --- a/mw.js +++ b/mw.js @@ -154,7 +154,7 @@ function applyColours(word) { // simple fucntion to recolour users function recolour() { - var userinput = mw.input(); + var userinput = mw.input("Enter username, optionally followed by a space and a colour code: "); var inputs = userinput.split(" "); if (inputs[1]) { @@ -171,7 +171,7 @@ register("recolour",recolour,"Recolour a user. If you enter just a username, ran // function to delete a user from the colours 'db' function deleteColour() { - var userinput = mw.input(); + var userinput = mw.input("Enter username: "); delete usercolours[userinput]; mw.store["usercolours"] = JSON.stringify(usercolours); //update the mw.store object } -- GitLab