Skip to content

AI Character chat bot made with openrouter, aiogram and love

Notifications You must be signed in to change notification settings

Caportabow/AI-char-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ะกharacter AI Telegram Bot

Project Description ๐Ÿ“–

This is a Telegram Bot built with aiogram and OpenAI that allows you to interact with a custom AI character. Unlike other similar bots, this bot has no censorship(Only when using OpenRouter as provider), is fully modular, and customizable. It's highly efficient, lightweight in terms of hosting requirements, and doesnโ€™t overload the system. ๐ŸŒโšก

The goal of this project is to provide a fun and engaging AI character interaction experience for users, with no limitations, allowing complete freedom in how you interact with the character. Additionally, the bot is optimized to keep hosting costs extremely low. ๐Ÿ’ธ

Why I Created This Bot ๐ŸŽˆ

I created this bot for fun and to boost activity in chats. It was developed in a single day to provide a unique and exciting experience for users to interact with AI characters without restrictions. Let's make chatting more fun and spontaneous!

Installation Instructions โš™๏ธ

Follow these steps to install and run the bot:

1. Clone the repository:

git clone https://github.com/your-repository-url.git
cd your-repository-directory

2. Create a Python virtual environment ๐ŸŒฑ:

python3 -m venv venv

3. Activate the virtual environment ๐Ÿ”Œ:

  • On Windows:
venv\Scripts\activate
  • On macOS/Linux:
source venv/bin/activate

4. Install dependencies ๐Ÿ“ฆ:

pip install -r requirements.txt

5. Configure the bot ๐Ÿ”‘:

Copy .env.example to .env:

cd resources
cp .env.example .env

Open .env and fill in the required information.

If you want the bot to use stickers, name each sticker with a short description, convert them to .webp format, and place them in the resources/stickers folder. ๐Ÿ–ผ๏ธ

6. Configure the AI Character bot uses ๐Ÿ“:

Copy system-prompt.txt.example to system-prompt.txt:

cp system-prompt.txt.example system-prompt.txt

Find any AI character card online, paste its contents there, and save it as system-prompt.txt.

7. Run the bot ๐Ÿš€:

Now you can run the bot with the following command:

python main.py

Contributions ๐Ÿค

Feel free to fork this repository, create pull requests, and contribute to the development of the project. All improvements, bug fixes, and feature suggestions are welcome!

License ๐Ÿ“œ

This project is licensed under the MIT License - see the LICENSE file for details.