For now, seer and wild child are done. There are some aspects of those roles that are still incomplete, namely: - sorcerer and alpha wolf handling of seer/oracle/augur is still in wolfgame.py instead of via events - wild child does not modify !stats
17 lines
381 B
Python
17 lines
381 B
Python
# Imports all role definitions
|
|
import os.path
|
|
import glob
|
|
import importlib
|
|
|
|
path = os.path.dirname(os.path.abspath(__file__))
|
|
search = os.path.join(path, "*.py")
|
|
|
|
for f in glob.iglob(search):
|
|
f = os.path.basename(f)
|
|
n, _ = os.path.splitext(f)
|
|
if f == "__init__.py":
|
|
continue
|
|
importlib.import_module("." + n, package="src.roles")
|
|
|
|
# vim: set sw=4 expandtab:
|