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

Commit

Permalink
Initial Commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mrepol742 committed Oct 29, 2023
1 parent bfe5f26 commit c724d07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4754,11 +4754,11 @@ async function ai(api, event) {
}
} else if (query.startsWith("cleandata")) {
if (isMyId(event.senderID)) {
let a = await cleanjs.do(groups);
let a = await cleanjs.array(groups);
if (a != null) {
groups = a;
}
let a1 = await cleanjs.do(users);
let a1 = await cleanjs.array(users);
if (a1 != null) {
users = a1;
}
Expand Down
6 changes: 2 additions & 4 deletions src/clean.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
const fs = require("fs");

async function do(groups) {
async function array(groups) {
try {

let ids = [];
Expand All @@ -22,5 +20,5 @@ async function do(groups) {


module.exports = {
do
array
}

0 comments on commit c724d07

Please sign in to comment.