Skip to content

Commit

Permalink
updated good night
Browse files Browse the repository at this point in the history
  • Loading branch information
gnehs committed Jun 3, 2023
1 parent e0b4a71 commit 23e6809
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion components/simple-reply.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ bot.hears("喵", ({ replyWithMarkdown, message }) => replyWithMarkdown('`HTTP /3
bot.hears("嗨", ({ replyWithSticker, message }) => replyWithSticker('https://data.gnehs.net/stickers/hello.webp', { reply_to_message_id: message.message_id }));

bot.hears("晚安", ({ reply, message, replyWithSticker }) => {
replyWithSticker('https://data.gnehs.net/stickers/good%20night.webp', { reply_to_message_id: message.message_id })
if (message.from.username == 'seadog007') {
replyWithSticker('https://gcdnb.pbrd.co/images/ZLjQQi8gqHui.webp', { reply_to_message_id: message.message_id })
} else if (message.from.username == 'Vincent550102') {
replyWithSticker('https://gcdnb.pbrd.co/images/4UdVojF7Ss9F.webp', { reply_to_message_id: message.message_id })
} else if (Math.random() < 0.5) {
replyWithSticker('https://data.gnehs.net/stickers/good%20night.webp', { reply_to_message_id: message.message_id })
} else {
replyWithSticker('https://gcdnb.pbrd.co/images/ZLjQQi8gqHui.webp', { reply_to_message_id: message.message_id })
}
if (message.from.username == 'seadog007') {
reply(`笨豹豹,晚安`, { reply_to_message_id: message.message_id })
} else {
Expand Down

0 comments on commit 23e6809

Please sign in to comment.