-
Notifications
You must be signed in to change notification settings - Fork 172
/
index.js
45 lines (42 loc) · 1.06 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
const lolcatjs = require('lolcatjs')
const figlet = require('figlet')
let { spawn } = require('child_process')
let path = require('path')
const CFonts = require('cfonts')
lolcatjs.options.seed = Math.round(Math.random() * 1000);
lolcatjs.options.colors = true;
CFonts.say('[ROOT] STARTING BOT...', {
font: 'console',
align: 'left',
gradient: ['magenta', 'red']
})
CFonts.say('----------------- FARHANXCODE7 -----------------', {
font: 'console',
align: 'center',
gradient: ['red', 'yellow']
})
CFonts.say('Welcome In\nTermux Bot Wa', {
font: 'chrome',
align: 'center',
gradient: ['red', 'magenta']
})
function start() {
let args = [path.join('Fxc7.js'), ...process.argv.slice(2)]
CFonts.say([process.argv[0], ...args].join(' '), {
font: 'console',
align: 'center',
gradient: ['red', 'magenta']
})
let p = spawn(process.argv[0], args, {
stdio: ['inherit', 'inherit', 'inherit', 'ipc']
})
.on('message', data => {
if (data == 'reset') {
console.log('RESET')
p.kill()
start()
delete p
}
})
}
start('Fxc7.js')