-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.js
105 lines (88 loc) · 3.93 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
require('dotenv').config()
const { Client } = require('discord.js-selfbot-v13');
const config = require('./config.json')
// Config
const TOKEN = JSON.parse(process.env.TOKEN)
const reportChannelId = config.reportChannelId || config.channelId
const authorId = config.id, owoId = config.owoId
// Anticipate that the commands are not running at the same time
const random = (number = 10) => {
return Math.floor(Math.random() * number)
}
// Can run many bots depending on device capacity
for (const token of TOKEN) {
let statusBot = true
let statusAfk = false
let channelId = token.split('xxxxx')[1] || config.channelId // (Default channel for send owo)
// sendOwo function along with random extra time so it is not detected (trial)
const sendOwo = (text, time = 15000) => {
setTimeout(async () => {
if (!statusBot || statusAfk) return sendOwo(text, time)
console.log(`(${client.user.username}) send ${text}`)
let channel = client.channels.cache.get(channelId);
await channel.send(text)
sendOwo(text, time)
}, time + (random(9) * 1000))
}
const autoAfk = (time, on = 70000) => {
setTimeout(() => {
if (!statusBot) return autoAfk(1000)
statusAfk = !statusAfk
autoAfk(on)
}, time)
}
const client = new Client({
checkUpdate: false,
})
client.login(token.split('xxxxx')[0]);
client.on('ready', async () => {
console.log(`(${client.user.tag}) ready for auto farming`);
// client.user.setActivity({ name: "auto farming owo", type: 'PLAYING' })
// Owo hunting
sendOwo('owoh')
// Owo battle
sendOwo('owob')
// Owo coin flip
sendOwo(`owocf 1`, 300000)
// Owo pray
sendOwo('owopray', 300000)
// Owo cash
sendOwo('owocash', 60000)
// Auto afk
autoAfk(58000)
})
client.on('messageCreate', async (msg) => {
if (msg.author.id === String(owoId) || msg.author.id === String(config.authorId)) {
if (msg.content.toLowerCase().match(/human|captcha|dm|banned|https:\/\/owobot.com\/captcha|Beep|human\?/g) || msg.channel.type == 'dm') {
if (msg.content.match(new RegExp(`${client.user.username}`))) {
console.log(`(${client.user.username}) Owo need captcha`)
statusBot = false
let getChannel = await client.channels.cache.get(reportChannelId)
let attachments = msg.attachments.map(e => e)
if (attachments.length == 0) return getChannel.send(`**[MSG]** ${msg.content}\n ${msg.guild ? `**[Server]** : ${msg.guild.name} (${msg.channel.name})\n<@${authorId}>` : ''}`)
return getChannel.send(`**[OwO]** ${msg.content}\nServer : [ ${msg.guild ? `**[Server]** : ${msg.guild.name} (${msg.channel.name})` : ''} ]\n**Link** : ${attachments[0].url || 'Null'}\n<@${authorId}>`)
}
}
}
if (msg.content.match(/!say/g) && msg.author == config.id) {
return msg.channel.send(msg.content.replace('!say ', ''))
}
// Message from Owo
if (msg.author.id == owoId && msg.channel.type == 'DM') {
if (msg.content.match(/👍|verified|Thank you! :3/g)) {
statusBot = true
console.log(`(${client.user.tag}) Continue bots`)
}
let getId = client.users.cache.get(authorId)
try {
return getId.send(`**[OWO SAY]** ${msg.content}`)
} catch (error) {
console.log('Unable to send chat to guys')
}
}
if (msg.content.match(new RegExp(`!${client.user.username}`))) {
let getId = client.users.cache.get(owoId)
getId.send(msg.content.replace(`!${client.user.username} `, '')).catch((e) => console.log('Unable to send chat to guys'))
}
})
}