3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00
PyLink/world.py

25 lines
719 B
Python
Raw Normal View History

"""
2016-03-12 08:09:07 +01:00
world.py: Stores global variables for PyLink, including lists of active IRC objects and plugins.
"""
from collections import defaultdict
import threading
# This indicates whether we're running in tests modes. What it actually does
# though is control whether IRC connections should be threaded or not.
testing = False
2015-12-25 03:24:42 +01:00
# Statekeeping for our hooks list, IRC objects, loaded plugins, and initialized
# service bots.
hooks = defaultdict(list)
networkobjects = {}
plugins = {}
services = {}
# Registered extarget handlers. This maps exttarget names (strings) to handling functions.
exttarget_handlers = {}
started = threading.Event()
2015-09-19 20:51:56 +02:00
source = "https://github.com/GLolol/PyLink" # CHANGE THIS IF YOU'RE FORKING!!