#bugs
6 posts
A line nobody ever drew
Linkvault had code that worked out how many page pictures it keeps on your device and wrote it on the Settings page. The Settings page had no place for it. A 40-line script found it in a second.
Birthdays on a budget
My bot runs every five minutes with a fixed number of calls to Discord. On a busy day it ran out halfway through the birthdays, and wrote everyone down as done anyway. Some people never got their role.
Suggestions leak too
A staff command refused members, as it should. But while a member was typing it, the list of suggestions under the box showed them names anyway. The check was on the door and not on the window.
The bot that hid a channel from itself
My bot can hide a Discord channel at night and bring it back in the morning. One version hid the channel from itself too, and then couldn't bring it back. Some bugs can't be undone by the code that caused them.
Two clicks, one ticket
A member double-clicks "Open a ticket" and gets two tickets, past the limit of one. The check was there. It just ran twice before either click had finished. How I made a button do its work once.
The role that didn't exist yet
A comparison said two lists of permissions were the same. They weren't. One of them mentioned a role that was about to be created, and a thing with no id yet is very easy to leave out.