Impersonate your friends on Discord using the latest research in AI and machine learning. Originally developed during BigRed//Hacks @ Cornell.
Check out the website for more information.
You can either run GPT Impostor directly on a computer using Python or run it in a pre-built environment via docker.
- Clone this repo and cd into the directory:
git clone https://github.com/HHousen/GPT-Impostor && cd gpt-impostor
- Install Python and Pip. On most linux systems this can be done with
sudo apt install python3 python3-pip
. - Create a virtual environment:
python3 -m venv env
- Activate virtual environment:
source env/bin/activate
- Install dependencies:
pip3 install -r requirements.txt
- Make a copy of
.env.example
(cp .env.example .env
) and change theBOT_TOKEN
value to your bot's token. - Source your environment variables:
source .env
- Run the bot:
python3 bot.py
- Install Docker & Docker-Compose.
- Get the docker-compose.yml file:
wget https://raw.githubusercontent.com/HHousen/GPT-Impostor/master/docker-compose.yml
- Replace the
BOT_TOKEN
environment variable in docker-compose.yml with your bot's token. - (Optional) Change the volume mapping. The database and log files are located at
/usr/src/app/db_log
within the container. To make sure these files are not erased when the container updates, they are mapped to/opt/gpt-impostor
on the host system. You can change the location of these files on the host system if desired by modifying the part that reads/opt/gpt-impostor
. - Start the container:
sudo docker-compose up -d gpt-impostor
.
This bot can be run on Repl.it using the approach from this video by FreeCodeCamp. This repo includes a keep_alive.py script that will automatically be used if the RUNNING_IN_REPLIT
environment variable is set to True
. So, simply go to Repl.it, clone this repo, set RUNNING_IN_REPLIT
to True in the secrets section, setup UpTimeRobot to ping the webserver, and you're good to go.
Hayden Housen – haydenhousen.com
Distributed under the GNU General Public License v3.0. See the LICENSE for more information.
All Pull Requests are greatly welcomed.
Questions? Commends? Issues? Don't hesitate to open an issue and briefly describe what you are experiencing (with any error logs if necessary). Thanks.
- Fork it (https://github.com/HHousen/GPT-Impostor/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request