Skip to content

Instantly share code, notes, and snippets.

View vmphase's full-sized avatar

Michael vmphase

  • Decentralized
  • 23:18 (UTC +01:00)
View GitHub Profile
image

I was lurking in a group chat last week where people were arguing about Wordle. Apparently someone got it in 2 and everyone lost their mind. I hadn't played Wordle in my life (genuinely zero interest) but the math angle of the argument caught me.


The idea

Wordle gives you 6 tries to guess a 5-letter word. After each guess, you get colored feedback:

@vmphase
vmphase / msg_deleter_poc.md
Last active June 19, 2026 13:18
PoC: detecting the message deleter in Discord

The Problem

Discord's Audit Log only creates an entry if a moderator deletes someone else's message.
If a user deletes their own message, the audit stays silent, what creates a logic gap:

How do you tell the difference between a user or moderator cleaning up the message?

PoC described

I've never seen a definitive solution that actually handles the stacked deletion problem, so I created this gist.
By caching the state of the last known deletion action, we can pinpoint exactly when a new action occurs, even if multiple moderators are active or if one moderator is deleting messages rapidly (one by one, not bulk).