Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #84 from mrepol742/master
Browse files Browse the repository at this point in the history
Initial Commit
  • Loading branch information
mrepol742 authored Feb 29, 2024
2 parents 72fe87b + ac2e1ad commit 699ce67
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4892,9 +4892,9 @@ async function ai(api, event) {
let user = getDataFromQuery(data);
let attem = getIdFromUrl(user);
if (/^[0-9]+$/.test(attem)) {
id = attem;
return unblockUser(api, event, attem);
} else if (/^[0-9]+$/.test(user)) {
id = user;
return unblockUser(api, event, user);
} else {
return sendMessage(api, event, "Houston! Unknown or missing option.\n\n Usage: unblock --user @mention" + "\n " + example[Math.floor(Math.random() * example.length)] + " unblock --user @Zero Two");
}
Expand Down

0 comments on commit 699ce67

Please sign in to comment.