A command-line chatbot with weather support, Gemini AI integration, voice input, and fun features.
- Voice Input - Type
listenor say voice commands - Text-to-Speech - Bot speaks responses aloud
- AI Fallback - Unknown commands go to Gemini AI
- Weather - Get weather info, clothes advice, AQI, UV index, forecast
- Jokes - Programming jokes with
pyjokes - Quotes - Inspirational quotes
- Calculator - Basic arithmetic
- Unit Converter - Temperature, length, weight
- Games - Rock Paper Scissors, Guess the Number
- Web Browser - Open Google, YouTube, YouTube Music
- Chat Memory - Saves conversation history
-
Install dependencies:
pip install -r requirements.txt
-
Configure API keys:
- Copy
.env.exampleto.env(already done) - Add your API keys:
GEMINI_API_KEY- Get from Google AI StudioWEATHER_API_KEY- Get from OpenWeatherMap
- Copy
-
Run the chatbot:
python try_2.py
| Command | Description |
|---|---|
hello / hi |
Greet the bot |
sad / happy |
Emotional responses |
date |
Current date |
time |
Current time |
day |
Day of the week |
weather |
Get weather info |
joke / jokes |
Tell a joke |
quotes / quote |
Show inspirational quote |
calculate |
Basic calculator |
convert |
Unit converter (temp, length, weight) |
rock paper |
Play rock paper scissors |
guess number |
Number guessing game |
open google |
Open Google in browser |
open youtube |
Open YouTube in browser |
open music |
Open YouTube Music |
listen |
Use voice input |
bye / exit |
Exit chatbot |
Any unknown command is automatically answered by AI!
All conversations are saved to memory.txt with timestamps.