Skip to content

Commit

Permalink
Create protocols folder
Browse files Browse the repository at this point in the history
  • Loading branch information
BattlefieldDuck committed Mar 12, 2024
1 parent ed9474e commit 104d119
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 16 deletions.
7 changes: 1 addition & 6 deletions app.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
from flask import Flask, abort, request, jsonify

from MasterServer import MasterServer

from BeamMP import BeamMP
from Factorio import Factorio
from Palworld import Palworld
from Scum import Scum
from protocols import MasterServer, BeamMP, Factorio, Palworld, Scum

app = Flask(__name__)

Expand Down
7 changes: 1 addition & 6 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,7 @@
import time
import schedule

from MasterServer import MasterServer

from BeamMP import BeamMP
from Factorio import Factorio
from Palworld import Palworld
from Scum import Scum
from protocols import MasterServer, BeamMP, Factorio, Palworld, Scum

threads: dict[str, Thread] = {}

Expand Down
2 changes: 1 addition & 1 deletion BeamMP.py → protocols/BeamMP.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from datetime import datetime, timezone
from pymongo import UpdateOne

from MasterServer import MasterServer
from protocols.MasterServer import MasterServer


class BeamMP(MasterServer):
Expand Down
2 changes: 1 addition & 1 deletion Factorio.py → protocols/Factorio.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from datetime import datetime, timezone
from pymongo import UpdateOne

from MasterServer import MasterServer
from protocols.MasterServer import MasterServer


class Factorio(MasterServer):
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion Palworld.py → protocols/Palworld.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from tqdm import tqdm
import requests

from MasterServer import MasterServer
from protocols.MasterServer import MasterServer


class Palworld(MasterServer):
Expand Down
2 changes: 1 addition & 1 deletion Scum.py → protocols/Scum.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from pymongo import UpdateOne
from tqdm import tqdm

from MasterServer import MasterServer
from protocols.MasterServer import MasterServer


class Scum(MasterServer):
Expand Down
5 changes: 5 additions & 0 deletions protocols/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from .BeamMP import BeamMP
from .Factorio import Factorio
from .MasterServer import MasterServer
from .Palworld import Palworld
from .Scum import Scum

0 comments on commit 104d119

Please sign in to comment.