Skip to content

parthakk07/chat-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLI Chatbot

A command-line chatbot with weather support, Gemini AI integration, voice input, and fun features.

Features

  • Voice Input - Type listen or 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

Setup

  1. Install dependencies:

    pip install -r requirements.txt
  2. Configure API keys:

  3. Run the chatbot:

    python try_2.py

Commands

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!

Chat Memory

All conversations are saved to memory.txt with timestamps.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages