dankgrinder 8.93.0 → 8.94.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.
Files changed (2) hide show
  1. package/lib/rawLogger.js +6 -0
  2. package/package.json +1 -1
package/lib/rawLogger.js CHANGED
@@ -583,6 +583,12 @@ function attachDmLogger(client, opts = {}) {
583
583
  pipe.exec().catch(() => {});
584
584
  }
585
585
 
586
+ // Store to channelLast so getLastRaw(channelId) works for DM messages.
587
+ // This is critical: attachRawLogger's channel filter may miss on first login
588
+ // (this.channel not yet set), but attachDmLogger always fires for DMs.
589
+ const stored = store(d, 'CREATE');
590
+ if (stored && stored.then) stored.catch(() => {});
591
+
586
592
  // Emit to listeners
587
593
  if (dmEvent) {
588
594
  for (const fn of dmListeners) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dankgrinder",
3
- "version": "8.93.0",
3
+ "version": "8.94.0",
4
4
  "description": "Dank Memer automation engine — grind coins while you sleep",
5
5
  "bin": {
6
6
  "dankgrinder": "bin/dankgrinder.js"