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()}**.
|
One common meaning for this card is **${card.randomLightMeaning()}**.
|
||||||
However, beware, as it could also mean **${card.randomShadowMeaning()}**.
|
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] });
|
`, { files: [card.imagePath] });
|
||||||
const verification = await verify(msg.channel, msg.author);
|
const verification = await verify(msg.channel, msg.author);
|
||||||
if (!verification) break;
|
if (!verification) break;
|
||||||
|
|||||||
@@ -49,7 +49,7 @@ module.exports = class PlayCommand extends Command {
|
|||||||
const canPlay = this.canUseVideo(data, msg.channel.nsfw || false);
|
const canPlay = this.canUseVideo(data, msg.channel.nsfw || false);
|
||||||
if (!canPlay) return msg.reply('I cannot play this video.');
|
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.');
|
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)]
|
embeds: [this.generateEmbed(data)]
|
||||||
});
|
});
|
||||||
const verification = await verify(msg.channel, msg.author);
|
const verification = await verify(msg.channel, msg.author);
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "152.4.2",
|
"version": "152.4.3",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -80,7 +80,10 @@ module.exports = class PhoneCall {
|
|||||||
: 'Declined the call.';
|
: 'Declined the call.';
|
||||||
await this.recipient.send(`☎️ ${recipientMsg}`);
|
await this.recipient.send(`☎️ ${recipientMsg}`);
|
||||||
if (validation === 0 && canVoicemail) {
|
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);
|
const voicemailValidation = await verify(this.origin, null);
|
||||||
if (voicemailValidation) {
|
if (voicemailValidation) {
|
||||||
await this.origin.send('☎️ Please leave your message (max 280 characters) after the beep. _Beep_.');
|
await this.origin.send('☎️ Please leave your message (max 280 characters) after the beep. _Beep_.');
|
||||||
|
|||||||
Reference in New Issue
Block a user