mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-25 12:12:53 +01:00
e1e31f64ad
They will get called in a list, one after the other. The "help" command is able to distinguish with this too.
19 lines
464 B
Python
19 lines
464 B
Python
# world.py: global state variables go here
|
|
|
|
from collections import defaultdict
|
|
import threading
|
|
|
|
# Global variable to indicate whether we're being ran directly, or imported
|
|
# for a testcase.
|
|
testing = True
|
|
|
|
global bot_commands, command_hooks
|
|
# This should be a mapping of command names to functions
|
|
bot_commands = defaultdict(list)
|
|
command_hooks = defaultdict(list)
|
|
networkobjects = {}
|
|
schedulers = {}
|
|
plugins = []
|
|
whois_handlers = []
|
|
started = threading.Event()
|