From 6f39c42c7b1cfd2d0e2a8bb293f84fd40c968144 Mon Sep 17 00:00:00 2001 From: Lamp Date: Mon, 13 Aug 2018 22:47:26 -0700 Subject: [PATCH] ~ --- .gitignore | 1 + src/colorroles.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.gitignore b/.gitignore index 35c0657..c63d6fa 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules/ .DS_Store test.sh .vscode +tmp \ No newline at end of file diff --git a/src/colorroles.js b/src/colorroles.js index 8249a5e..fc9388d 100755 --- a/src/colorroles.js +++ b/src/colorroles.js @@ -119,6 +119,10 @@ commands.color = { role = colorRoles.findColorRole(message.member); } } + /*if (!role) { // somehow this happened + let a = 0; + while (!(role = colorRoles.findColorRole(message.member)) && a++ < 10) {} + }*/ role.setColor(str.toUpperCase()); message.react("🆗"); }