Skip to content

Commit

Permalink
fixed good night
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehs committed Jun 3, 2023
1 parent b3718fa commit e0b4a71
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion components/simple-reply.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ bot.hears("嗨", ({ replyWithSticker, message }) => replyWithSticker('https://da

bot.hears("晚安", ({ reply, message, replyWithSticker }) => {
replyWithSticker('https://data.gnehs.net/stickers/good%20night.webp', { reply_to_message_id: message.message_id })
reply(`${message.from.first_name},晚安❤️`, { reply_to_message_id: message.message_id })
if (message.from.username == 'seadog007') {
reply(`笨豹豹,晚安`, { reply_to_message_id: message.message_id })
} else {
reply(`${message.from.first_name},晚安❤️`, { reply_to_message_id: message.message_id })
}
});

module.exports = bot

0 comments on commit e0b4a71

Please sign in to comment.