From 2c4b528e3aa0f2504e732630191c5082df49990c Mon Sep 17 00:00:00 2001 From: ned Date: Sat, 5 Aug 2023 13:51:09 +0200 Subject: [PATCH] fix #398 --- README.md | 34 ++++++++++++++++------------------ requirements.txt | 8 +++++++- 2 files changed, 23 insertions(+), 19 deletions(-) diff --git a/README.md b/README.md index 27fb580..7d17d14 100644 --- a/README.md +++ b/README.md @@ -111,24 +111,22 @@ Check out the [official API reference](https://platform.openai.com/docs/api-refe | `SHOW_PLUGINS_USED` | Whether to show which plugins were used for a response | `false` | #### Available plugins -| Name | Description | Required environment variable(s) | Dependency | -|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|----------------------------------------| -| `weather` | Daily weather and 7-day forecast for any location (powered by [Open-Meteo](https://open-meteo.com)) | - | | -| `wolfram` | WolframAlpha queries (powered by [WolframAlpha](https://www.wolframalpha.com)) | `WOLFRAM_APP_ID` | `pip install wolframalpha~=5.0.0` | -| `ddg_web_search` | Web search (powered by [DuckDuckGo](https://duckduckgo.com)) | - | `pip install duckduckgo_search~=3.8.3` | -| `ddg_translate` | Translate text to any language (powered by [DuckDuckGo](https://duckduckgo.com)) | - | `pip install duckduckgo_search~=3.8.3` | -| `ddg_image_search` | Search image or GIF (powered by [DuckDuckGo](https://duckduckgo.com)) | - | `pip install duckduckgo_search~=3.8.3` | -| `crypto` | Live cryptocurrencies rate (powered by [CoinCap](https://coincap.io)) - by [@stumpyfr](https://github.com/stumpyfr) | - | | -| `spotify` | Spotify top tracks/artists, currently playing song and content search (powered by [Spotify](https://spotify.com)). Requires one-time authorization. | `SPOTIFY_CLIENT_ID`, `SPOTIFY_CLIENT_SECRET`, `SPOTIFY_REDIRECT_URI` | `pip install spotipy~=2.23.0` | -| `worldtimeapi` | Get latest world time (powered by [WorldTimeAPI](https://worldtimeapi.org/)) - by [@noriellecruz](https://github.com/noriellecruz) | `WORLDTIME_DEFAULT_TIMEZONE` | | -| `dice` | Send a dice in the chat! | - | | -| `youtube_audio_extractor` | Extract audio from YouTube videos | - | `pip install pytube~=15.0.0` | -| `deepl_translate` | Translate text to any language (powered by [DeepL](https://deepl.com)) - by [@LedyBacer](https://github.com/LedyBacer) | `DEEPL_API_KEY` | | -| `gtts_text_to_speech` | Text to speech (powered by Google Translate APIs) | - | `pip install gtts~=2.3.2` | -| `whois` | Query the whois domain database - by [@jnaskali](https://github.com/jnaskali) | - | `pip install whois~=0.9.27` | -| `webshot` | Screenshot a website from a given url or domain name - by [@noriellecruz](https://github.com/noriellecruz) | - | | - -**Note**: some plugins have additional dependencies that are not listed in the `requirements.txt` file. If you plan on using these plugins, you can install them manually using the command above (see the `Dependency` column). +| Name | Description | Required environment variable(s) | Dependency | +|---------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------|---------------------| +| `weather` | Daily weather and 7-day forecast for any location (powered by [Open-Meteo](https://open-meteo.com)) | - | | +| `wolfram` | WolframAlpha queries (powered by [WolframAlpha](https://www.wolframalpha.com)) | `WOLFRAM_APP_ID` | `wolframalpha` | +| `ddg_web_search` | Web search (powered by [DuckDuckGo](https://duckduckgo.com)) | - | `duckduckgo_search` | +| `ddg_translate` | Translate text to any language (powered by [DuckDuckGo](https://duckduckgo.com)) | - | `duckduckgo_search` | +| `ddg_image_search` | Search image or GIF (powered by [DuckDuckGo](https://duckduckgo.com)) | - | `duckduckgo_search` | +| `crypto` | Live cryptocurrencies rate (powered by [CoinCap](https://coincap.io)) - by [@stumpyfr](https://github.com/stumpyfr) | - | | +| `spotify` | Spotify top tracks/artists, currently playing song and content search (powered by [Spotify](https://spotify.com)). Requires one-time authorization. | `SPOTIFY_CLIENT_ID`, `SPOTIFY_CLIENT_SECRET`, `SPOTIFY_REDIRECT_URI` | `spotipy` | +| `worldtimeapi` | Get latest world time (powered by [WorldTimeAPI](https://worldtimeapi.org/)) - by [@noriellecruz](https://github.com/noriellecruz) | `WORLDTIME_DEFAULT_TIMEZONE` | | +| `dice` | Send a dice in the chat! | - | | +| `youtube_audio_extractor` | Extract audio from YouTube videos | - | `pytube` | +| `deepl_translate` | Translate text to any language (powered by [DeepL](https://deepl.com)) - by [@LedyBacer](https://github.com/LedyBacer) | `DEEPL_API_KEY` | | +| `gtts_text_to_speech` | Text to speech (powered by Google Translate APIs) | - | `gtts` | +| `whois` | Query the whois domain database - by [@jnaskali](https://github.com/jnaskali) | - | `whois` | +| `webshot` | Screenshot a website from a given url or domain name - by [@noriellecruz](https://github.com/noriellecruz) | - | | #### Environment variables | Variable | Description | Default value | diff --git a/requirements.txt b/requirements.txt index 1c523d3..3db7d0b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -4,4 +4,10 @@ tiktoken==0.4.0 openai==0.27.8 python-telegram-bot==20.3 requests~=2.31.0 -tenacity==8.2.2 \ No newline at end of file +tenacity==8.2.2 +wolframalpha~=5.0.0 +duckduckgo_search~=3.8.3 +spotipy~=2.23.0 +pytube~=15.0.0 +gtts~=2.3.2 +whois~=0.9.27 \ No newline at end of file