mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 15:07:42 +02:00
Add more obvious indicator for voicemails
This commit is contained in:
@@ -61,7 +61,7 @@ module.exports = class TarotCommand extends Command {
|
||||
One common meaning for this card is **${card.randomLightMeaning()}**.
|
||||
However, beware, as it could also mean **${card.randomShadowMeaning()}**.
|
||||
|
||||
Would you like me to keep going? Type **[y]es** or **[n]o**.
|
||||
Would you like me to keep going? Reply with **[y]es** or **[n]o**.
|
||||
`, { files: [card.imagePath] });
|
||||
const verification = await verify(msg.channel, msg.author);
|
||||
if (!verification) break;
|
||||
|
||||
@@ -49,7 +49,7 @@ module.exports = class PlayCommand extends Command {
|
||||
const canPlay = this.canUseVideo(data, msg.channel.nsfw || false);
|
||||
if (!canPlay) return msg.reply('I cannot play this video.');
|
||||
if (canPlay === 'length') return msg.reply('This video is longer than 15 minutes, so I can\'t play it.');
|
||||
await msg.reply('Is this the video you want to play? Type **[y]es** or **[n]o**.', {
|
||||
await msg.reply('Is this the video you want to play? Reply with **[y]es** or **[n]o**.', {
|
||||
embeds: [this.generateEmbed(data)]
|
||||
});
|
||||
const verification = await verify(msg.channel, msg.author);
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "152.4.2",
|
||||
"version": "152.4.3",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
@@ -80,7 +80,10 @@ module.exports = class PhoneCall {
|
||||
: 'Declined the call.';
|
||||
await this.recipient.send(`☎️ ${recipientMsg}`);
|
||||
if (validation === 0 && canVoicemail) {
|
||||
await this.origin.send(`☎️ **${this.recipient.guild.name}** didn't answer... Leave a voicemail?`);
|
||||
await this.origin.send(stripIndents`
|
||||
☎️ **${this.recipient.guild.name}** didn't answer... Leave a voicemail?
|
||||
Reply with **[y]es** or **[n]o**.
|
||||
`);
|
||||
const voicemailValidation = await verify(this.origin, null);
|
||||
if (voicemailValidation) {
|
||||
await this.origin.send('☎️ Please leave your message (max 280 characters) after the beep. _Beep_.');
|
||||
|
||||
Reference in New Issue
Block a user