peertube-plugin-livechat/bots/lib/bot/demobot.ts

12 lines
299 B
TypeScript
Raw Normal View History

2021-12-07 17:57:08 +00:00
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
}