Skip to content

0.7.4

Latest

Choose a tag to compare

@Yuuzi261 Yuuzi261 released this 27 Sep 15:28
6d11240

Caution

Due to frequent recent frontend changes by X (Twitter), the tweety-ns package often encounters login issues. If you run into login problems, please update your tweety-ns dependency to the following version:

  • uv:
tweety-ns = { git = "https://github.com/Yuuzi261/tweety.git", rev = "09408db7ef7d424b5afbded1a84b0d8e36366e3e" }
  • requirements.txt:
tweety-ns @ git+https://github.com/Yuuzi261/tweety.git@09408db7ef7d424b5afbded1a84b0d8e36366e3e

Alternatively, you can pull the latest changes directly from the dev branch. This branch usually includes the newest fixes, though you will need to handle any undocumented changes, such as configuration updates, on your own.

📌 0.7.4 is a patched version of 0.7.3.
📌 If you want to upgrade from 0.7.2 to 0.7.4, please pull the code first and follow the upgrade guide (specifically the section for 0.7.2 to 0.7.3). If you are already on 0.7.3, you can directly pull the new code & force update dependencies.

pip install --upgrade --no-cache-dir --force-reinstall -r requirements.txt

Note

0.7.4 fixes:

  • Updated the tweety-ns dependency with a fallback to /i/jf/ for extracting the ondemand chunk manifest, fixing Exception: Couldn't get animation key indices and account authentication failures caused by X's migration to the new Rolldown-based frontend (x-web).

Below is the update information for version 0.7.3.


features:

  • Implemented a notification retry mechanism with exponential backoff to automatically retry sending messages upon encountering transient Discord server or network errors (such as 503 Service Unavailable or timeouts), resolving part of issue #98. ← MORE CHANCE, GREATER ROBUSTNESS💪
  • Added support for prioritizing existing saved sessions on startup, eliminating the need to force a re-login on every bot restart.

refactor:

  • Corrected a typo in the type hint for the fetch_tracked_channels function parameter.

fixes:

  • Resolved autocomplete exceptions caused by excessive choices (> 25) or choice labels exceeding Discord's 100-character limit, resolving part of issue #98. ← GOODBYE HTTP 400😎
  • Updated the tweety-ns dependency with a cache-busting patch to address login failures caused by Cloudflare edge caching on X (business.x.com). ← NO RNG REQUIRED✨
  • Fixed an issue where deleted channels (# unknown) could not be filtered by query in channel autocomplete.
  • Fixed an issue where HTML entities (such as &, <, >) in tweet content were not unescaped, preventing raw entities from displaying in Discord messages or breaking Markdown formatting (applies when using the built_in embed type).
  • Safely retrieve the selected channel option via itn.namespace in username autocomplete to avoid potential exceptions when accessing raw interaction data.

performance:

  • Optimized fetch_tracked_channels by terminating search early once the maximum autocomplete choice limit (25) is reached, avoiding unnecessary database iterations.