Skip to content

Commit

Permalink
fixing mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
Kyou-Izumi committed May 25, 2023
1 parent 8f5b2f8 commit 11f254f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 16 deletions.
25 changes: 9 additions & 16 deletions lib/DataCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function userNotify(cache){
type: "input",
message: "Enter user ID you want to be notified via Webhook/Call/Direct Message",
async validate(ans) {
if(wayNotify.includes(1) || wayNotify.includes(2)) {
if(waynotify.includes(1) || waynotify.includes(2)) {
if(ans.match(/^\d{17,19}$/)) {
if(ans == client.user.id) return "Selfbot account ID is not valid for Call/Direct Message option"
const target = client.users.cache.get(ans);
Expand Down Expand Up @@ -306,14 +306,9 @@ Please note that we do not take any responsibility for accounts being banned due
)
if(!res) process.exit(1)
}
musicpath = await getResult(music1(cache?.musicPath));
while (true) {
if (!musicpath || musicpath == "none") musicpath = await getResult(music1(cache?.musicPath));
else if (fs.statSync(musicpath).isDirectory()) musicpath = await getResult(music2(musicpath));
else break;
}
let account
while(!client) {
const account = await getResult(listAccount(data))
account = await getResult(listAccount(data))
if (account === 0) {
const token = await getResult(getToken());
log("Checking Account...", "i");
Expand Down Expand Up @@ -348,14 +343,12 @@ Please note that we do not take any responsibility for accounts being banned due
}

waynotify = await getResult(wayNotify(cache?.wayNotify));
if(waynotify.includes(3)) {
musicpath = await getResult(music1(cache?.musicPath));
while (true) {
if (!typeof musicpath == "string") await getResult(music1(cache?.musicPath));
else if (fs.statSync(musicpath).isDirectory()) musicpath = await getResult(music2(musicpath));
else break;
}
}
musicpath = await getResult(music1(cache?.musicPath));
while (true) {
if (!musicpath || musicpath == "none") musicpath = await getResult(music1(cache?.musicPath));
else if (fs.statSync(musicpath).isDirectory()) musicpath = await getResult(music2(musicpath));
else break;
}
if(waynotify.includes(0)) webhookurl = await getResult(webhook(cache?.webhookURL));
if(waynotify.includes(0) || waynotify.includes(1) || waynotify.includes(2)) usernotify = await getResult(userNotify(cache?.userNotify));
autocaptcha = await getResult(captchaAPI(cache?.captchaAPI))
Expand Down
3 changes: 3 additions & 0 deletions lib/SelfbotWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ export async function main() {
try {
var cmd = ["hunt", "battle"]
global.channel.sendSlash(global.owoID, cmd[randomInt(0, cmd.length)]);
global.totalcmd++
log(`/${cmd}`);
global.lastTime = Date.now();
break;
} catch (error) {
log("Failed To Send Slash Command", "e");
Expand Down

0 comments on commit 11f254f

Please sign in to comment.