Venuja104 / MisakiChatbot

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

⚠️ NOTICE

Intellivoid has discontinued the Lydia API service, hence this code is now useless.

About

A fun telegram userbot written in python3 using Intellivoid's Coffeehouse API. Originally written by this person! Reworked by t.me/dank_as_fuck (misaki@eagleunion.tk)

Installation

Open up your terminal and run these commands.

git clone https://github.com/Dank-del/MisakiChatbot.git

cd MisakiChatbot

pip install -r requirements.txt

• Now make a copy of sample_config.ini and rename it to config.ini and enter your api_id and api_hash. These can be obtained from here.

Two possible ways of going forward

You can either use environment variables or edit the config.ini file further.

If you're going to use environment variables, then add a variable named ENV and set the value to anything you want. Now you can use environment variables.

Add the following ones as well.

CF_API_KEY: You can get this API key from here.

DATABASE_URL: The URL of your SQL database. It should look something like this - sqldbtype://username:pw@hostname:port/db_name. PostgreSQL is recommended.

NAME: Your bot will reply to the AI-enabled users everytime this name is said.

However, if you're gonna use config.ini, go ahead and set the values given above with the exception of ENV.

Running the bot

After setting the required environment variables/editing the config.ini file, run python3 -m chatbot.

Congrats, your bot should now be up!

Credits

Intellivoid for providing the API used for this project.

pyrogram - the library used for this project.

About

License:MIT License


Languages

Language:Python 100.0%