Repository navigation
Conversation
…, listas de Modrinth en uno, imágenes por etiquetas
…tras un push y registra los avisos tardíos
…que Petto dejó (3 días)
…as olvidan lo que ya no listan
… listas de amenazas)
…o sin cargar la configuración
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes
animalstakes the kinds you want (cat,dog,fox,bird,duck,capybara,bunny; English, Spanish and Portuguese words work). None means any. The pace and the kinds live in the account (every:30:cat+dog), so the content is shared by every server with the same pace and choice. The old one-animal feeds keep working.picturesauto feed: one to three tags (pink,cats aesthetic) and Petto posts pictures from the public tags of Flickr. Pinterest has no public search, so it cannot be used. Some words are refused (badTags), and the content is not checked picture by picture.new:mod+shader,new:all… follow the newest projects of several kinds in one feed, so one place of the limit is enough. Newprojectnotice type (“New project”) next toupdate.playerposts the link instead of the card so Discord plays the video (videos and Shorts only).@namefirst (1 unit) before the 100-unit search; answers kept 24 hours; 10 searches a day for each server.Database (it was almost full: 449 MB, of which
profile_history_imageswas 212 MB andmalicious_links57 MB)AVATAR_COPIES_MAX_MB, it was 1 GB).guild_departures) and, 3 days later, what is stored for it is deleted (settings, everything tied to them, code data). A server that adds Petto back in time keeps everything; one with a Premium slot in use or backups kept in this database waits; nothing is decided while the bot is not ready or has fewer servers loaded than Discord says it is in.GUILD_PURGE=false,GUILD_PURGE_DAYSandGUILD_PURGE_DRY_RUN=truecontrol it.PETTO_DATA2_DATABASE_URL, optional). The avatar copies and the threat lists can live in a second PostgreSQL database; without the variable nothing changes. With it, the tables are made there, what the main database has is moved over in the background (written in the second database first, deleted from the main one after), reads fall back to the main database while the move is not done, and the dashboard's REST route reads and writes those two tables there. The triggers that deleted a copy with its entry cannot cross databases, so the bot does it: when the history is cleared or turned off (also from the dashboard), when a person has more avatars than are kept, and an hourly pass for the rest. While the threat links move (a few minutes) a known link not moved yet is not seen.VACUUM FULLof the table.How it was checked
npm run checkpasses (feeds, i18n, types, the full suite, and three new checks against a real PostgreSQL: the servers cleanup, the storage trims, and the second database: the move without losses, reads, new copies, the hourly cleanup and the threat lists; the second database is a schema of the test database there).Not tested in a real Discord server, with Spotify's real keys, or with a real second Discloud database. The server cleanup deletes data for good: with
GUILD_PURGE_DRY_RUN=trueit only writes in the log what it would delete.