Skip to content

Commit

Permalink
fix: 🐛 Fix string bug
Browse files Browse the repository at this point in the history
  • Loading branch information
b2r66sun committed Jan 2, 2025
1 parent 900843b commit 875d0d2
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 @@ -49,11 +49,11 @@ 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.")
}
if (content == endPrompt) {
if (content === endPrompt) {
enabled = false
await contact.say("🔵 Bot Disabled.")
}
Expand Down

0 comments on commit 875d0d2

Please sign in to comment.