mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Small change
This commit is contained in:
+2
-3
@@ -1,10 +1,9 @@
|
||||
const { promisify } = require('util');
|
||||
const yes = ['yes', 'y', 'ye', 'yeah', 'yup', 'yea'];
|
||||
const no = ['no', 'n', 'nah', 'nope'];
|
||||
|
||||
class Util {
|
||||
static wait(time) {
|
||||
return promisify(setTimeout)(time);
|
||||
static wait(ms) {
|
||||
return new Promise(resolve => setTimeout(resolve, ms));
|
||||
}
|
||||
|
||||
static shuffle(array) {
|
||||
|
||||
Reference in New Issue
Block a user