Skip to content

Petto v0.7.9-2

Choose a tag to compare

@github-actions github-actions released this 30 Oct 20:20
Immutable release. Only release title and notes can be modified.
6484eb1

A patch of 0.7.9, shown as 0.7.9~2.

Added

  • /act: every interaction command in one slash command. The 36 interaction commands (hug, pat, slap...) were 36 slash commands. They are now the subcommands of one command, /act, in five groups: love, play, fight, feel and react (in Spanish /accion, in Portuguese /acao, with the names and descriptions translated). So they take 1 of the 100 slash commands Discord allows instead of 36, and Petto registers 31 commands (with /messagelinks), down from 65. With the prefix nothing changes: !hug @member, !hf, !lol and every other word still work and run the same code, !help hug finds them, and !disablecommand hug and !restrictcommand hug apply to that action only, with the prefix and with /act, while !disablecommand act turns off every action.
  • 43 new interaction commands. baka, bored, celebrate, cheers, clap, confused, cool, drool, evillaugh, facepalm, handshake, headbang, love, lurk, mad, nervous, nod, nuzzle, nyah, peck, peek, pinch, pout, scared, shout, shrug, shy, sigh, sip, sleep, slowclap, smack, sneeze, sorry, stare, surprised, sweat, think, thumbsup, tired, woah, yawn and yay. Each one has its gif, its response button and its counter ("Ana has received 3 cheers"), in English, Spanish and Portuguese, like the ones that were there before.
  • !uwu (also !uwuify) turns a text, or the message you reply to, into uwu speak: Hello, really lovely! becomes Hewwo, weawwy wuvwy! nya~. Mentions, links, code, custom emojis, timestamps and Markdown are left as they were, nobody is pinged, a long text is cut under Discord's limit, and the same text always gives the same result. In Spanish and Portuguese only a final r and n before a vowel are softened, so the text stays readable.
  • Four small games: !coinflip, !wouldyourather, !neverhaveiever and !truthordare. !wouldyourather posts a question (or your own two options, !wyr pizza, tacos) that is voted with two reactions; !neverhaveiever posts a statement to answer with a check or a cross; !truthordare [truth|dare] gives a truth or a dare. They are prefix commands, in English, Spanish and Portuguese.
  • Message link embeds, off by default (/messagelinks, !messagelinks). When a server turns it on, a Discord message link of the same server (discord.com, discordapp.com, ptb. and canary.) gets a reply with an embed of that message: the author, the text (cut at the limit of an embed), the first picture as the image, the other files by name with links, the pictures of the message's own embeds, a note for each sticker, a "replying to" line, the channel and the time in the footer, and a Jump to message link button. It only shows what the member who posted the link can already see: that member and Petto both need View Channel and Read Message History in the linked channel or thread (a private thread only for those in it or who manage threads), the link must be of the same server, an NSFW channel is never shown in a channel that is not NSFW, and an ignored channel is never read. Links inside code, spoilers or <...>, links from bots, system or ephemeral messages and deleted messages are left alone, and a message with the link of itself too. At most 3 links per message and one answer every 3 seconds in each channel; there is no other limit and none depends on a plan. The reply pings nobody (allowedMentions with nothing to parse), is a reply that does not fail if the message is gone, and the member's message is never deleted. Without Embed Links it does nothing and says so once in the log. !messagelinks (also !msglinks, !linkembed, !mlinks; Manage Server) has on, off, status, ignore #channel and unignore #channel, and the same is the slash command /messagelinks (31 commands are now registered with Discord). The setting is in the new table message_link_settings (off by default, with the ignored channels); the switch is read from a small bounded memory (5000 servers, 5 minutes, forgotten on petto:invalidate when the dashboard saves) before a message is parsed, so a server with it off costs no database query. The Community settings page of the dashboard has the switch and the ignored channels.
  • Snipe: reactions, clear and more words. /snipe has two new subcommands, reactions (the last reaction taken off a message of the channel: the emoji, who removed it and a link to the message) and clear (forgets what is saved for the channel: all, deleted, edited or reactions). !editsnipe and !esnipe are !snipe edited, !reactionsnipe and !rsnipe are !snipe reactions, !clearsnipe and !csnipe are !snipe clear, and !snipe 3 shows the third from last deleted message. Every part still needs Manage Messages. Everything is in memory only and small: 10 entries per channel and kind, the 200 channels used most recently, 1500 remembered messages, nothing older than 24 hours, and only what is shown is stored (the text cut at 1000 characters, up to 8 files, the number of embeds, the avatar hash), never the message itself.
  • Short prefix aliases for most commands with subcommands. !is is !image sepia, !iro is !image rotate (!ir is !inrole), !tko is !ticket open, !tma is !timer add... about 770 words (the table is src/utils/short-aliases.json, made by npm run gen:short-aliases from the real command list, committed, and only ever added to, so a word never changes meaning). The rule is the initial of the command (or its short name: tk, gw, xp) plus the initial of the subcommand, and more letters of the subcommand when that word is taken; nothing is taken from an existing command, alias or route, and a subcommand with no short free word has none. They are prefix only (no slash commands), and each is the normal route of the real command, so its permissions and the !disablecommand and !restrictcommand rules apply. A word the server chose (an alias or a custom command) wins over a short alias, and a short alias no longer blocks the name of a new server alias or custom command. An everyday word in English, Spanish or Portuguese (is, if, si, um...: src/utils/commonWords.js) works with a symbol prefix (!is) but never after a word prefix, so petto is the best is chat. The wiki and the Commands page list the words from the same table.
  • Ticket forms: choices, checkboxes, member pickers, pictures and files. Besides short and long answers, a question of a ticket form can be a dropdown menu (one or several choices, up to 25), radio buttons (2 to 10), a group of checkboxes (up to 10), one checkbox (it can be required: it has to be ticked), a file upload (pictures only, or any file, 1 to 5 files), a member, role or channel picker (up to 25) and a text that only informs (Markdown works, shown above or between the questions). Every question can have a description under its label, a form still holds up to 5 parts and at least one that members answer, and a form that only has text questions is stored, shown and answered exactly as before: the new kinds are only keys in the fields column of ticket_forms, so no column changed. The questions are built and read with the same code as the forms of Petto Code (src/utils/modalParts.js, now shared by both). /ticket form create and edit (the buttons) get Add choices, Add file upload, Add picker and Add text, and the fields: text takes the new types (select|topic|Topic||required|Bug,Billing, file|proof|Screenshot||required|images,3). A form saved by the dashboard is never trusted: what Discord would refuse is cut down or left out when the window is shown.
  • Ticket answers show each kind of answer, and the pictures and files last. The card in the new ticket shows text as before, choices as a list, a checkbox as ✅ or ❌, members, roles and channels as mentions that notify nobody (no @everyone, role or member is pinged by an answer), and every picture as a media gallery. Discord's links to what is uploaded in a form can stop working, so Petto downloads each file (the safe download of Petto: public addresses only, a time limit, 8 MB for each file, never more than the server takes) and uploads it again into the ticket channel, where it stays as long as the ticket does and the transcript keeps it; other files are file cards with their name and size. If a file cannot be copied (too big, a failed download, or more than 10 files in a ticket) the card keeps its link, name and size and says it may stop working. A question that takes pictures only checks the type Discord gives and the first bytes of the file, and refuses anything else with a private message in the form, before any ticket opens. File names are shown with their Markdown, links and mentions escaped, and long answers are cut to 1000 characters and split into more cards when Discord's 4000 characters of text, 40 components, 10 files or the upload limit of a message would be passed.
  • Verification panel: an optional picture. The panel (the message with the buttons to verify) could only show the small icon of the server. verification_config.panel_image_url (a new column, an https link) puts a picture at the top of the panel as a media gallery; with none, or a link that is not https, the panel is exactly what it was, and a panel that stands is edited in place when it is posted again. The DMs of the verification can already have pictures through a saved embed (!verify template).
  • Silent mentions: a ! right before a mention shows it without notifying. In any message Petto sends (plain text and Components V2 text: text displays, sections and containers), !@everyone, !@here, !@Moderators, !@"Role with spaces", !<@&id>, !<@id> and the output of a variable (!{user.mention}, !{role.mention}) show the normal blue mention but notify nobody; without the ! a mention works as before. The ! is removed from what is sent, a role written by name is found in the server (any case; a name that is no role stays as typed), \!@everyone shows !@everyone as plain text, hello!@here is not silent (the ! must follow a space, a line break, punctuation or the start), and the text of code (`...`) is left alone. It is done once, as the last step before every send (replies, edits, follow-ups, webhook identities and direct messages included), by taking the silent mentions out of the message's allowedMentions while the normal ones keep their policy (parse: [] stays parse: []; silent mentions never add a notification). In a classic embed (title, description, fields, footer) nothing notifies, so only the ! is removed. Limit: a message with a silent and a normal @everyone or @here notifies, because Discord decides that for the whole message. The help of embed codes (!embed vars) lists it in English, Spanish and Portuguese. There is no new command.
  • Several prefixes per server. A server now has a list of up to 10 prefixes (1 to 12 characters, no spaces, no @ and no backticks), and the first one is the main prefix: the one cards, help and examples show. Servers that still used the default ! now have ! and petto (!help and petto help both work), and every server that created from now on starts the same way; a server with a prefix of its own keeps exactly that one. , is not a default (other bots use it) but any server can add it. A prefix that is a symbol (!, ,, ?, p!) is typed attached to the command (,help); a prefix that is a word (it ends in a letter or a number, like petto) is not case sensitive and needs a space (Petto help). The longest prefix is tried first, so !!help is read with !! when a server has both !! and !; the prefix of a person (!myprefix) and the custom commands that follow the prefix work with every prefix of the list. The list is kept in the new guilds.prefixes column and the old prefix keeps the main one, so older code keeps working.
  • !prefix manages the list. !prefix shows it; !prefix add <prefix>, !prefix remove <prefix> and !prefix reset (back to ! and petto) change it; !prefix <prefix> (or !prefix set <prefix>) still makes that prefix the only one. It needs Manage Server, as before, and every text is in English, Spanish and Portuguese. There is no new slash command.
  • Dashboard: Command Prefixes. The General page has a Manage prefixes button that opens a window: write a prefix, press +, remove the ones you do not want with their x, and Save. It says what is wrong with a prefix (too long, spaces, repeated, @, more than 10) before saving and works on a phone, in English, Spanish and Portuguese.
  • The setup message says which language Petto chose and why, with buttons to change it. The setup message for the administrators, the guide for the owner and the message sent by direct message when the private channel cannot be made now say, in the chosen language, whether the language came from the server's preferred language, from the words of its channels and roles, or from nothing (English), and have the buttons English, Español and Português. Only people with Manage Server can press them (anyone else gets a private notice), the message is redrawn in the new language and says it is done, and the panels Petto already posted are redrawn like !language does. A language chosen with !language, the dashboard or the buttons is saved as chosen (guilds.language_source) and is never offered for change. The first time an administrator whose Discord is in Spanish or Portuguese runs a slash command on a server whose language Petto only detected, a private note in their language says that !language switches it (once for each server).
  • Support mode: the owner of Petto can fix a feed, a counter, a timer or a panel on a server he does not manage. The dashboard lets the owner open any server to fix errors, and the bot now answers him on the few routes that do it (feeds: update, test, search, resolve, preview; counters: refresh, reorder, announce; send a timer now; the confession panel; sync server data) and on nothing else: creating or deleting, Premium, moderation, backups, verification, forms, tickets and access stay closed. The bot keeps this list itself, still asks for the dashboard key, and writes one line in its log for each use. The saved copy of each server also says whether Petto can see a channel (bot_can_view), so the dashboard can tell "cannot see it" from "cannot write in it".
  • The dashboard can tell whether Petto may post in a channel. The saved copy of each server now says, for every text channel, whether the bot can see it and write in it (bot_can_send). The Feeds page uses it to mark the channels where Petto cannot post, to say it under the picked channel, and to warn on a feed whose channel stopped allowing it. Ping on join also says in the log (once an hour for each channel) when it cannot post in a channel, instead of failing without a word.
  • Feeds: each server numbers its own, and the numbers never have holes. The number of a feed (!feed list, !feed remove 2, !feed test 3...) was one for all servers (feed 40, feed 41...). Now each server has 1, 2, 3...: a new feed takes the next number, and when one is deleted the ones after it move down (delete 2 of 1, 2, 3, 4 and the old 3 and 4 become 2 and 3). The feeds that already exist are numbered in the order they were made. The dashboard keeps using the internal key, so nothing changes there.
  • Feeds of accounts say who posted, when the server wrote no words. A feed of YouTube, Twitch, Kick, Bluesky, Pinterest, Modrinth, Reddit, GitHub, npm, PyPI, Steam, AniList, Spotify, Deezer, Apple Music, Mastodon, Tumblr or Letterboxd with no message of its own now sends a line above the card, in the language of the server: Hey everyone! **Channel** just uploaded a new video., ... is live now., ... has a new version., ... has published a new project. (the ping, when the feed has one, goes first). A feed that already has a message keeps it as it is, and nothing is added to the feeds that post on their own (pictures, animals, Pokémon of the day, free games, music for you, RSS) or to the notice of a stream that ended.
  • Feeds: leave a word out of a pictures feed, and funny animals. A word with a minus sign is left out: !feed add pictures 15m pink flower anime -character posts pink flowers drawn, without a character (up to 3 words; -character, -person or -girl also leave out the pictures of people). The tags have to be in English and well written: a word that no place knows now says so when the feed is added (noPictures) instead of posting nothing. Funny animals, like the pictures of memes of cats or dogs: !feed add pictures 15m cat memes (or dog memes, or only memes) and !feed add animals 15m cat memes; the ones that were not posted yet go first. The feed preview of the dashboard now shows a real picture of the search (the dashboard sends the account that was chosen), and the animals feed no longer posts the same picture twice in a row. The words for the funny ones are written in English (meme, memes), like the tags.

Changed

  • Interaction messages name the people according to where you typed them. With /act hug user:@Ana the message mentions both people, because nothing in the channel shows who typed what; with !hug @Ana the message you typed already shows the mention, so the reply uses names. Nobody is notified either way. A bot cannot answer a hug, so it gets the sentence with no response button and no counter.
  • Interaction gifs are more reliable. A source that fails is skipped for a minute, the last pictures of each action are kept for an hour in case every source is down, only https pictures from the three sources are shown, and when there is no gif the message says so in its footer instead of looking broken.
  • !act was a short word for !activity. !act now belongs to /act; !activity still works.
  • The ticket transcript draws a picture or a file once and lets you open the picture. A message with files for its components (the answers of a form) was drawn twice, as a gallery or file card and again among its attachments; now each file appears once, the pictures of a gallery are a link to the full picture (a single picture is shown whole, not cropped), and a file card shows its size.
  • A message that only looks like a command stays silent. , es el mejor, ! hola and petto es el mejor are chat: a prefix that is a symbol needs the command right after it, and a word prefix only starts a command when the next word is a real command, alias, server alias or custom command. Only the main prefix of the server answers "I don't know that command" to an unknown word written like a command (!es el mejor); the other prefixes, the word ones, the prefix of a person and a message like !!! do nothing. p! help (a space after a symbol prefix) is no longer a command: write p!help.
  • The prefix of a server can have up to 12 characters (it was 5), and the quick setup form no longer cuts a longer prefix to 5. A custom command cannot take a prefix of its own that is one of the prefixes of the server. The suggestions channel and the autoresponders read the whole list.

Removed

  • The avatar history. Petto no longer keeps the avatars of people. It stored a copy of every avatar picture, and those copies used too much storage, so the history of avatars is gone from the bot, the dashboard and the wiki: nothing records an avatar change or copies a picture, !profilehistory avatars and !avatars are gone (!clear avatars too), the route that served the stored pictures, the jobs that copied, repacked and cleaned them and the table of copies in the second database are no longer used, and PETTO_DATA2_DATABASE_URL stays for other data (today the public threat lists). The history of names (display names and usernames) and nicknames stays and works as before, with !profilehistory names, nicknames, clear and record. What was stored before is not deleted by itself: the avatar entries and the copies stay in the database until the owner runs node scripts/purge-avatar-history.js, which only counts them and the size it would free unless it gets --yes.
  • The shop score is gone: Petto no longer scans servers for shop words, scores them, alerts the team, or leaves a server because of it. It read the name, description and channel names of every server, and the messages people wrote, for words about shops, prices, payments, Discord goods and giveaways, gave each server a score from 0 to 16, kept it in the database, and from a score of 5 sent an alert to the Petto team's channel (from 10 as a critical one that pinged the owner, with a Leave server button that still needed a person to press it and confirm). It never left a server by itself, and a notice to the server only went out when the team pressed "Send review notice". All of that is removed: the detector, its sweep and message listener, the score and "ignored" settings, the alerts and their Ignore button, !guildsend scan, ignore, unignore and status, and the PETTO_GUILD_COMPLIANCE_* settings. The manual tools stay: !guildsend to send a notice by hand, !leaveguild, and the team log of errors and joins. What was stored is not deleted by itself: the table guild_compliance_scores and the compliance_* columns of guilds stay until the owner runs node scripts/purge-compliance-data.js, which only counts them unless it gets --yes.

Fixed

  • The answers of a ticket form did not appear when they were long. A form with several long answers made a card with more than the 4000 characters of text that Discord accepts in one message, so Discord refused it and the ticket opened with no answers at all. The answers are now cut at 1000 characters each and split into more cards when needed.
  • A personal prefix answers when the word is not a command again. After the several prefixes arrived, a person's own prefix (!myprefix ,) stayed silent on ,hello when hello is not a command. It answers its owner with "I don't know the command" like before, and only to them. A symbol followed by a space (, hello) is still chat, and the other prefixes of a server (petto, an added ,) stay silent.
  • "Petto cannot post here" in the dashboard, in a server where Petto is an Administrator. The saved copy of a server said bot_can_send: false for channels such as the rules channel, a moderators' channel or an announcement channel even though the bot has the Administrator permission, so Ping on join and the feeds marked them as unusable. A copy made while the bot's own member was not loaded, or with a copy of its roles that was behind (the usual case: the channels that deny @everyone are the ones flagged), counted every missing answer as "cannot". Petto now loads its own member from Discord when it is missing (with a short timeout) and answers null (unknown, the dashboard treats it as postable) when it still cannot be determined; a bot with the Administrator permission is true in every channel, also where an overwrite denies it; the permission asked for follows the kind of channel (SendMessagesInThreads for a thread, SendMessages for text, announcement, voice and stage chat, and null for forum and media channels); a role change, a change of the bot's roles and the dashboard's resync read the bot's member again, and a server with a closed channel has its roles checked against Discord once an hour. The log says once, and again only when it changes, which channels Petto cannot post in and the first permission each one lacks ([snapshots] Server (id): Petto cannot post in 2 channel(s), missing permission: #rules (SendMessages), ...).
  • Kick feeds showed an error when Kick refused or limited the bot. A Kick live feed failed with "did not answer" whenever Kick answered 403, 429, a 5xx, a page that was not JSON or nothing at all. Petto now reads a channel from the public API (when the Kick keys are set), then from kick.com/api/v2/channels/<slug> and kick.com/api/v1/channels/<slug>, which answer the same live state without keys; every answer becomes the same stream (the same id: when it started), so the job that posts and the dashboard did not change. A fallback is tried only on a refusal (403), a limit (429), a 5xx, no answer, a timeout or a page that is not the expected JSON, never on a 404 (the channel does not exist). A refused address is asked once more with a browser-like User-Agent that still names the bot, each attempt has its own time limit (about 12 seconds for the whole read), the lookup of an account is kept two minutes so following it asks Kick once, a Retry-After is respected (up to a minute), and the answers say the real reason (Kick is refusing or limiting Petto's requests) in English, Spanish and Portuguese. A channel that could not be read is not taken for offline: its open notice stays. The log shows each failed address and its status (feed kick name: kick.com/api/v2 403, trying kick.com/api/v1).
  • Reddit feeds failed to follow a subreddit and went quiet when Reddit refused the bot. Looking a subreddit up and then following it asked Reddit two or three times in a row, and a refusal or a limit (403, 429, 5xx) was told as "Reddit did not answer". Petto now asks Reddit once (the lookup is kept two minutes and reused by the follow), with a descriptive User-Agent, and when the main address is refused, limited or fails it tries old.reddit.com and then the JSON list, the same for the job that posts. Reddit's requests share one queue (one every 2 seconds), a Retry-After is respected (up to a minute), a feed whose first look was limited is saved anyway and only marks the existing posts when it can be read (it never posts the past), and the answers say the real reason (Reddit is refusing or limiting Petto's requests) in English, Spanish and Portuguese. The log shows each failed address and its status (feed reddit r/name: www.reddit.com 403, trying old.reddit.com).
  • A new server did not start in its own language. A Spanish-speaking server added Petto and Petto answered in English. Discord only gives a real preferredLocale to a server with Community turned on; every other server says en-US whatever it speaks, so the language Petto read was almost always English. Petto now trusts an explicit Spanish or Portuguese locale first and, when the locale says nothing, looks at the words the server already has (its name and description, the names of its channels, categories and roles, the system channel and the rules channel) against a small list of Spanish, Portuguese and English words (reglas, bienvenidas, anuncios, regras, boas-vindas, bate-papo...). A language is chosen only when it has at least 2 different words and more than each of the others, English included; a tie (a server in two languages) or nothing clear stays English. Nothing leaves the bot: no outside service is asked. The first row of a server is now made with that language by whichever part of Petto needs it first (a message or command that arrives before the join finishes no longer leaves the server in English), and a server that already has a row keeps its language. The log says once for each new server what was chosen (language of <id>: es (locale en-US, words: reglas, bienvenidas)). Servers that are already in the wrong language are not touched: !language es (or the dashboard) fixes them.
  • A video of a minute or less was posted as a Short. When the feed of a YouTube channel does not answer (it often gives a 500) and Petto reads the channel from the API, any video of 60 seconds or less was taken for a Short, also a landscape clip: its notice said "just posted a new Short" and linked to /shorts/. YouTube is now asked (the address of a Short answers 200, and a normal video redirects to /watch), once for each video, and only a real Short is posted as one.
  • Feeds of pictures: only pictures for everybody, from the best places. A picture whose tags say something sexual, violent or sad (swimsuits and underwear, blood, bruises, tears, a hand squeezing a creature...) is never posted, even from a place that calls it safe. For drawings, the places that give the best scored pictures first (Konachan, Yande.re and Wallhaven) are the ones to post from, and Safebooru only fills in when they have fewer than 40. The text of the notice says without character (or sin character, sem character) instead of -character.
  • Deleting a feed while it was posting wrote an error in the log channel. The feed was deleted a moment before Petto noted what it had posted ("violates foreign key constraint feed_seen_feed_id_fkey"). It is now told as a normal line of the log, not as an error.
  • Feeds that post at their own pace (pictures, animals, a song, the Pokémon of the day) could go quiet for a long time. After a failed look (every service down for a moment, or no picture that loads) the next look waited longer each time, up to half an hour, so many slots of 5 or 15 minutes had nothing posted; and a slot without a picture was kept as empty. Now these feeds are asked again within two minutes, an empty slot is tried again at the next look, a look that takes more than 90 seconds is given up so a stuck service cannot hold back every feed, and the log says when no picture passed the check.
  • A date written with a time from 19:00 to 23:59 was not understood. !remind 2026-10-12 21:00 ... (and every command that reads a moment) said it did not understand the date when the time, in Colombia, was 19:00 or later: that moment is already the next day in UTC and the date was checked against that day.
  • Feeds: the pictures of a feed no longer repeat, and they come from more places. A feed of pictures (!feed add pictures 15m anime pink) took the first twenty or so pictures of Wallhaven and chose among them with a number that repeated, so the same pictures came again and again, all from the same place. Drawings (the word anime, or the name of a character that is only drawn: cinnamoroll, sanrio, kuromi, pompompurin, pochacco, chiikawa, totoro, pikachu, pokemon, vocaloid, miku, genshin, touhou) are now asked in Konachan and Yande.re (safe pictures only, the best scored first), Safebooru (two pages) and Wallhaven (two pages), all without a key, until there are 160 pictures; the same picture on two sites (same source) counts once, big pictures go first, and a huge file without a sample is left out. The pictures are put in an order that is always the same for those tags (it does not change while the list is kept, 30 minutes) and the slots of time go along it one after the other: the next picture is never the one before, and a picture comes again only after all the others were posted. The same goes for photos, with up to 30 pictures. A booru tag is written as the booru writes it (hello-kitty is hello_kitty), and a search with only a color (anime pink) also looks for pink_theme and pink_flower. Nothing needs a key.
  • Support mode: the Image cards and Embeds pages showed no cards to the owner on a server he does not manage. The list of the cards and the picture of an uploaded image (GET only) are now on the owner's list of routes and leave the usual support: line in the log; saving, deleting, uploading and the other routes stay refused for him, and a GET does not open the POST of the same route.
  • The "Petto cannot post" line of the log was said again and again, and was too long. A server with 187 private channels hidden from the bot filled the log channel with Petto cannot post in 187 channel(s), missing permission: ... naming every channel, then again with 186, 185... The line is now short: the count, the first 3 channels with the permission each lacks and "and N more", and "(normal when private channels hide from Petto)" when the missing permission is ViewChannel in all of them. It is said the first time a server is looked at, then only when 10 channels or 10 percent of them (whichever is more) opened or closed since it was said, and never more than once an hour for a server. bot_can_send and bot_can_view in the saved copy of the server are the same.