peace-maker/botmimic

Global chat triggers?

moismailzai opened this issue · 2 comments

It would be useful to allow users on a server to select preset chat triggers to load a custom recording. For instance, a user could type !ct-bombsite-b-door-popflash and this would spawn a bot who would playback the requested recording.

I think it's best if there'd be some command like
sm_mimicrecord <name> [spawn new bot] [kick after replay]
So you can just add some chat triggers using your prefered chat trigger plugin which calls the command like
sm_mimicrecord ct-bombsite-b-door-popflash 1 1
which would add a new bot, let him playback the record and kick him afterwards

The interesting part here is how we should handle which bot to select for playback.

Excellent point, this would add the utility without introducing a significant amount of new menu logic...

As for which bot to select, is it important? Is SM unable to report the name of the bot that is spawned by the plugin? If so, could a quick filter of "status" results before and after the spawn command identify the new bot?