mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-03 23:36:43 +02:00
Replace mindfulness pauses
This commit is contained in:
@@ -46,7 +46,8 @@ module.exports = class MindfulnessCommand extends Command {
|
||||
await reactIfAble(msg, this.client.user, '🔉');
|
||||
for (const item of flow.data) {
|
||||
if (item.type !== 'quote') continue;
|
||||
setTimeout(() => msg.say(item.text).catch(() => null), item.time * 1000);
|
||||
const text = item.text.replace(/\[pause \d+\]/gi, ' ');
|
||||
setTimeout(() => msg.say(text).catch(() => null), item.time * 1000);
|
||||
}
|
||||
return null;
|
||||
} catch (err) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "xiao",
|
||||
"version": "131.3.1",
|
||||
"version": "131.3.2",
|
||||
"description": "Your personal server companion.",
|
||||
"main": "Xiao.js",
|
||||
"scripts": {
|
||||
|
||||
Reference in New Issue
Block a user