LinkUp-Bot-Lib/test/Bot.ts

12 lines
347 B
TypeScript
Raw Normal View History

2024-07-12 15:32:07 -04:00
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");
})