You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"!verify-admin must be called with a user tag, followed by an optional parameter and optional description. For example: `!verify-admin @Astrid -unv Is an Impasta`\n\nThe full list of accepted triggers can be found by sending `!verify-admin -help`";
57
-
slacker.send_chat(current,messageBody,true);
58
-
return;// Stop execution
59
-
}
60
-
61
-
// 3. Extract User ID
62
-
userId=paramArr[0].replace(/[<>@]/g,"");
63
-
paramArr.shift();// Remove the user tag from the array
64
-
65
-
// 4. Validate Flags
66
-
varhasV=paramArr.indexOf("-v")>-1;
67
-
varhasUnv=paramArr.indexOf("-unv")>-1;
68
-
69
-
if(hasV&&hasUnv){
70
-
messageBody=
71
-
"Please only provide one verify parameter in your message. Verification message ignored.";
72
-
slacker.send_chat(current,messageBody,true);
73
-
return;// Stop execution
74
-
}
75
-
76
-
// 5. Determine Verification Status
77
-
// Flags override the default based on the command name
78
-
if(hasUnv){
79
-
verificationStatus=false;
80
-
}elseif(hasV){
81
-
verificationStatus=true;
82
-
}else{
83
-
// No flag provided, use the default based on command name
"!verify-admin must be called with a user tag, followed by an optional parameter and optional description. For example: `!verify-admin @Astrid -unv Is an Impasta`\n\nThe full list of accepted triggers can be found by sending `!verify-admin -help`";
58
+
slacker.send_chat(current,messageBody,true);
59
+
return;
60
+
}
61
+
62
+
// 3. Extract User ID
63
+
userId=paramArr[0].replace(/[<>@]/g,"");
64
+
paramArr.shift();
65
+
66
+
// 4. Validate Flags
67
+
varhasV=paramArr.indexOf("-v")>-1;
68
+
varhasUnv=paramArr.indexOf("-unv")>-1;
69
+
70
+
if(hasV&&hasUnv){
71
+
messageBody=
72
+
"Please only provide one verify parameter in your message. Verification message ignored.";
73
+
slacker.send_chat(current,messageBody,true);
74
+
return;
75
+
}
76
+
77
+
// 5. Determine Verification Status
78
+
// Flags override the default based on the command name
0 commit comments