-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
395 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Network | ||
# HTTP status code for a successful request | ||
STATUS_SUCCESS = 200 | ||
|
||
# Main | ||
API_ENDPOINT = '/api/v2/servers/' | ||
GUILD_ID = 1168172802562601121 | ||
AUTO_STOP_SLEEP = 1800 # 30 minutes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# core/imports.py | ||
|
||
import asyncio | ||
import os | ||
import requests | ||
import discord | ||
from discord.ext import commands | ||
from discord import Interaction, app_commands | ||
from discord.ext.commands import is_owner | ||
from discord import ui | ||
from dotenv import load_dotenv | ||
|
||
# Custom imports | ||
from core.helper import check_env_vars | ||
from core.network import is_response_successful, get_json_response | ||
from core.printing import print_server_info, print_server_status | ||
from core.server import is_server_running, stop_server, get_player_count |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.