Skip to content

Petto v0.7.9-3

Choose a tag to compare

@github-actions github-actions released this 02 Nov 02:33
Immutable release. Only release title and notes can be modified.
32f09b9

A patch of 0.7.9, shown as 0.7.9~3.

Added

  • Every direct message from Petto says who it is from and has three small buttons to report it to the Petto team. Join messages, sanctions (ban, kick, mute, warn, jail, softban, tempban and the ones from automod, escalation, anti-scam and the honeypot), form results, appeals, tickets and transcripts, giveaway notices, verification, level-ups, suggestions, report updates, setup messages, backup notices and the answers of custom commands and embed buttons start with a small grey line, From <server> (From Petto when no server is behind it; the name is clipped to 60 characters and cannot ping or link), and end with one row of three icon buttons in Petto's emojis: info (an "i"), delete (a bin) and report (a warning). Info answers with a private message that only you see (it goes away with Discord's own dismiss, nothing is written in the chat) with only the facts about the server: its icon, name, ID, creation date and number of members (a message from Petto itself says so in one line, and a server Petto left shows its ID and that Petto is not in it any more); it does not say why you got the message or how to turn it off. Delete removes that message from the chat. Report opens a form ("Report DM to Petto Staff": a notice, a bold paragraph saying it does NOT go to the server's moderators, a list of reasons with a new one for unwanted or abusive DMs, details of 20 to 1000 characters and a switch to delete the DM afterwards), in English, Spanish and Brazilian Portuguese. A report goes to the Petto team only, as a card in the channel PETTO_DM_REPORTS_CHANNEL_ID (the reported text with links made safe, the server's name and ID, why it was sent, who reported, the reason, and a Mark handled button for the team); with no channel set the report waits in the new dm_reports table and a warning is logged. Each person can send 3 reports an hour and one for each message. Every answer of the buttons is an answer to the button itself, private to the person (the report receipt, the refusals, the "already reported" and "could not delete" notes included), and each one acknowledges Discord at once, so the red "petto didn't respond in time" no longer appears; delete acknowledges and removes the message without saying anything. The buttons only work in the person's own chat with Petto and only on messages of Petto (inside a server they refuse), the server in the button is only used to read public data, and a message that is already at a limit (5 rows, 2000 characters, 40 components, 4000 characters of text) keeps itself and drops the line or the buttons. One place does it (utils/dmOrigin.js, sendDm), and User#send / GuildMember#send carry the same step so a new message cannot forget it; replies to what someone typed in the chat, and the report receipts, have no line. No new commands and no new settings.

  • ask: an AI that answers questions, with a daily limit for each member (/ai ask, /ai usage, !ask, in BETA). !ask <question>, petto ask <question>, @Petto ask <question>, the prefix of the server and !ai ask <question> answer as a reply to the message (a short, casual text that pings nobody, with a small line that says it is an AI and can be wrong, and how many questions are left today for a free member); /ai ask question: (up to 800 characters) answers in public while it thinks; /ai usage (also !ai usage, !askusage) says how many questions the member has left and when they come back. A reply to one of its answers, written by the member who asked it, is the next question with no command word (it reads up to 4 messages of the reply chain as context). It is in BETA and uses the same AI service as the ticket assistant; without its key it says it is not available and counts nothing. Limits (environment variables): free members ASK_FREE_DAILY=10 questions per UTC day, Premium (the account), the owner and PETTO_DEVELOPER_IDS unlimited; a cooldown between questions (ASK_COOLDOWN_FREE_SECONDS=15, ASK_COOLDOWN_PREMIUM_SECONDS=5); a cap per server (ASK_GUILD_PER_HOUR=60) and for the whole bot (ASK_GLOBAL_PER_MINUTE=25) that answers "I am busy" and counts nothing; ASK_ENABLED=false switches it off without a deploy. The count is one atomic statement on the new table ask_usage (a number per member and day; where ask_usage.used < limit), a question that gets no answer gives its use back, and if the database is down the question is refused. Questions and answers are never stored or logged. The server rules apply to the slash command, the prefix and the follow-up: !disablecommand ask (also by channel), !restrictcommand ask and permission levels; askusage for the count and ai for both; a server that already has an alias or a custom command called ask keeps it. ai is an everyday word, so petto ai ... is chat (petto ask ... and !ai ... work). In en, es and pt-BR; see "Ask" in docs/REFERENCE.md.

  • Prefix commands move to slash commands, grouped in umbrellas (Petto registers 67 commands: 64 slash commands and 3 menus, with 36 slash slots free; it was 31). Discord will take the prefix away one day, so everything public that was prefix-only moves now, into slash commands that only have subcommands, each one a group that makes sense and no loose command left: every old word, alias, route and short alias keeps working as it was, and each umbrella also works with the prefix (!game 8ball ..., !search yt ..., !staff mban ..., !config prefix set; an umbrella alone lists its subcommands). Each subcommand runs the code of the command it wraps with the same options, so the answers, the logs and the checks of the old command are the same; the descriptions are in English, Spanish and Portuguese (the ones of the old commands), and every subcommand has a short alias (!sma, !g8...). Permissions: Discord checks the permissions of a whole command and never of one subcommand, so an umbrella is open to everybody (a server can limit it in Settings > Integrations) and each subcommand asks, when it runs and for the slash command and the prefix alike, for the permission of the command it wraps (a member with only Kick Members cannot /mod ban) or for the role chosen with !moderation, and answers with the same private message as the old command; what the wrapped command checks by itself (the permission of the bot, the role hierarchy, the confirmation of the mass commands) still happens after, and an umbrella hands over the autocomplete of the command it wraps to who may use it. A rule of a server (!disablecommand, !restrictcommand, a permission level) on a wrapped command also stops its subcommand, a rule on the umbrella stops all of it, and an umbrella has one cooldown. !help mod ban says which permission each one needs. me, bot, auto, config, message, community, protect, greet and special are everyday words, so a word prefix such as petto never starts them (petto me ayudas and petto bot is down are chat): !me, /me, !bot and /bot do. Run node deploy-commands.js after deploying.

  • /mod: the everyday moderation commands in one slash command. /mod ban, kick, mute, tempmute, unmute, warn, softban, tempban, unban, hardban, note, case, history, jail, unjail, nickname, stripstaff, purge, lockdown, unlockdown, clearinvites, pauseinvites, lock, unlock and slowmode (25 subcommands, the most Discord allows) are the old commands with their options: each one runs the code of the command it wraps (/mod ban is /ban user, /mod tempban is /tempban, /mod lock is /channel lock), so the cases, the logs, the messages to the member and the hierarchy are the same. What a subcommand leaves out (/ban users, /mute remove, /case edit...) stays in the old command, and /ban, /kick, /warn and /channel are still slash commands. With the prefix: !mod ban @x spam, !mod k @x, !mod purge bots 50, and short aliases (!mb, !mk...). The umbrella also copies options of type number, mentionable and file, and the limits and choices of an option (the days of /mod ban are 0 to 7). In English, Spanish and Portuguese.

  • /server and /user. A tidier / list: type /server or /user and find what Petto already has. /server (16): info (!serverinfo), roles, channels, emojis, boosters, channel (!channelinfo), role (!roleinfo), emoji (!emojiinfo), invite (!inviteinfo), inrole, summary, steal (it asks for Manage Guild Expressions when it runs, slash and prefix), bots (!bots) and three new ones, icon, banner and splash, which show the picture of the server with links in every size Discord serves (128 to 4096) and in PNG, JPG, WEBP and GIF when it moves. /user (8): info (!userinfo), avatar, banner, cosmetics (!usercosmetics), permissions, id (!snowflake), first-message (!firstmessage) and activity. Each subcommand has the options of the command it wraps. With the prefix, !server info, !server icon, !user avatar @member, and !server or !user alone are the info, as !server always was (it was a word of !serverinfo, which keeps !si). New words !servericon, !serverbanner and !serversplash; the rules have the keys servericon, serverbanner and serversplash, and server or user turn off the whole umbrella. /serverinfo, /userinfo, /avatar, /unban, /purge and /timeout are no longer registered, because their umbrella subcommand has the same options and the same permission: use /server info, /user info, /user avatar, /mod unban, /mod purge and /mod tempmute; the prefix forms (!serverinfo, !si, !avatar, !unban, !purge, !timeout...) are unchanged, and a rule saved for the old name (including timeout for /mod tempmute) still applies. The error that names Manage Guild Expressions no longer repeats it twice.

  • /game, /me, /search and /staff. /game (23): 8ball, coinflip, rps, ship, roll, choose, truthordare, wouldyourather, neverhaveiever, uwu, quote, jumbo, cat, dog, fox, and the game lookups minecraft, minecraft-server, roblox, steam, chesscom, lichess, pokemon and modrinth. /me (18, what is yours): birthday, birthday-remove, birthday-view, rep, rep-give, prefix, prefix-set, prefix-reset, names, nicknames, history-clear, history-record, ranking, ranking-on, ranking-off, lastfm-link, lastfm-unlink and spotify. /search (17 lookups): anilist, tmdb, itunes, deezer, lastfm, youtube, twitch, wikipedia, wiki, weather, time, currency, crypto, compute (!calc), color, github and package; the longer ones keep their other actions in the old command, such as !anilist manga or !github issues. /staff (24, the moderation tools that do not fit /mod): imute, iunmute, rmute, runmute, voice-mute, voice-unmute, voice-deafen, voice-undeafen, voice-disconnect, voice-move, voice-drag, thread-rename, thread-lock, thread-unlock, nuke, raid, raid-list, massban, masskick, massmute, massunban, massunmute, masswarn and snipe. The commands that /staff wraps work only with the prefix, so it asks for their permission when each subcommand runs: Administrator for the mass commands, Manage Channels for nuke, Ban Members for raid, Manage Messages for snipe, Moderate Members for the image and reaction mutes, Manage Threads for the thread ones, and for voice the permission of each action (Mute Members, Deafen Members or Move Members, not all three), or the role chosen with !moderation for voice and nuke. The same gate runs inside /mod through one shared piece of code (utils/umbrella.js).

  • Nine more umbrellas and 24 commands registered as they are. Umbrellas whose groups are the old commands with ALL their subcommands (/config prefix set is !prefix set): /config (prefix, language, alias, moderation, restrictcommand, disablecommand, sanctionmessage, appeals, backup, statsconfig, recommended), /protect (honeypot, verify, security), /greet (welcome, leave, boost, dmonjoin, poj, joinrole, stickyroles), /auto (autothread, bumpreminder, reaction, reactionrole, stickymessage, timer), /message (send, editembed, sender, webhook, panel, responder, pagination), /community (suggestion, confession, confess, request, review, profile and the setup of requests and profiles), /contrib (partner, uploads and their setup), /special (counting, counter, imgonly, urlonly) and /bot (uptime, version, votes, premium). The commands that already have subcommands (and groups of their own, which Discord does not allow inside an umbrella) are registered as they are: /level, /automod, /role, /forum, /form, /logs, /permission, /antinuke, /antiscam, /invites, /autoresponder, /image, /feed, /identity, /starboard, /clownboard, /monkeyboard, /stats, /customcommand, /rollouts, /quickreply, /voicemaster, /giveawaypreset and /giveawaytemplate. !config alone lists the groups, and !config prefix set, !protect honeypot add and the rest read what they take exactly as the old commands. /level reward add and remove take the kind of level last (Discord wants the required options first); !xp reward add voice 5 @Role still works.

  • /boosterrole is its own slash command, apart from /me. The booster role is no longer inside /me: /boosterrole is registered with every subcommand of the old command (create, color, rename, icon, random, remove, share, unshare, shared, the staff group admin with 11 and the staff group filter with 3: 23 in all), with the same options and answers as !boosterrole. The member subcommands are open to everybody; admin and filter still check Manage Server when they run and refuse anyone else in private. /me boosterrole, boosterrole-color, boosterrole-rename and boosterrole-remove and !me boosterrole ... are gone (/me keeps the rest); !boosterrole ..., !br ... and the short aliases of the command (!brc, !brco, !brr, !brre...) work as before, and the four short words !mbc, !mbo, !mbre and !mbrem that pointed at the /me subcommands are removed.

  • /help command: offers the commands while you type, and the help of a command is clearer. The option of /help is now called command (it was query) and shows a list under it: every command and every subcommand (ban, ban temp, ticket category add), the ones that start with what you typed first, then the ones that contain it or have an alias that does (up to 25); private commands are only offered to the Petto team. !help ban (a command with several entries) now has a line between the name with what it does and the fields (aliases, parameters, permission, usage), and a menu to jump to any entry above the arrows, which still work (a command with more than 25 entries gets one menu for each 25, "Entries 26-29", up to 4 menus). Somebody else who presses a button or a menu of a help message that is not theirs gets a private notice ("You're not the author of this help menu!") instead of a failed interaction. Run node deploy-commands.js after deploying (the option has a new name and autocomplete).

  • !bots lists the bots of the server for everybody; the slash slot numbers moved to the team-only !slots. !bots (alias botlist, also /server bots and !server bots) is a normal command in the Information category, with no permission: it shows only the bots of the server, the oldest first, with name and tag, ID, Petto marked, the Verified flag and when each joined, ten to a page with the usual buttons (only the author turns the pages), and it never pings. A big server is never fetched member by member: only the bots Petto already knows are listed, and the list says so. The numbers it used to show now answer to !slots (prefix only, hidden from help, only the owner and PETTO_DEVELOPER_IDS, like !botstatus; nobody else gets an answer): slash commands registered out of 100 and the user and message menus out of 5, the commands close to their 25 subcommands or 8000 characters, what Discord has compared with what Petto loads, and how many commands work only with the prefix and whether there is room to move them to slash. !bots counts the size of a command in the language where it is longest, instead of adding Spanish and Portuguese to the English.

  • Test the level-up announcement: /level notify test and /level voice-notify test (also !xpn test). test is one more mode of notify and voice-notify: it sends you the announcement of your next level exactly as the settings say (the channel, your DMs or here; the embed, card, ping and message; "every N levels" and "delete after" do not hide it) and saves nothing. With the announcements off it says so.

  • A mistyped command gets suggestions. !bna now answers "Unknown command bna. Did you mean !ban?" with up to three of the closest commands (the same ones !help <word> suggests), in en, es and pt-BR; with nothing close it answers as before.

  • Premium that is over is deleted automatically. Every 10 minutes the bot removes the manual grants that were revoked or are past their end date, and the paid plans 7 days after they expired or were canceled and passed their end date (so a late webhook or a payment question still finds the row). A plan that is still running is never touched. Before a row goes, the servers it still held have their Premium profile reset and, afterwards, the Premium roles of its owner are synced again. The slot assignments go with it.

  • Invite tracker: three new settings, all off or as before until a server changes them. quick_leave_minutes (0 is off): a member who leaves within that many minutes of joining counts as a fake join, so the invite is not credited; ignore_bots (off): bot accounts are written down with the source bot and never credited to an inviter; subtract_leaves (on, as it always was): whether the members who left are taken off the total. The total is worked out in one place for /invites, the leaderboards, the reward roles, {inviter.invites} and the dashboard. Set them with /invites config (new options, Manage Server; !invites config --quick_leave_minutes 10) or in the dashboard, Statistics > Invites > Settings. Run schema.sql (three new columns of invite_config).

  • The welcome can wait for the member, and a server can have a second welcome. New setting welcome_wait (Onboarding > Messages in the dashboard): off (the default, nothing changes: the welcome goes out when the member joins), rules (it waits until the member accepts the server rules, Membership Screening) or rules_onboarding (it also waits until the member finishes Discord's onboarding, but is sent anyway 10 minutes after the rules were accepted, or 30 minutes after joining when there are no rules, because Discord lets members skip the onboarding and its flag may never be set). Only the welcome in a channel waits: the DM on join, the ping on join, the logs, the invites, the join roles and the level bonus stay immediate. A member who never accepts the rules is never welcomed, and one who leaves is dropped. The waiting members are kept in the new table join_waiting (a row per member, removed when the welcome is sent, when they leave or after 7 days), so a restart loses none; one timer for the whole bot sends the ones whose limit passed, and a server where nobody waits costs no query. The second welcome has its own channel, message or saved design and switch (!welcome second-setup, !welcome second-disable, the dashboard), is sent right after the first, follows the same setting, and one failing (a missing channel or permission, said once an hour in the log) does not stop the other; !welcome test and !welcome status cover both. New columns of member_events_config: welcome_wait, welcome_second_enabled, welcome_second_channel_id, welcome_second_message and welcome_second_embed_template.

  • Image cards: 34 new default designs. A gallery of ready backgrounds, each with its own text colors and a tinted panel so any name stays readable: animals (duckling, cat, fox, bunny, panda, frog, bear, penguin, hedgehog), fruits (strawberry, peach, lemon, watermelon, cherries, orange, blueberries, pineapple), flowers (cherry blossom, rose, lavender, sunflower, daisy, tulips, lotus) and nature (starry night, aurora, ocean, misty forest, desert dusk, galaxy, autumn, snow, sunset, cloud rainbow). A card uses one with petto:<id> as its background picture (petto:fruit-strawberry); the ids, names in English, Spanish and Portuguese and the families are in the wiki. The pictures are original, drawn from code (scripts/designs), small WebP files (under 30 KB each, 604 KB in all) read from disk only when a card that uses one is drawn, with a cache of 6 decoded pictures; an unknown design, or a background picture that cannot be loaded, falls back to the default design. The basic layouts take an optional panel color and strength. The two default rank pictures are now WebP (10 KB instead of 190 KB).

  • Variables: {user.account_age}, {user.account_age_days} and {user.joined_age}, and a variable written with other dots, underscores or capitals ({user.displayname}, {server_member_count}) now works when it can only mean one variable.

  • Forum support (!forum, off until a server sets a forum up). Members open help posts in a forum channel with a panel: a card with an Open post button (the text, picture, colour, button and a saved design are editable, and posting the panel again edits the message that is there), a form (title, description, up to three more questions of the ticket kinds and optional pictures, five parts at most), a menu of the forum's tags (the type of inquiry; skipped when the forum has none, optional or required, never the staff-only tags or the Solved tag) and then the post: first message Post opened by @user - title and the description (a template with variables, or a card), the answers and pictures, a card with the guidelines and the staff roles to ping, slowmode, and a private link to the post. Limits: open posts per member (3 by default), a wait between two posts, a required role, blocked roles and members. A server can have up to 5 setups (one per forum). It works with the prefix and as /forum, with the same subcommands: !forum lock (!tl) answers with a green card @staff: Successfully locked #post, then unlock (!tul), close (lock and archive, the card first), reopen, solved and unsolved (the Solved tag, made when the forum has none and Petto may edit the forum), rename, tag add|remove|list, claim and unclaim, move (a message of a normal channel, by reply, link or id, becomes a post with an "Original Message" card and a pointer left under it), list (paged), panel, setup, set <setting> <value>, status, enable, disable and delete, and a short alias for each (!frc, !frs...). The author can close, solve and rename their own post (each can be switched off), the staff roles of the setup and members with Manage Threads can do the rest in any post (in a forum with no setup only Manage Threads works), and a staff member who only has a role cannot act on the post of a member with a higher role. Automation by one job a minute that reads an index (no walk through the posts): lock or close after N quiet days, lock or close some hours after Solved, and with adopt the posts made by hand are kept, get the guidelines and, when a tag is required, are asked for one and closed if none comes in time. A message in a post writes the last activity at most once every 5 minutes. The log has a new category forums (opened, locked, closed, solved; each can be switched off per setup). New tables forum_setups and forum_posts (they go with the server) and the routes the Forums page of the dashboard uses (/forums/ping, channels, posts, panel, action; the page is part of the Tickets section of Dashboard access). In English, Spanish and Portuguese.

  • Petto's own icons in the menus and the page buttons. The select menus of the report categories, the quick setup features, the backup menu, the /help categories, the quest rewards and the filter and sort menus of /inrole, /emojis, /roles, /channels, !disablecommand list and !forum list show Petto's application emojis instead of plain text or unicode (/emojis still and animated have none yet); the forms panel with the menu style shows the emoji of each form's button; the page buttons of every list (first, back, next and last) use the same icons !help and /top already had; and the category of the integrations in the !help menu has its own link icon.

  • !botstatus device normal|phone|android|ios for the team. It chooses what Petto shows next to its status dot: normal (also default and desktop) is the plain dot, phone (also mobile) is the phone app of PETTO_MOBILE_CLIENT (Android by default), and android and ios force that app. The choice is saved (presence_device in bot_settings) and wins over PETTO_MOBILE_STATUS at startup; with nothing saved, or a database that cannot be read, the environment decides as before. Discord reads it when the bot connects, so a change answers first and then restarts Petto after a few seconds (the host starts it again); the same device again restarts nothing. !botstatus alone shows the status and the device.

  • Two error logs: the general one and a priority one that pings the team. The existing error channel (PETTO_ERROR_LOG_CHANNEL_ID) is now the general log: warnings, rate limits, Redis and the errors Petto expects (a button pressed after its three seconds, a channel or message that was already deleted, a missing permission of a server, a role that a server deleted after choosing it in a setting, a network or Discord hiccup) arrive there as warnings, each with a line that says what it means, and never ping anybody. Every other error goes to the new priority log (PETTO_PRIORITY_ERRORS_CHANNEL_ID; without it the card is posted in the general log, marked as priority, and a warning says so once). The priority card shows what happened, what it probably means, the server, channel and user, how many times it happened in the last 10 minutes, the top 6 lines of the stack with secrets removed and a "Copy this to investigate" block to paste to whoever investigates. The same problem again inside 10 minutes edits the card instead of posting again. It pings PETTO_PRIORITY_PING_USER_IDS (default: the first of PETTO_DEVELOPER_IDS, else the owner) and optionally PETTO_PRIORITY_PING_ROLE_ID: at most one ping per problem every 30 minutes and 5 an hour, and nothing in the text of an error can mention anybody.

  • node scripts/make-brand-characters.js [folder] draws the nine Petto characters alone on a transparent background for the brand (Pipo the duck, Luna the cat, Chispa the fox, Nube the bunny, Bambú the panda, Lili the frog, Miel the bear, Copo the penguin and Bellota the hedgehog): one PNG each in the same scale, trimmed to the drawing plus a margin, and a contact sheet on a light and a dark background. The pictures are not kept in the repository, and the animal card designs are unchanged.

  • The Petto team can blacklist servers that break the terms of service or the privacy policy, and DM reports have no number and cannot be reopened. Petto leaves a blacklisted server, tells its owner why with a link to support, the terms and the privacy policy, and leaves again the second it is added back. A report of a DM that the team marks as handled is closed for good: its card has no button to reopen it, the table refuses to open it again, and the thanks the reporter reads no longer shows a number.

Changed

  • Feeds: an image-first card for Reddit and Pinterest, only the picture for the animal and pictures feeds, and the default words only for the feeds of a creator. Default words: the line "Hey everyone! X just posted..." above a notice is sent, when the server wrote no words of its own, only for the feeds that follow a creator, a channel or a project by name: YouTube, Twitch, Kick, Bluesky, Modrinth, Mastodon, Tumblr, Letterboxd, GitHub, npm, PyPI, Steam and the music platforms. Reddit, Pinterest, RSS, AniList, the animals, the pictures by words, the Pokémon, Wikipedia, Chess.com and Epic Games are only their card; feeds that had no words of their own stop sending the line, and a feed with its own words keeps them exactly as they were (feeds.default.pin is removed). Every platform is classified in a table in src/feeds/card.js and the check fails for a platform that is not. Reddit: the card is a Components V2 container with the color of the platform: ### <icon> [r/sub](link), the title as a link to the post, the first 300 characters of a text post as a quote, the picture in a media gallery (the file the post links to, else the preview in its text; never the 140 pixel thumbnail that sat beside it), a small line u/author • <time> and the button "Read on Reddit"; the submitted by /u/... [link] [comments] that Reddit adds to every entry and the footer "New post · r/sub · a day ago" are gone. Pinterest: ### <icon> [board](link), -# Pinterest ∙ owner, the title of the pin only when it has one, the picture of the pin in a media gallery (the 236x file of the feed is read at 736x, and the small one is used when the larger fails the picture check just before it is posted; the picture is also found when the feed writes its text with other escapes, without quotes, as a media tag or as a link to the image host) and the button "See on Pinterest". /feed test and the dashboard test now show the newest thing of a board, a subreddit or a blog even when it is older than three days, instead of an example without a picture. The animal feeds (cats, dogs, foxes, birds, ducks, capybaras, bunnies, animals) and the pictures feed are a clean card with the color of the platform and the picture, with no icon, source, search words, time, button or default words. !animal (/game cat|dog|fox) answers with only the picture: the source name and the "Open the picture" button are gone (integrations.animal.open is removed). Every other feed keeps the card it had (Pokémon, Wikipedia, Chess.com, Epic Games, random music, AniList, Bluesky, Mastodon, Tumblr, Letterboxd, RSS, YouTube, Twitch, Kick, GitHub, npm, PyPI, Steam, Modrinth and the music platforms): the platform icon, the title, the footer and the button, checked in scripts/check-feeds.js against the cards the previous code built (scripts/fixtures/feed-cards-old.json). Every safety rule of the cards stays: no pings from what a site sends, links only http(s), buttons and pictures with an address Discord takes, the text of the message under 4000 characters. In en, es and pt-BR.

  • /help answers in the channel, like !help, and every option of its menus says what it is. The browser, /help command:<command> (one command or a command with its entries, the arrows, the entry menu and close) and every page you open from the menus are now a public message that is edited in place, instead of a private one; the buttons and menus still belong to who asked, and somebody else who presses one gets the private notice. Only "command not found" stays private. The menus of /help and !help (the categories, the commands of a category, the entries of a command and the menu to jump between the entries of one) show the first sentence of what each option does as its description, in the language of the server, cut at 100 characters with an ellipsis, and the label is the whole path (ticket category add, not just add). !help also has a button to the page with every command: the browser keeps opening as always, and its link buttons are now Dashboard, Docs, All commands (the Commands page of the website, in the server's language) and Support server.

  • !wiki answers questions about the terms and conditions, and shows pictures. !wiki terms lists the sections of the Terms of Service with a link to each one, and a question (!wiki terms can my server be banned, !wiki can I get a refund, !wiki privacy delete my data) shows the best one to three points of the terms, privacy, refunds or cookies pages in the language of the server: the section heading, the exact words of the page and a link to the section, with buttons to the four pages. When nothing in them answers, it says so and points to the support server. Wiki pages come in the language of the server (when the page exists in it), as a card with the picture of the page, the pages next to it and the buttons "Open page" and "Wiki home"; !wiki ban finds the moderation page first. The pages are read live and only the extracted text is kept, for 30 minutes.

  • !ping and /ping no longer show the number of members. The card keeps the two pings, the links, the shard and the number of servers; how many members Petto has is private.

Fixed

  • A role that a server deleted no longer breaks verification, join roles, reaction roles, role buttons, level rewards or invite rewards. When a server picked a role in a setting and later deleted it, Discord answered "Unknown Role" (code 10011), the verification said "those letters are right, but I was unable to update your roles. Contact a moderator" to every member, and the error went to the priority log as a code Petto did not know (Server: Not available, because a button in a DM has no server; the card now names the server being verified for, on the letters inside Discord and on the web page). Now the verified role is made again (name from the verification setup, no permissions, below Petto; only with Manage Roles and room under the 250-role limit), saved in the verification settings and given to the member; when it cannot be made the member still counts as verified (the single-use pass is kept, they are logged, told kindly that the server has no role for verified members yet, and not retried), the gate role still comes off, and a role that is only refused for another reason is still an error as before. In the join roles, reaction roles, role buttons and menus, level rewards and invite rewards the roles that exist are given and only the dead one is left out (a list that Discord refuses is split role by role), the staff is told once a day for each role in the log channel of the server (verification for verification, roles for the rest: which role, where it was chosen and what to do), and the dead role is taken out of the setting (verification, join roles, level rewards, invite rewards) only when the staff could be told, so nothing is deleted without a note. Unknown Role (10011) and Invalid Role (50028) are expected errors in the triage (fix config-role-missing: "a role chosen in a Petto setting was deleted from the server, so the server needs to pick it again. Not a Petto bug"), and the explanation of Missing Permissions now also covers a role above Petto's highest role. The verification page shows the same message when the server has no role for verified members. No new settings.

  • The "Verify here in Discord" button has Petto's shield instead of the letters emoji (Android drew the emoji as "abc"); the verification page and the dashboard do not use it.

  • Who may send as Petto is checked the same way on every route, and a missing permission always means no. !send, petto send, @Petto send, !message send, its short alias and /message send now need Manage Messages in the server (what the default permission of the command means; Manage Messages that only one channel gives is not enough) plus seeing, writing in and having Manage Messages in the channel the message goes to. The check runs first, before the text, the files or the embed code are read, and a member who cannot be read (no permissions, a raw member of an interaction, a channel that cannot say what they may do) is refused instead of passing. A refusal is private (ephemeral on the slash command) and names the permission in the language of the server. The prefix no longer fails silently for a member whose permissions cannot be read: it answers that the permission is missing, and the umbrella gate and its autocomplete use the same strict yes-or-no. A permission level, a !moderation role or a restriction can only add limits: none of them opens send. The new scripts/check-send-permissions.js (real permission objects, channel overwrites computed as Discord does) runs every way to start send with members who have nothing, only Send Messages, Manage Messages only in the channel, Manage Messages in the server and Administrator, and then every command word, alias and short alias and every umbrella subcommand as a plain member; the member-access check now fakes channel permissions honestly (whoever cannot be read has nothing) and lists the message subcommands that post for a person as refused to a plain member.

  • The number of a form belongs to its server (!form). Forms were numbered with one counter shared by every server, so the first form of a new server could be number 1387, and that shared id was what !form info showed. Each server now numbers its own forms 1, 2, 3...: !form list shows the number of each form (#1), !form info and !form create say it, and the number works anywhere a form is asked for (!form open 2, !form panel #apply 1 3), next to the name. A number only finds a form of the server where it is typed, and the internal id (the one buttons and menus carry) is never shown or accepted as a number. The numbers of existing forms are filled in once, per server, in the order the forms were made (schema.sql does it on start and applying it again changes nothing; src/db/migrations/2026-11-01-per-server-form-numbers.sql is the same step for a database migrated by hand); a new form takes the next number of its server, also when the dashboard inserts it. A number is not reused while a higher one exists (deleting the last form frees its number). The dashboard routes of forms return the number (number in the form, form_number in each submission, pending_by_number) and accept form_number / form_numbers, while form_id / form_ids keep working. The appeal forms had the same problem in the address members see (petto.sbs/appeal/<server>/form/<id>): they get their own number per server in the same way, and the appeal routes of the bot accept form_number next to form_id (which keeps working). Ticket forms are only ever named by their name (the id stays inside buttons), so they are unchanged.

  • Every answer of a prefix command is a reply to the message that typed it. A command that took more than an instant (it "thinks" first, then answers) and the follow-up messages of many commands were posted as loose messages of the channel, so after a while nobody knew who had run them. Now !help, !prefix, !timer run and every other prefix command answer as a reply to the message that triggered them (the first answer, the ones after a "thinking" moment and the follow-ups). If that message was deleted in the meantime the answer still goes to the channel instead of being lost. Messages a command posts on purpose in a channel (panels, !send, notices inside a ticket) are not replies, as before.

  • The level-up card no longer hides part of the position chip. With a long name and a long word for the position (Rango #10), the chip ran under the hexagon of the level before. The name, the chip and the line under the name now stop before that hexagon: the name gets what is left after the chip (it gets a little smaller, and is cut with ... only when it really cannot fit).

  • A wrong choice typed with the prefix is told, not saved. An option with fixed choices (mode: off, reply, channel, dm, style: card, embed, both...) took whatever word followed, so !xpn test saved test as the mode and the database refused it with a generic "Something went wrong". The prefix now reads those options like slash commands: the case does not count, the name or the value works, and a word that is not a choice answers "tets is not one of the choices of mode. Use one of: off, reply, channel, dm, test." (en, es, pt-BR).

  • Changing the language in one copy of the setup message changes the others. When Petto joins a server, the setup message is in the private channel and also arrives by direct message to the owner and to whoever added it, each with its own language buttons. Pressing a language button used to rebuild only the message that was pressed, so the others stayed in the old language and had to be pressed again. Now the copy in the setup channel and the direct messages to the owner and to whoever added Petto are rebuilt in the new language too (it looks at their last 15 messages; nothing new is stored, and a failure is only logged).

  • petto always works as a prefix. A server that chose a prefix of its own (!n, or !prefix !n to make it the only one) lost petto help, because the word was dropped with the old list. The word petto now starts a command in every server, whatever its list says (saved lists that do not have it included), a longer prefix of the server still wins, !prefix remove petto is refused ("petto always works and cannot be removed"), and !prefix and !prefix <prefix> say so. Chat after the word (petto es el mejor) is still chat.

  • A timer pings what its text mentions. A timer always sent with every mention blocked, so a plain @everyone (or @role) came out as text and pinged nobody, even without the ! of a silent mention. It now sends like a message typed by the staff: a normal mention pings (@everyone needs the Mention Everyone permission of the bot; otherwise Discord only shows it) and one written with ! in front stays silent.

  • The invite tracker asks Discord less and no longer points at the wrong invite. A server where Petto cannot read the invites is no longer asked at start, after an error (403, 429, 5xx) a server is left alone for a while with one short log line instead of being asked on every join, a server added while Petto runs gets its invites read once, an invite created while Petto runs keeps its use limit (a single-use invite is found when it is used), an invite event no longer creates a partial list that made the next join point at the first invite, and the memory of the tracker is capped. A leave told twice is counted once.

  • A rule saved for one action or shortcut kept its name when the bot starts. !disablecommand hug is saved under hug, but the tidy-up that runs when Petto starts rewrote it to act (the whole command); a name a route stands for (hug, servericon) is now kept.

  • Forum tools: two wording fixes. !forum tag list shows "(staff only)" next to a tag only staff can use instead of a stray -#, and !forum status names Create Public Threads in Spanish and Portuguese.

  • A long result no longer ends a command with an error. A mass unban of thousands of users listed every case number, passed the 4000 characters Discord accepts in a text display, and failed with "Something went wrong" after the unbans were done and before they were logged. It now lists the first 20 cases and "and N more" (the same cap is on the lists of the bulk ban, kick, mute, unmute and warn, and a few others), the log is sent before the result, every card keeps its text inside 1 to 4000 characters per text display and 4000 in all (cut at a line or word, never inside a code fence, mention, emoji or link), and if Discord still refuses an answer for its size the member gets one short text that says what happened.

  • Image cards: a long name no longer runs over the next line. The texts of the basic layouts get smaller (down to 55%) before they are cut, and a word wider than the card is broken. Names with emoji, Arabic or Hebrew letters are drawn instead of empty boxes (two small fonts, 105 KB, are added for those letters).

  • Embeds: a picture link over 2048 characters is left out instead of making Discord refuse the whole message, and a Components V2 gallery no longer cuts such a link.

  • A refusal is told only to the member who asked, on the slash commands. A member who tried /form (any of its staff subcommands), /rollouts, /invites bonus|config|reward|reset or /premium grant|revoke without the permission used to be answered in the channel (the form and rollouts ones after a public "thinking"), where everybody saw who tried; now the answer is private, before anything is shown.

  • The page buttons of /top answer other members. Pressing the buttons of somebody else's ranking did nothing (Discord showed "This interaction failed"); now it says in private whose they are and how to get your own (!top), in en, es and pt-BR.

  • "Something went wrong" says what to do. The answer of a command that failed for a reason Petto did not foresee now adds to try again in a moment and to tell the team in the support server (the link is in /help), in en, es and pt-BR.

  • A Pinterest board no longer posts an empty card again and again. Some boards list a pin that no longer exists: it has no picture, no title and no date, and Pinterest gives it a new address every time the board is read, so Petto took it for a new pin on every look (every 15 minutes) and posted a card with only the board name and the button. A pin with no picture is now never posted: when its link has a number, the picture is asked once from Pinterest's public pin information (6 seconds at most, the answer is kept), and a pin that still has none is marked as seen, counted, and said in the log once an hour for each feed (the feed and pin ids only). Nothing is posted twice because a step failed: what a look found is written as seen before the first notice is sent, and when the database cannot write it the bot keeps it in memory until it restarts. An item with no date (Reddit, Pinterest, RSS, Tumblr, Mastodon, Letterboxd) is as old as the first time it was seen, so it is not new for ever and is posted once at most. When many pins are new at once, only the newest three are posted, the others are marked as seen, and one line in the log counts them. The test of a feed no longer picks a pin without a picture. Checked in scripts/check-feeds.js.

  • Tickets fix themselves instead of failing. Every ticket button, menu, form and rating answers Discord first, so a slow moment no longer ends in "This interaction failed" (the "Unknown interaction" of the rating and delete buttons). A channel or message that is already gone counts as done (the ticket is closed in the database and its channel forgotten), pressing a button twice is harmless, an expired press is a warning and the work still finishes, a timeout or rate limit is tried once more, and when it still fails the member gets a short friendly message and the team gets a priority error. Deleting a ticket saves its transcript first and is not done at all if that fails. The check that closes tickets whose channel is gone also forgets the message of a ticket panel whose channel was deleted, and tells the general log how many it healed. An expired interaction on any command or button is a warning, not an error.