The backend server for the CS:GO hub Discord bot
Go to file
2022-09-19 23:24:57 +02:00
.gitignore Initial commit 2022-09-16 14:54:23 +02:00
config.yaml Add discord token field 2022-09-17 21:20:27 +02:00
csgo-hub-backend Fix profile picture for people with no discord pfp 2022-09-18 19:36:51 +02:00
go.mod Initialize project 2022-09-16 15:43:30 +02:00
go.sum Initialize project 2022-09-16 15:43:30 +02:00
index.html Updated design on login site 2022-09-19 23:24:57 +02:00
LICENSE Initial commit 2022-09-16 14:54:23 +02:00
main.go Checks if user already has open token 2022-09-17 22:54:42 +02:00
README.md Specify DB 2022-09-16 15:47:49 +02:00
steam.go Fix profile picture for people with no discord pfp 2022-09-18 19:36:51 +02:00

CS:GO Hub backend

Use with csgo-hub-discord

Database

You need the following tables in MySQL

CREATE TABLE
  `tokens` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `discord_id` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
    `token` varchar(8) COLLATE utf8mb4_unicode_ci NOT NULL,
    PRIMARY KEY (`id`)
  ) ENGINE = InnoDB AUTO_INCREMENT = 17 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci
CREATE TABLE
  `users` (
    `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
    `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
    `discord_id` varchar(18) COLLATE utf8mb4_unicode_ci NOT NULL,
    `friend_code` varchar(10) COLLATE utf8mb4_unicode_ci DEFAULT 'NULL',
    PRIMARY KEY (`id`)
  ) ENGINE = InnoDB AUTO_INCREMENT = 6 DEFAULT CHARSET = utf8mb4 COLLATE = utf8mb4_unicode_ci