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 usesless
from GPT4FREE for generating responses based on conversation history.
- For all commands use
/help
in discord
git clone https://github.com/mishalhossin/Discord-Chatbot-Gpt4Free
cd Discord-Chatbot-Gpt4Free
Step 3. 🔑 Getting discord bot token and enabling intents from here
For more info click here ⚠️ ⚠️ ⚠️ ⚠️ ⚠️ IMPORTENT ⚠️ ⚠️ ⚠️ ⚠️ ⚠️
Step 4. 🔑 Get hugging face Access Tokens from here
Step 5. 🔐 Rename example.env
to .env
and put the discord token and hugging face access token. It will look like this:
HUGGING_FACE_API=hf_access_token_from_step_4
DISCORD_TOKEN=token_from_step_3
pip install -r requirements.txt
python main.py
- Invite your bot and DM (Direct message) it |
⚠️ Make sure you have DM enabled - if you want it in server channel use /toggleactive
- For more awesome commands use /help
- Have a working bot token
- Follow up-to step 5
apt update -y ; sudo apt upgrade -y; sudo apt autoremove -y; sudo apt install docker-compose -y
sudo docker-compose up --build
- Follow all the steps except
step 1
- Have a replit account
- Please note
.env
found in secrets tab of replit :
- Config
secrets
in replit like this :