A python Discord bot powered by GPT4 to provide natural language conversations, responses, and image generation, while interacting with other API services. If you’d like to use this bot for other models, you should be able to change that in the “model=”gpt-4”, replace “gpt-4” with “gpt-3.5-turbo” or “text-davinci-002” for example. You can also adjust the max_tokens found under that to increase prompt and completion length.
Help fund the API costs by supporting me on //ko-fi.com/sardistic 🍵🤖
Could you give me a brief description what this script does, like a github readme
Title: Python Discord Weather Bot with GPT-4
Description: A Discord bot, built using Python, discord.py, and OpenAI’s GPT-4, that provides weather information in a natural language based on user requests.
Features:
Dependencies:
Usage:
DISCORD_TOKEN
with your Discord bot token.OPENAI_API_KEY
with your OpenAI API key.OPENWEATHER_API_KEY
with your OpenWeatherMap API key.pip install -r requirements.txt
.python weather_bot.py
.Commands: Mention the bot with a message containing the word “weather” followed by the city name to get the weather information in a natural language response:
@bot_user weather in New York
Example response:
“Currently, in New York, the weather is mostly cloudy with a temperature of 18°C. Make sure to take an umbrella if you’re going out, as it might rain later in the day.”
Update Summary: Added multivacv2.py
These updates enhance the bot’s user experience by providing more intuitive replies, better messaging during image generation, and support for image generation using Dalle.
June 27, 2023
You must be logged in to post a comment.