mirror of
https://github.com/opus-tango/minecraft-server-discord-bot.git
synced 2026-03-20 03:55:20 +00:00
setup first files for new program
This commit is contained in:
11
fsio.py
Normal file
11
fsio.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import json
|
||||
|
||||
def read_config_file(config_file):
|
||||
with open(config_file, 'r') as f:
|
||||
config = json.load(f)
|
||||
return config['config']
|
||||
|
||||
def read_servers_file(servers_file):
|
||||
with open(servers_file, 'r') as f:
|
||||
servers = json.load(f)
|
||||
return servers['servers']
|
||||
Reference in New Issue
Block a user