2024-10-21 01:39:42 -05:00
2024-10-05 16:50:19 +00:00
2024-10-05 16:50:19 +00:00
2024-10-05 16:50:19 +00:00
2024-10-17 17:24:34 +00:00
2023-11-19 20:30:49 -06:00
2024-10-05 16:50:19 +00:00
2024-10-21 01:39:42 -05:00
2023-11-19 16:57:16 -06:00
2024-10-21 01:39:42 -05:00
2024-10-05 18:23:31 +00:00
2024-08-31 16:02:20 -05:00

GarfBot is a discord bot that uses openai generative pre-trained AI models to produce text and images for your personal entertainment and companionship.

To interact: (not case-sensitive)

"hey garfield {prompt}" responds with text.

"garfpic {prompt}" responds with image.

To get started, clone this repo and create a config.py file in GarfBot's root directory. Open your favorite text editor or IDE and add your various API tokens as such:

GARFBOT_TOKEN = "token"
OPENAI_TOKEN = "token"
GIF_TOKEN = "token"

If you want to configure a more secure setup, go ahead.

Next, I recommend building a docker image for each bot using the included DockerFile as a template. Run each container binding /usr/src/app to GarfBot's CWD.

A terraform file has been included to launch all three containers, or you can do it manually.

Example:

crate@raspberrypi:~/garfbot $ docker build -t garfbot .
crate@raspberrypi:~/garfbot $ docker run -d --restart always -v $PWD:/usr/src/app --name garfbot garfbot

Or if you prefer to install dependencies (from requirements.txt) on you own host and run as a systemd service:

[Unit]
Description=garfbot
After=multi-user.target

[Service]
Type=simple
Restart=always
User=pi
WorkingDirectory=/home/crate/garfbot
ExecStart=/usr/bin/python ./garfbot.py

[Install]
WantedBy=multi-user.target
Description
No description provided
Readme 230 KiB
2024-11-08 21:19:12 +00:00
Languages
Python 97%
HCL 1.7%
Dockerfile 1.1%
Shell 0.2%