dankgrinder 5.0.6 → 5.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commands/utils.js +2 -2
- package/lib/grinder.js +3 -0
- package/package.json +1 -1
package/lib/commands/utils.js
CHANGED
|
@@ -399,7 +399,7 @@ function _extractCV2Buttons(components) {
|
|
|
399
399
|
if (c.type === 2) {
|
|
400
400
|
btns.push({
|
|
401
401
|
type: 'BUTTON', label: c.label || null,
|
|
402
|
-
customId: c.custom_id, style: c.style,
|
|
402
|
+
customId: c.custom_id, style: c.style, url: c.url || null,
|
|
403
403
|
disabled: c.disabled || false, emoji: c.emoji, _raw: c,
|
|
404
404
|
});
|
|
405
405
|
}
|
|
@@ -407,7 +407,7 @@ function _extractCV2Buttons(components) {
|
|
|
407
407
|
if (c.accessory?.type === 2) {
|
|
408
408
|
btns.push({
|
|
409
409
|
type: 'BUTTON', label: c.accessory.label || null,
|
|
410
|
-
customId: c.accessory.custom_id, style: c.accessory.style,
|
|
410
|
+
customId: c.accessory.custom_id, style: c.accessory.style, url: c.accessory.url || null,
|
|
411
411
|
disabled: c.accessory.disabled || false, emoji: c.accessory.emoji, _raw: c.accessory,
|
|
412
412
|
});
|
|
413
413
|
}
|
package/lib/grinder.js
CHANGED
|
@@ -1998,10 +1998,13 @@ class AccountWorker {
|
|
|
1998
1998
|
this.setStatus(`pls ${item.cmd}`);
|
|
1999
1999
|
|
|
2000
2000
|
// Report "running" to dashboard
|
|
2001
|
+
const nextItemRun = this.commandQueue?.peek?.();
|
|
2001
2002
|
reportCommandFeed(this.account.id, this.username, {
|
|
2002
2003
|
phase: 'running',
|
|
2003
2004
|
command: item.cmd,
|
|
2004
2005
|
started_at: Date.now(),
|
|
2006
|
+
next_command: nextItemRun?.cmd || null,
|
|
2007
|
+
next_run_at: nextItemRun?.nextRunAt || null,
|
|
2005
2008
|
});
|
|
2006
2009
|
|
|
2007
2010
|
const beforeCoins = this.stats.coins;
|