-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
35 lines (31 loc) · 1.04 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
//hi this was made by wout#0001
const {print} = require('./files/print')
const config = require('./files/config').config()
const {postAd} = require('./files/adposter')
const {getUsername} = require('./files/roblox')
const {startBot, takeScreenshot} = require('./files/discord')
const {checkWhitelist} = require('./files/validate')
const notWhitelisted = async () => {
print('Not whitelisted', 'red')
setInterval(notWhitelisted, 60 * 60 * 1000)
}
const main = async () => {
//const whitelist = await checkWhitelist()
//if (!whitelist == true) {
//await notWhitelisted()
//return
//}
print(`Welcome back ${await getUsername()}!`, 'green')
if (config.ROLIMONS.rolienabled) {
const interval = config.ROLIMONS.rolimonsinterval
postAd()
setInterval(postAd, interval * 1000)
}
if (config.DISCORD.discordenabled) {
const interval = config.DISCORD.discordinterval
await startBot()
takeScreenshot()
setInterval(takeScreenshot, interval * 1000)
}
}
main()