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("🆗"); }