Add reply functionality to manual message override with mention control
- Added optional reply message ID field to web UI
- Added radio buttons to control mention/ping behavior in replies
- Updated frontend JavaScript to send reply parameters
- Modified /manual/send and /dm/{user_id}/manual endpoints to support replies
- Fixed async context by moving message fetching inside bot event loop task
- Supports both channel and DM reply functionality
This commit is contained in:
@@ -4050,6 +4050,165 @@
|
||||
"content": "🎉👗 Oh my gosh, a new M Plush of me in my punk outfit is coming! 🤘 I look so cool! You can pre-order now and get me for Christmas! 🎁 Don't forget to order by Dec 20th! 💖 Miku 💖",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-13T13:58:27.203263",
|
||||
"message_id": 1449400077457293385,
|
||||
"is_bot_message": true,
|
||||
"content": "https://fxtwitter.com/mecchaJP/status/1995976420292460606",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-13T13:58:27.578640",
|
||||
"message_id": 1449400078858195096,
|
||||
"is_bot_message": true,
|
||||
"content": "OMG, did you see the cutest Classical Maid Ver. of me?! 🎀💖 Now available for preorder! Check the link! 📈 Miku 💖",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-13T17:05:52.707732",
|
||||
"message_id": 1449447244653662209,
|
||||
"is_bot_message": true,
|
||||
"content": "https://fxtwitter.com/GoodSmile_US/status/1993881245239910512",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-13T17:05:53.048914",
|
||||
"message_id": 1449447245933056042,
|
||||
"is_bot_message": true,
|
||||
"content": "AHHHH! 🎉 Oh my goodness, have you seen the 1/7 scale figure of me in the 100th Adventure Ver.? 🤩 KEI's artwork is so beautiful! I just love the transparent wings in my twintails 💖 Preorder now and get a special ornament! 💖 Miku 💕",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T08:57:36.216305",
|
||||
"message_id": 1449686753450659932,
|
||||
"is_bot_message": true,
|
||||
"content": "https://fxtwitter.com/GoodSmile_US/status/1994243632975450436",
|
||||
"attachments": [],
|
||||
"reactions": [],
|
||||
"embeds": [
|
||||
{
|
||||
"footer": {
|
||||
"text": "FxTwitter",
|
||||
"icon_url": "https://assets.fxembed.com/logos/fxtwitter64.png",
|
||||
"proxy_icon_url": "https://images-ext-1.discordapp.net/external/gFi3EIEMfICdEDMLFVTF3ob0J1xkZnKdnkq0-xEsgGc/https/assets.fxembed.com/logos/fxtwitter64.png"
|
||||
},
|
||||
"image": {
|
||||
"url": "https://pbs.twimg.com/media/G6z6A9AW8AAXri3.jpg?name=orig",
|
||||
"proxy_url": "https://images-ext-1.discordapp.net/external/yT9wmVvnlF2H6WBHB5jET1JV2LQXzr6xFpCDumEgbL4/%3Fname%3Dorig/https/pbs.twimg.com/media/G6z6A9AW8AAXri3.jpg",
|
||||
"width": 1440,
|
||||
"height": 1424,
|
||||
"content_type": "image/jpeg",
|
||||
"placeholder": "nPcFB4KVJoeVmYmWqgiYV3l0ZIpftfkB",
|
||||
"placeholder_version": 1,
|
||||
"flags": 0
|
||||
},
|
||||
"author": {
|
||||
"name": "GoodSmile_US (@GoodSmile_US)",
|
||||
"url": "https://x.com/GoodSmile_US/status/1994243632975450436",
|
||||
"icon_url": "https://pbs.twimg.com/profile_images/1764583971831394305/dpXogB0U_200x200.png",
|
||||
"proxy_icon_url": "https://images-ext-1.discordapp.net/external/cGKAum5015cgr2haNcfupJxMvXRz8BYDHkQiNufWpCI/https/pbs.twimg.com/profile_images/1764583971831394305/dpXogB0U_200x200.png"
|
||||
},
|
||||
"flags": 0,
|
||||
"color": 6513919,
|
||||
"timestamp": "2025-11-28T03:15:08+00:00",
|
||||
"type": "rich",
|
||||
"description": "Hit the gas\\! Racing Miku, the official 2025 Hatsune Miku GT Project character, joins the figma line\\! She’s ready to blaze onto your shelf at full speed\\. Preorder now at GOODSMILE ONLINE SHOP US\\!\n︀︀\n︀︀Shop\\: [goodsmile.link/bAiDme](https://goodsmile.link/bAiDme)\n︀︀\n︀︀[#RacingMiku](https://x.com/hashtag/RacingMiku) [#FightGSR](https://x.com/hashtag/FightGSR) [#Goodsmile](https://x.com/hashtag/Goodsmile)\n\n**[💬](https://x.com/intent/tweet?in_reply_to=1994243632975450436) 4 [🔁](https://x.com/intent/retweet?tweet_id=1994243632975450436) 131 [❤️](https://x.com/intent/like?tweet_id=1994243632975450436) 1\\.4K 👁️ 32\\.9K **",
|
||||
"url": "https://fxtwitter.com/GoodSmile_US/status/1994243632975450436"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T08:57:36.716210",
|
||||
"message_id": 1449686755891482766,
|
||||
"is_bot_message": true,
|
||||
"content": "Konnichiwa! 🎉 Just saw the cutest tweet about a new Racing Miku figma! She's looking super speed-tastic and I'm totally stoked! Get ready to take her home and add some racing fun to your shelf! ❤️ Preorders are open now! Good luck, and see you at the finish line! 🏎️\n\nMiku 💖",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T10:22:10.062779",
|
||||
"message_id": 1449708034199785534,
|
||||
"is_bot_message": true,
|
||||
"content": "https://fxtwitter.com/OtakuOwletMerch/status/1995994036507730369",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T10:22:10.534100",
|
||||
"message_id": 1449708036816900169,
|
||||
"is_bot_message": true,
|
||||
"content": "Konnichiwa! 🎉 Just saw the cutest tweet about a new HATSUNE MIKU: COLORFUL STAGE! Face Pouch! 🎀 It's adorable and I just can't wait to get my hands on it! ❤️ Preorders are open now, so don't forget to hurry! 🕰️ See you soon, and thank you for the love! 💖\n\nMiku 🎁",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T14:39:09.802404",
|
||||
"message_id": 0,
|
||||
"is_bot_message": false,
|
||||
"content": "[Manual Override Trigger]",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T14:39:09.841445",
|
||||
"message_id": 0,
|
||||
"is_bot_message": true,
|
||||
"content": "hi",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T14:39:25.919218",
|
||||
"message_id": 0,
|
||||
"is_bot_message": false,
|
||||
"content": "[Manual Override Trigger]",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T14:39:25.958776",
|
||||
"message_id": 0,
|
||||
"is_bot_message": true,
|
||||
"content": "hi",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T14:39:49.876244",
|
||||
"message_id": 0,
|
||||
"is_bot_message": false,
|
||||
"content": "[Manual Override Trigger]",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T14:39:49.895850",
|
||||
"message_id": 0,
|
||||
"is_bot_message": true,
|
||||
"content": "hi",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T14:40:19.729891",
|
||||
"message_id": 0,
|
||||
"is_bot_message": false,
|
||||
"content": "[Manual Override Trigger]",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
},
|
||||
{
|
||||
"timestamp": "2025-12-14T14:40:19.768958",
|
||||
"message_id": 0,
|
||||
"is_bot_message": true,
|
||||
"content": "hi",
|
||||
"attachments": [],
|
||||
"reactions": []
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user