You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
1.0 KiB
Python

# Other library imports
# import requests
# from json import dumps
# Project imports
# from settings import settings
import util
import ux.commands
import ux.irc
import ux.notify
import ux.verify
class UX(object):
"""
Class to manage calls to various user interfaces.
"""
def __init__(self):
super().__init__()
self.irc = ux.irc.bot()
self.notify = ux.notify.Notify()
self.verify = ux.verify.Verify()
def __xmerged__(self):
"""
Called when xmerge has been completed in the webapp.
Merge all instances into child classes.
"""
init_map = {
"ux": self,
"markets": self.markets,
"sinks": self.sinks,
"sources": self.sources,
"tx": self.tx,
"webapp": self.webapp,
"money": self.money,
"irc": self.irc,
"notify": self.notify,
"verify": self.verify,
"antifraud": self.antifraud,
}
util.xmerge_attrs(init_map)