Skip to main content

nonebot_plugin_tweet

Project description

nonebot_tweet

A NoneBot2 plugin to forward tweets.

Usage

Just send a tweet link to the bot, and it will automatically fetch and forward the tweet content.

You can also use the following commands:

  • c or content: Send only the image and video content, without translation.
  • o or origin: Send the original tweet content without translation.

Configuration

You need configure the following options in the .env file:

  • rsshub_base_url: The base URL of your RssHub instance. This bot uses RSSHub to fetch Twitter content.
  • rsshub_query_param: The query parameters for the RssHub URL (for private).
  • openai_api_base: The base URL of your OpenAI compatible API.
  • openai_api_key: Your OpenAI API key.

Create a file named .env in the root directory of your project.

Add the following lines to the .env file:

RSSHUB_BASE_URL=your_rsshub_url
RSSHUB_QUERY_PARAM=your_query_params
OPENAI_API_BASE=your_openai_api_base
OPENAI_API_KEY=your_openai_api_key

NoneBot will automatically load the .env file when it starts.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_tweet-0.0.4.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_tweet-0.0.4-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_tweet-0.0.4.tar.gz.

File metadata

  • Download URL: nonebot_plugin_tweet-0.0.4.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for nonebot_plugin_tweet-0.0.4.tar.gz
Algorithm Hash digest
SHA256 dee59f979cd838153910878d39cc26e120c79f9bd0360a9f3c4fe439dd06c292
MD5 44962aa510536d76bdf3fc0273f94aea
BLAKE2b-256 313854fbc380fda2f1ee3ae9b3ce0351ab00bffef2cfa8bd56c0f883eb940919

See more details on using hashes here.

File details

Details for the file nonebot_plugin_tweet-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_tweet-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 4001a790701f72afb8b0c0c40ebd28c06547afd274e909d082d67edf82cfe748
MD5 4c94ba5787ed5a8924aebf03cc945e7a
BLAKE2b-256 bbb27976838f08d7629d180fb96726e6e87a1ae945782cc6f0b873df3145697b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page