niso.moe
  • Projects
  • Posts
  • Contact

© 2026 niso.moe

  • Imprint
  • Privacy
  1. projects
  2. /
  3. poke-helper

Poke Helper

Source
Date
1 Nov 2026
Author
NINikki Sophie 🌸
Stack
TypeScript, Bun, discord.js, PostgreSQL, Prisma, Docker
Tags
Back-EndSelf-Hosted

The Discord bot that runs most of the PokeSpot server: counting, a Pokédex, levels, giveaways and moderation. It started in July 2025 with one job, in PokeSpot's counting channel, where everyone writes the next number, one person at a time. Write it twice in a row, or get it wrong, and the run is over.

For members

Counting is still the heart of it: one number per person in a row, with optional math, so 6*7 counts as 42, lives that forgive a mistake, and a 🎉 at milestones.

The Pokédex knows any Pokémon, move, item or place, in any language, with its matchups, where to find it and what it learns. /guess shows a silhouette and asks who's that Pokémon.

Then there's everything else a member runs into:

  • Levels for chatting and for time in voice, with rank cards, weekly and monthly leaderboards and roles as rewards.
  • Reminders written the way people say them, like friday 6pm or 24.12. 18:00, in English or German.
  • Birthdays with a role for the day. Someone born on February 29 gets theirs on the 28th in other years.
  • Friend codes for the Switch, Pokémon GO, Sleep and TCG Pocket, saved once for every server.
  • Giveaways with prizes by place, rules for who can enter and bonus entries for some roles.
  • Role menus to pick your own roles with a button.
  • Temporary voice channels that their owner locks, renames and hands over from a panel in the channel.
  • A starboard for messages with enough reactions, which follows the stars as they come and go.
  • User info with someone's account, when they joined, their roles and badges, from /userinfo or the User info menu on a name, also in DMs. Buttons show their avatar and banner, and the ones they set just for the server.

Rank cards, leaderboards and Pokédex entries are drawn as pictures, which screen readers can't read. So each one has a button that switches it to text and back, and every picture has a description of everything on it. The button first said "Show as card", until I noticed that sounds like a Pokémon card.

For moderators

Every warning, timeout, kick and ban is a numbered case. Right-click a member and the Moderation menu opens their record: their timeout and cases, their user info, and buttons to act, all in one place. Moderators also see a member's cases, timeout or ban in their user info, can purge messages, and keep sticky messages at the bottom of a channel without them moving with every message. Server logs say who did what.

Two moderators can press the same button at the same moment. That used to draw the same giveaway winner twice, or turn one ban into two cases and two DMs. Now giveaway draws and actions on the same member run one after another.

For the people who run the server

Leveling used to be set up with 14 subcommands, and a birthday with five. Now each feature has one panel, with its settings as buttons and selects and a switch to turn it off without losing them.

Settings are also where a bot can be turned against its server. Anyone allowed to change them could put a role above their own, or one with Administrator, into a role menu, a level reward or the birthday role, and then simply get it. Now roles with moderator or admin permissions are never handed out, even if they gain them later. Settings only take roles below your own highest one, like Discord's own rule. And a role menu whose required role is deleted is turned off, rather than opening to everyone.

Server info gives the overview: the owner, members and boosts, how many channels, roles, emojis and stickers the server has of how many it can, and which of the bot's features it uses, with Roles and Emojis buttons that list them page by page.

Behind the scenes

Nothing missed while it's offline. At first, the bot only saw numbers counted while it was running. Restart it while people kept counting, and the next number looked wrong and ended the run. Now it reads the messages it missed, in order, when it's back. The same goes for birthdays, reminders, the weekly XP reset, giveaways that ended and bans that ran out.

Pokémon data on demand. Names, pictures and details come from PokéAPI and are cached, so there's nothing to download first. That also means following PokéAPI: when it removed the version of its GraphQL API the bot was using, names stopped loading until I moved to the new one.

Its own look. The mascot in its avatar and banner is drawn in code and animated, and changes with the seasons and holidays, like a witch hat and "Happy Halloween! 🎃" in October, along with its status.

The bot's twelve looks, each with its banner, avatar and status, from Standard and the four seasons to Halloween, Christmas, New Year, Valentines, Easter, Pride and its birthdayThe bot's twelve looks, each with its banner, avatar and status, from Standard and the four seasons to Halloween, Christmas, New Year, Valentines, Easter, Pride and its birthday

Its icons are uploaded as the bot's own emojis, named with a fingerprint of their picture, so a changed icon replaces the old one by itself.

It runs in Docker on my own server, where it also tells my server dashboard its servers and members at GET /status. 58 test files cover the rules, from counting and durations to giveaways and moderation.

How it grew

For most of a year, counting was nearly all it did, with birthdays added in September 2025. In April it got role menus and levels. In November I went back over all of it: every message rebuilt with Discord's new components, settings panels instead of config commands, English and German, and most of what's above. 612 of its 728 commits are from that month.

On this page

  1. For members
  2. For moderators
  3. For the people who run the server
  4. Behind the scenes
  5. How it grew
Back to top
Newer projectREADME StatsEvery card on my GitHub profile, drawn in one matching style by one small Bun server on my home server. My profile used to need three services to say one thing: stats came from…13 Nov 2026 · TypeScript · Bun · GitHub GraphQL API
Older projectStreamOne form that sets my stream's title, tags and category on Twitch, YouTube and Kick at once, and one page for all three chats while I'm live. Going live used to start with three…27 Oct 2026 · Next.js · TypeScript · Tailwind CSS