Giter Club home page Giter Club logo

discord-chatbot-gpt4free's Introduction

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 theb from GPT4FREE for generating responses based on conversation history.

Preview ๐Ÿ‘€

image

Commands โš™๏ธโš™๏ธ

  • Toggle active channel for a server by using !toggleactive command. โš ๏ธ

image

  • Toggle if dm should be active or not by using !toggledm โš ๏ธ

image

  • Changes its profile picture with the !pfp [url or attachment] command.

  • Provides latency information with the !ping command.

  • Changes its username with the !changeusr [New username] command.

  • If anything gose wrong use !bonk to clear history โš ๏ธ

Steps to install and run ๐Ÿšฉ :

Step 1. ๐ŸŽฌ Git clone repository

git clone https://github.com/mishalhossin/Discord-Chatbot-Gpt4Free

Step 2. ๐Ÿ“ Changing directory to cloned directory

cd Discord-Chatbot-Gpt4Free

Step 3. ๐Ÿ”‘ Getting discord bot token and enabling intents from here

Select application

image

Enable intents

image

Get the token !!! by clicking copy

image

Step 4. ๐Ÿ” Rename example.env to .env and put the discord token. It will look like this:

DISCORD_TOKEN=token_from_step_3

image

Step 5. โš™๏ธ Install all the dependencies

Windows:

  • If you dont have pip already. Run python get-pip.py on windows
pip install -r requirements.txt

Linux :

pip3 install -r requirements.txt

Step 6. ๐Ÿš€ Run the bot

Windows :

py main.py

or

python main.py

Linux :

python main.py

or

python3 main.py

Step 7. Invite the bot

image

๐Ÿ Finally talk to the bot

There are 2 ways to talk to the ai

  • 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 !welp

image

โœจโœจโœจ Other ways to run โœจโœจโœจ

Using docker to run ๐Ÿณ

  • Have a working bot token
  • Follow up-to step 4

Install docker compose on linux machine :

apt update -y ; sudo apt upgrade -y; sudo apt autoremove -y; sudo apt install docker-compose -y

Start the bot in docker container :

sudo docker-compose up --build

Using replit to run โ˜๏ธ

  • Follow all the steps except step 1
  • Have a replit account
  • Please note .env is found in secrets tab of replit :

image

  • Config .env in replit like this :

image

Try on repl.it

Want something nsfw ? then check this out: SEX-GPT

discord-chatbot-gpt4free's People

Contributors

mishalhossin avatar bolavefasfas avatar vietrux avatar john100x1 avatar eltociear avatar totob12 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.