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

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_tweet-0.0.3.tar.gz
  • Upload date:
  • Size: 6.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.3.tar.gz
Algorithm Hash digest
SHA256 e5a72137104a51391acebc89deb05b350078ade1d1b1556987c462f6ee02f5a4
MD5 3f8f0eb651aeb41334802972c8eefee0
BLAKE2b-256 654a024391578ca9765220fd78b83642752b6752396f5446abd7d1b035e862c8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_tweet-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b9857c74ac4351836b13728487bc165692e5a2815a99f9146257ac0fa10c786e
MD5 628b0ef7775dc2c5da6d69a85de25261
BLAKE2b-256 1ccd785f6f4594b2f372cfa7420c79defe24c1a8f81045231b385f7af5e21d6b

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