Skip to content

Commit

Permalink
fix: 🐛 Cannot send self forwarding message.
Browse files Browse the repository at this point in the history
  • Loading branch information
b2r66sun committed Jan 2, 2025
1 parent e24a408 commit 65eda7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wechaty/sendMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ export async function defaultMessage(msg, bot, ServiceType = 'GPT') {
console.log('👑👑👑 / self content: ', content)
if (content == startPrompt) {
enabled = true
await contact.say("Bot Enabled.")
console.log("🔥 Bot Enabled.")
}
if (content == endPrompt) {
enabled = false
await contact.say("Bot Disabled.")
console.log("🔵 Bot Disabled.")
}
return
}
Expand Down

0 comments on commit 65eda7b

Please sign in to comment.