From 3cabde24bb0fb872dc81dad7bc27c6c1a9c92dda Mon Sep 17 00:00:00 2001
From: Scarlett <social@scarlettmcallister.com>
Date: Sun, 11 Dec 2022 10:57:52 -0400
Subject: [PATCH] Update Readme with installation instructions

---
 README.md | 17 ++++++++++++++++-
 1 file changed, 16 insertions(+), 1 deletion(-)

diff --git a/README.md b/README.md
index aeee6c9..e5f6025 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,21 @@
 
 A Discord bot that reacts to certain messages with certain emojis. More importantly, it also lets you write code!
 
+## Install
+
+- Setup PostgreSQL
+  - Install via package manager `apt install postgresql`. Also get `libpq-dev` if you don't want a miserable life.
+  - `sudo su postgres` to login to default database user
+  - `createdb cat_disruptor_6500` to create the database
+  - `psql` and then `ALTER ROLE postgres WITH PASSWORD 'password';`
+- Update the database environment variable (`DATABASE_URL=postgres://postgres:password@localhost/cat_disruptor_6500`)
+- Create a new [Discord bot](https://discord.com/developers/applications)
+  - Enable all Privileged Gateway Intents
+  - Go to OAuth2 menu, URL generator, click "bot" and "administrator"
+  - Open link to add bot to server
+- Create a `config.toml` file in project directory with `token=<your discord bot token>`
+  - Generate token on your bot page
+
 ## Commands:
 
 !START - start the interpreter
@@ -70,4 +85,4 @@ The interpreter can execute arbitrary code safely - it includes CPU and memory l
 
 It even does graphics!
 
-![Example session](example.png) 
+![Example session](example.png)
-- 
GitLab