banned/roles/__init__.py.example
skizzerz 10f94de9b3 Initial work splitting off roles
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
2016-08-08 19:21:05 -05:00

27 lines
735 B
Plaintext

# Imports all custom and built-in role definitions
# To implement custom roles, rename this file to __init__.py
import os.path
import glob
import importlib
# get built-in roles
import src.roles
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="roles")
# Important: if this isn't defined, built-in roles will
# be imported. Normally this isn't an issue, but if you
# are attempting to suppress the import of built-in roles
# then that might be an issue for you.
CUSTOM_ROLES_DEFINED = True
# vim: set sw=4 expandtab: