-
Notifications
You must be signed in to change notification settings - Fork 126
Expand file tree
/
Copy pathindex.js
More file actions
30 lines (26 loc) · 731 Bytes
/
index.js
File metadata and controls
30 lines (26 loc) · 731 Bytes
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
import { sonicAirdropChecker } from "./checkers/sonic.js"
import { taikoAirdropChecker } from "./checkers/taiko.js"
import { zerionXpAirdropChecker } from "./checkers/zerion-xp.js"
import { entryPoint } from "./utils/common.js"
async function startMenu(menu) {
let startOver = true
if (menu === undefined) {
mode = await entryPoint()
} else {
startOver = false
}
switch (mode) {
case "sonic":
sonicAirdropChecker()
break
case "taiko":
taikoAirdropChecker()
break
case "zerionxp":
zerionXpAirdropChecker()
break
}
}
const args = process.argv.slice(2)
let mode = args[0]
await startMenu(mode)