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.2.tar.gz (6.7 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.2-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_tweet-0.0.2.tar.gz
  • Upload date:
  • Size: 6.7 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.2.tar.gz
Algorithm Hash digest
SHA256 fd2ca5c39814f4f9f3063979efa28eb889e14fe9ce0b5ff4f9bcbf784de7883b
MD5 8f7cce3592470c8a35c4b4eb7224f2db
BLAKE2b-256 7c9b2c7a2fb6618a5b102122fedc068203a0a555df17da6d4cbd56dea624aa45

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_tweet-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 94bdc81dbaf3ce89947fbd5d25ebe834158f9f2213bae414a5dc71bba077452e
MD5 67f16fe3ebbd26778febfa47eadb32bf
BLAKE2b-256 c9f565541fb2ebe853902a8abaeb37b57ccaf84dacae6ac6c4214fc8eb684ac8

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