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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_tweet-0.0.0.tar.gz
  • Upload date:
  • Size: 6.6 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.0.tar.gz
Algorithm Hash digest
SHA256 11e410d0e86efac1551c5b755e96a4f5aa25c15a11588620c9df76571fa3de5d
MD5 7362d9311d36c869aa7860f8016bcadf
BLAKE2b-256 4f4070da2b41dd9776a1eadc0bccc27313523bc47d4f79ecd6fbd5723bb91fe6

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_tweet-0.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 639d86c7e76b73ae68407fb3b4a0cc4312631b4474517facf7e36daba9144516
MD5 0d91a7a559aa1e584bbaa0838cc79323
BLAKE2b-256 2ddda9d3ef9ab802cf7f1cf1ccebdc9a0b5dcddc1be4514fe83c06a7f6c4ae6d

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