[ARCHIVED] A simple Discord bot that keeps track of XP and awards user with random Discord permissions.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
Go to file
Luther Wen Xu 6b0afb5f1d
modules/command: Implement "pgqadmin kick"
2020-01-12 18:05:45 +07:00
db db: Reorganize code into separate package 2019-11-20 20:59:48 +07:00
modules modules/command: Implement "pgqadmin kick" 2020-01-12 18:05:45 +07:00
.gitignore modules/config: Move roles and token into config file 2019-12-13 18:08:01 +07:00
README.md README: Initial commit 2020-01-05 16:38:58 +07:00
go.mod Initial Commit 2019-11-17 22:47:34 +07:00
go.sum Initial Commit 2019-11-17 22:47:34 +07:00
main.go modules/config: Move roles and token into config file 2019-12-13 18:08:01 +07:00

README.md

PermissionGacha

This is a bot I've written for the Discord server, Periodic Table. Some would say that it's quite flexible but it's not. It's only flexible enough for myself to test it on another server. There are no guarantees that it would fit your use case. Heck, there are no guarantees that it would be useful to you at all.

Compiling PermissionGacha

In the off-chance that you'd like to run it yourself, here's the (probably unmaintained) instructions to run it. It might not be up-to-date so you'll have to adapt it for yourself.

Prerequisites

You'll need:

  • Git (to download the source code)
  • Go (to compile the source code)

If you are not smart enough to install them, you shouldn't be doing this at all.

Step 1: Download Source Code

Open your terminal (or Git Bash if you're on Windows) and navigate using cd to a folder of your choice. Then run:

git clone https://gitea.teamortix.com/chanbakjsd/PermissionGacha

This will create a folder named "PermissionGacha" with the source code in it.

Step 2: Compile Source Code

Navigate inside the "PermissionGacha" folder that you've just created. Compile the code inside with:

go build .

You should find a file named PermissionGacha or PermissionGacha.exe now created. (It'll be called as the executable below)

Step 3 (Optional): Update PermissionGacha

If you're updating, you don't need to redownload the full source code. To get the latest version, just run the following command:

git pull

And build it just like in Step 2.

Run PermissionGacha

Step 0: Don't be an idiot

DO NOT double-click the executable. Kill it with top or ps and kill or your choice of task manager if you did. It simply wouldn't work.

Step 1: Configure config.json

You can try and figure it out yourself from modules/config/config.go.

Step 2: Run it in the terminal

Open your terminal (or command prompt if you're from lame Windows). cd into the directory where you compiled PermissionGacha.