Repository navigation
Expand file tree
/
Copy pathstart.js
More file actions
45 lines (35 loc) · 1.42 KB
/
Copy pathstart.js
File metadata and controls
45 lines (35 loc) · 1.42 KB
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
// Imports
import { variablesValidate, variablesPort } from './app/variables.js'
import { startOverlay } from './app/overlay.js'
import { startEvents } from './app/events.js'
import { startTwitch } from './app/twitch.js'
import { startCommands } from './app/commands.js'
// Initialize application
(async () => {
console.log(
`@@@@@@@@@@ @@@@@@@%@@@@@ #@@@@%@@@@@@@@@%@@@@@@@
@@ @@@* @ *@@@@@ @ @ @ @@
@@ @ @ @@@@@@ @ @ @
@@ @ .@ @ @ @@@@@@ @ @ @ @ @
@@ @@@ @ @ @ @ @ @ @ @ @
@@ @ @ @ @ @ @ @ @ @ @ @
@@ @ @ @ @ @ @ @ @ @. @ @
@@ .@ @@ @ @ @@ @
@@ @@@ @@@@@. @ @ @@@@@# @
@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@@@@@@@@@@@@@@ @@@@@@@@@@
@@@@@@@@@ @@@@@@@@ @@@@@@@@@@@@@@@@@@@@ @@@@@@@@@
`);
console.log(`█ BOTIVO starting...\n`)
// Validate environment variables
await variablesValidate()
const port = variablesPort()
// Start overlay server (Express.js)
const overlay = await startOverlay(port)
// Start communication channel (Socket.IO)
const events = await startEvents(overlay, port)
// Start Twitch client (tmi.js)
await startTwitch(events)
// Load all commands
await startCommands()
console.log(`\n█ BOTIVO is ready to go!\n`)
})()