forkposix / amagas-ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ketard AI Bot

Overview

Ketard AI Bot is a Telegram bot designed for interacting with users through a variety of commands. It leverages advanced APIs to provide features such as system status checks, text generation, and more. The bot can be integrated with different services to enhance functionality.

Features

  • Summarize YouTube videos. just send /sum command with vail YouTube URL and hope it doesn't burn
  • System Information: Commands to check CPU usage, RAM usage, and system temperature.
  • Text Generation: Utilizes the Ollama API for generating responses based on user input.
  • Debug and Status Modes: Includes configurations for debug mode and system status reporting.
  • Command Handling: Custom commands for different functionalities, including help and start commands.

Requirements

Usage

  • Start Command: /start to get an introduction and available commands.
  • Help Command: /help provides information on how to use the bot and its commands.
  • Status Command: /status to get the current system status including CPU usage, RAM usage, and more.
  • Custom Commands: {DataConfig.GEN_COMMANDS} for generating responses based on specified commands.

Installation

  1. Clone the repository:
    git clone --depth=1 --single-branch https://github.com/ket0x4/ketard-ai && cd ketard-ai
  2. Create a virtual environment:
    python -m venv .venv
  3. Activate the virtual environment:
    source venv/bin/activate
  4. Install the dependencies:
    pip install -r requirements.txt
  5. Configure the bot by editing the config.json file with the appropriate values for BOT_NAME, API_ID, API_HASH, BOT_TOKEN, ...
  6. Run the bot:
    python ketard.py

Configuration

Ensure that your config.json is correctly set up with the necessary API credentials and configurations for bot behavior.

To-do

  • Add /sum command
  • Add speech-to-text support
  • Check api response before sending
  • Fix async /status command
  • Add blacklist support
  • log prompts and responses to db
  • split long messages
  • delete status message after sending prompt response
  • Add reply support

License

This project is licensed under the MIT License.

About


Languages

Language:Python 96.5%Language:Dockerfile 3.5%