aboutsummaryrefslogtreecommitdiff
path: root/index.js
blob: 74c2c3de5e6001984ad60dc5bcb1c8f0f2897001 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/// <reference types="../CTAutocomplete" />
/// <reference lib="es2015" />

class SoopyAddons {
    constructor() {
        this.FeatureManager = require("./featureClass/featureManager.js")

        this.FeatureManager.parent = this
    }
}

if(FileLib.read("soopyAddonsData", "deletesoopyv1please.txt") === "true"){
    new Thread(()=>{
        Thread.sleep(2000)
        const File = Java.type("java.io.File")
        FileLib.deleteDirectory(new File("./config/ChatTriggers/modules/soopyAddons"))
    
        FileLib.write("soopyAddonsData", "deletesoopyv1please.txt", "false")
    
        ChatLib.command("ct reload", true)
    }).start()
}else{
    new SoopyAddons()
}