Be more discerning about when to respond to a chat or cont command
parent
103b0f7a2f
commit
61b6f7cdae
4
index.js
4
index.js
|
@ -76,8 +76,8 @@ client.on('registered', () => {
|
|||
client.on('message', async (event) => {
|
||||
const chatCmd = config.newChatCmd;
|
||||
const contCmd = config.contChatCmd;
|
||||
let is_chat_cmd = event.message.startsWith(chatCmd);
|
||||
let is_cont_cmd = contCmd.length > 0 && event.message.startsWith(contCmd);
|
||||
let is_chat_cmd = event.message.startsWith(`${chatCmd} `);
|
||||
let is_cont_cmd = contCmd.length > 0 && event.message.startsWith(`${contCmd} `);
|
||||
|
||||
if (is_chat_cmd || is_cont_cmd) {
|
||||
if (context.is_response_in_progress()) {
|
||||
|
|
Loading…
Reference in New Issue