-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.ts
25 lines (19 loc) · 877 Bytes
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import {CommandManager} from "./main/CommandManager"
import * as allCommands from "./commands/index";
import {Launcher} from "./main/Start"
(async()=>{
console.log("✅ Starting bot")
function addCommands(manager: CommandManager){
manager.addCommand(new allCommands.PingCommand());
manager.addCommand(new allCommands.HelloCommand());
manager.addCommand(new allCommands.EvalCommand());
manager.addCommand(new allCommands.MenuCommand());
manager.addCommand(new allCommands.YoutubeCommand());
manager.addCommand(new allCommands.AdminsCommand());
console.log("✅ " + manager.commands.size + " commands added")
}
var commandManager: CommandManager = new CommandManager().getInstance();
addCommands(commandManager);
var launcher = await new Launcher(commandManager);
launcher.baileys();
})()