From a89624b8fc1e6e59998f1bcef5adbaa3e0e7c91b Mon Sep 17 00:00:00 2001 From: kezzkezzkezz <60633244+kezzkezzkezz@users.noreply.github.com> Date: Thu, 28 Sep 2023 22:28:03 +1300 Subject: [PATCH 1/3] Update games.csv --- discordgsm/games.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/discordgsm/games.csv b/discordgsm/games.csv index 94ecf8c..b71aa34 100644 --- a/discordgsm/games.csv +++ b/discordgsm/games.csv @@ -105,7 +105,7 @@ fear,F.E.A.R. (2005),gamespy2,port_query=27888 fivem,Grand Theft Auto V - FiveM (2013),fivem,port=30120 flashpoint,Operation Flashpoint: Cold War Crisis (2001),gamespy1,port=2302;port_query_offset=1 flashpointresistance,Operation Flashpoint: Resistance (2002),gamespy1,port=2302;port_query_offset=1 -forrest,The Forrest (2014),source,port=27015;port_query_offset=1 +forest,The Forest (2014),source,port=27015;port_query_offset=1 fortressforever,Fortress Forever (2007),source,port=27015 fs22,Farming Simulator 22 (2021),source,port=27015 From 0d30601a0e5df20ef9aba487c26abc4f83f685b5 Mon Sep 17 00:00:00 2001 From: kezzkezzkezz <60633244+kezzkezzkezz@users.noreply.github.com> Date: Fri, 29 Sep 2023 00:29:36 +1300 Subject: [PATCH 2/3] Update app.py --- app.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app.py b/app.py index adb15b5..824b148 100644 --- a/app.py +++ b/app.py @@ -4,6 +4,7 @@ from dotenv import load_dotenv from flask import Flask, jsonify, render_template, request +from flask_cors import CORS from discordgsm.database import Database from discordgsm.environment import env, environment @@ -15,6 +16,8 @@ load_dotenv() app = Flask(__name__, static_url_path='', static_folder='public/static', template_folder='public') +cors = CORS(app, resources={r"/api/*": {"origins": "*"}}) + cmd = [command.to_dict() for command in tree.get_commands(guild=None if public or len(whitelist_guilds) <= 0 else whitelist_guilds[0])] From f61b6669bee3cef3e2a053cf7ddeddcb91913c46 Mon Sep 17 00:00:00 2001 From: kezzkezzkezz <60633244+kezzkezzkezz@users.noreply.github.com> Date: Fri, 29 Sep 2023 02:14:57 +1300 Subject: [PATCH 3/3] Update app.py --- app.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/app.py b/app.py index 824b148..adb15b5 100644 --- a/app.py +++ b/app.py @@ -4,7 +4,6 @@ from dotenv import load_dotenv from flask import Flask, jsonify, render_template, request -from flask_cors import CORS from discordgsm.database import Database from discordgsm.environment import env, environment @@ -16,8 +15,6 @@ load_dotenv() app = Flask(__name__, static_url_path='', static_folder='public/static', template_folder='public') -cors = CORS(app, resources={r"/api/*": {"origins": "*"}}) - cmd = [command.to_dict() for command in tree.get_commands(guild=None if public or len(whitelist_guilds) <= 0 else whitelist_guilds[0])]