Discord Bots

Over time, I write Discord bots to do various small tasks for servers. You may also find them useful!

DupliKate track duplicate links

It's fairly common for the same link to be shared by multiple members over the course of a day or week. DupliKate keeps track of links posted and notifies a member if they post the same link in a channel as someone else in the last week. invite!

Demo

Source code (Rust)

Links are stored as a SipHash string (link-channel_id) associated with the message ID and server ID. This is to enable checking duplicate links while not revealing the link itself. No other information is stored.

Nitter Bot translate twitter links to nitter

These days it's usual to use a Twitter embed fixer like fxtwitter or vxtwitter when linking Twitter content for a better embed experience. This bot provides the /nitter command to parse and post a link to a Nitter instance (nitter.gmem.ca), along with prefetching the page to cache it ahead of time. invite!

Demo

Source code (Python)

This bot does not store any information directly. The Nitter instance in use contains a custom patch to more aggresively cache posts to avoid rate limiting.