mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-24 02:15:10 +02:00
Update
This commit is contained in:
+1
-6
@@ -3,7 +3,7 @@ const crypto = require('crypto');
|
|||||||
const { IMGUR_KEY } = process.env;
|
const { IMGUR_KEY } = process.env;
|
||||||
const yes = ['yes', 'y', 'ye', 'yeah', 'yup', 'yea'];
|
const yes = ['yes', 'y', 'ye', 'yeah', 'yup', 'yea'];
|
||||||
const no = ['no', 'n', 'nah', 'nope'];
|
const no = ['no', 'n', 'nah', 'nope'];
|
||||||
const { SUCCESS_EMOJI_ID, FAILURE_EMOJI_ID } = process.env;
|
const { SUCCESS_EMOJI_ID } = process.env;
|
||||||
|
|
||||||
class Util {
|
class Util {
|
||||||
static delay(ms) {
|
static delay(ms) {
|
||||||
@@ -101,11 +101,6 @@ class Util {
|
|||||||
try {
|
try {
|
||||||
await message.author.send('Hi! Just testing that DMs work, pay this no mind.');
|
await message.author.send('Hi! Just testing that DMs work, pay this no mind.');
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
try {
|
|
||||||
await message.react(FAILURE_EMOJI_ID || '❌');
|
|
||||||
} catch (error) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
verify.delete(message.id);
|
verify.delete(message.id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user