Skip to content

Commit

Permalink
fix: 🐛 Fix special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
b2r66sun committed Jan 2, 2025
1 parent 875d0d2 commit e24a408
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/wechaty/sendMessage.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@ export async function defaultMessage(msg, bot, ServiceType = 'GPT') {

if (isBotSelf) {
console.log('👑👑👑 / self content: ', content)
if (content === startPrompt) {
if (content == startPrompt) {
enabled = true
await contact.say("🔥 Bot Enabled.")
await contact.say("Bot Enabled.")
}
if (content === endPrompt) {
if (content == endPrompt) {
enabled = false
await contact.say("🔵 Bot Disabled.")
await contact.say("Bot Disabled.")
}
return
}
Expand Down

0 comments on commit e24a408

Please sign in to comment.