Added Command System
This commit is contained in:
parent
a96da2066e
commit
e12f17e791
12
test/Bot.ts
12
test/Bot.ts
@ -1,12 +0,0 @@
|
||||
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");
|
||||
})
|
Loading…
Reference in New Issue
Block a user