mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-30 14:49:28 +01:00
d9db7e1b9e
- Move config handling into separate module - Implement identify and status commands, currently only supporting the admin account defined in the config. Closes #1. - Move proto.add_cmd to utils.py, rename _msg() to msg() - Allow sending the command name as an optional argument in add_cmd - Add catch-all exception handling in plugins to prevent them from crashing the program!
6 lines
88 B
Python
6 lines
88 B
Python
import yaml
|
|
|
|
with open("config.yml", 'r') as f:
|
|
global conf
|
|
conf = yaml.load(f)
|