mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Remove tsubaki, better wait in gunfight
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
const snekfetch = require('snekfetch');
|
||||
const { promisify } = require('util');
|
||||
const { CARBON_KEY, DBOTS_KEY, DBOTSORG_KEY } = process.env;
|
||||
|
||||
class Util {
|
||||
@@ -56,6 +57,10 @@ class Util {
|
||||
const word = `<${setting}>`;
|
||||
return parsed.slice(word.length, parsed.length - (word.length + 1));
|
||||
}
|
||||
|
||||
static wait(time) {
|
||||
return promisify(setTimeout)(time);
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = Util;
|
||||
|
||||
Reference in New Issue
Block a user