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.1.tar.gz (7.9 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.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_tweet-0.0.1.tar.gz
  • Upload date:
  • Size: 7.9 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.1.tar.gz
Algorithm Hash digest
SHA256 5de6572c0abfe6c5f69440b3022fb59b57a414dc30fdd51b04a8de83aa132993
MD5 39249d7a0213934f1f0854735c701392
BLAKE2b-256 f285d52fbc24b16e5c1fe806b492bf92d9dedaf43458e918db3f166b018aafa5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_tweet-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 70e0085036422d2ec22c31aa4df04ee91ae1d9b264c7a545e63db7f132919715
MD5 ba3afbea69177681423a589f06d62f6a
BLAKE2b-256 54290bfb481e64b77b1fde5128609bf1dd0988190835e59dd9377a4cf4fca587

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