mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-25 22:32:50 +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, '🔉');
|
await reactIfAble(msg, this.client.user, '🔉');
|
||||||
for (const item of flow.data) {
|
for (const item of flow.data) {
|
||||||
if (item.type !== 'quote') continue;
|
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;
|
return null;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiao",
|
"name": "xiao",
|
||||||
"version": "131.3.1",
|
"version": "131.3.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Xiao.js",
|
"main": "Xiao.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user