implement command handling
This commit is contained in:
@@ -64,4 +64,13 @@ export class WaterMeService {
|
||||
reply,
|
||||
};
|
||||
}
|
||||
|
||||
async handleCommand(channelId: string) {
|
||||
const result = this.waterMe();
|
||||
|
||||
this.messagesService.sendToChannel(
|
||||
{ id: channelId },
|
||||
{ content: result.reply },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user