Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
cat-disruptor-6500
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Conan Simon
cat-disruptor-6500
Commits
3cabde24
You need to sign in or sign up before continuing.
Commit
3cabde24
authored
2 years ago
by
Scarlett
Browse files
Options
Downloads
Patches
Plain Diff
Update Readme with installation instructions
parent
3ef4292e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+16
-1
16 additions, 1 deletion
README.md
with
16 additions
and
1 deletion
README.md
+
16
−
1
View file @
3cabde24
...
@@ -2,6 +2,21 @@
...
@@ -2,6 +2,21 @@
A Discord bot that reacts to certain messages with certain emojis. More importantly, it also lets you write code!
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:
## Commands:
!START - start the interpreter
!START - start the interpreter
...
@@ -70,4 +85,4 @@ The interpreter can execute arbitrary code safely - it includes CPU and memory l
...
@@ -70,4 +85,4 @@ The interpreter can execute arbitrary code safely - it includes CPU and memory l
It even does graphics!
It even does graphics!


This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment