Added Command System

This commit is contained in:
MrMasrozYTLIVE
2024-07-12 22:32:07 +03:00
parent 623645090d
commit a96da2066e
6 changed files with 143 additions and 10 deletions

12
test/Bot.ts Normal file
View File

@ -0,0 +1,12 @@
import {Client} from "../src/Client";
const bot = new Client("testBot", ">>");
bot.registerCommands(__dirname).then(() => {
bot.on('onBotJoinRoom', () => {
console.log("Bot is ready!");
bot.sendTextMessage("Bot is ready!");
});
bot.joinChatRoom("fdc8aad933cde0d88f15cb395dfe2e24e1731d7622c890828d8eef9608e52437");
})