peertube-plugin-livechat/bots/lib/bot/demobot.ts
2021-12-07 18:57:08 +01:00

12 lines
299 B
TypeScript

import { RoomComponentBot } from './room'
class DemoBot extends RoomComponentBot {
protected async onRoomJoin (roomId: string, nick: string): Promise<void> {
await this.sendGroupchat(roomId, `Hello ${nick}! I'm the DemoBot, I'm here to demonstrate the chatroom.`)
}
}
export {
DemoBot
}