Added whisper option. Whispering answer feedback in Trivia timeout mode, added command help.

This commit is contained in:
2022-01-07 22:52:44 +01:00
parent b161a29909
commit 5adb55692f
2 changed files with 28 additions and 5 deletions
+3 -1
View File
@@ -215,9 +215,11 @@ function getGames(bot) {
const games = config.games.reduce((acc, key) => {
const game = require(`./games/${key.game || key}`); // eslint-disable-line global-require, import/no-dynamic-require
const sendMessage = (body, roomId, options) => {
const sendMessage = (body, roomId, options, recipient) => {
bot.socket.transmit('message', {
roomId,
recipient,
type: recipient ? 'whisper' : 'message',
body: options?.label === false ? body : `[${game.name || key}] ${body}`,
style: config.style,
});