Replace mindfulness pauses

This commit is contained in:
Dragon Fire
2021-03-02 21:15:05 -05:00
parent e745ededdb
commit 9f25015306
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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
View File
@@ -1,6 +1,6 @@
{
"name": "xiao",
"version": "131.3.1",
"version": "131.3.2",
"description": "Your personal server companion.",
"main": "Xiao.js",
"scripts": {