Skip to content

This is a Python-based Discord bot using the discord.py library. The bot responds to messages

License

Notifications You must be signed in to change notification settings

eltociear/Discord-Chatbot-Gpt4Free

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gpt4Free-Chat-bot 🤖

This is a Python-based Discord bot using the discord.py library. The bot responds to messages, can change its profile picture, and provide latency information. Additionally, it uses the phind library from GPT4FREE (Its now removed btw) for generating responses based on conversation history.

Features 🥳

  • Responds to messages in direct messages only
  • Changes its profile picture with the !pfp command.
  • Provides latency information with the !ping command.
  • Changes its username with the !changeusr command.

Steps to install and run 🚩 :

1. git clone repository

git clone https://github.com/mishalhossin/Gpt4Free-Chat-bot

2. change directory to cloned directory

cd Gpt4Free-Chat-bot

3. Get discord bot token here

4. Get cf_clearance cookie from phind by using this extension

image

5. Get useragent by searching my useragent or what is my useragent ? on Google

6. Set up .env file it will look like this:

{
  "DISCORD_TOKEN": "token_from_step_3",
  "CF_COOKIE": "cookie_from_step_4",
  "USER_AGENT": "user_agent_from_step_5"
}

7. Install all the dependencies

Windows:

py pip install -r requirements.txt

Linux :

python3 pip install -r requirements.txt

8.Run the bot

Windows

py main.py

Linux

python main.py

9. Invite your bot and DM (Direct message) it

image 🏁🏁🏁🏁🏁🏁🏁🏁 FNISH LINE 🏁🏁🏁🏁🏁🏁🏁🏁🏁🏁

About

This is a Python-based Discord bot using the discord.py library. The bot responds to messages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%