This commit is contained in:
deathbybandaid 2019-07-04 10:53:41 -04:00
parent 6f5bc93f0e
commit 69594b9e4f

View File

@ -23,16 +23,6 @@ class BotServer():
},
}
def __getattr__(self, name):
''' will only get called for undefined attributes '''
"""We will try to find a dict value, or return None"""
if name.lower() in list(self.dict.keys()):
return self.dict[str(name).lower()]
elif name.lower() in list(self.isupport.keys()):
return self.dict[str(name).lower()]
else:
raise Exception('Server dict does not contain a function or key ' + str(name.lower()))
def rpl_welcome(self, trigger):
self.dict["host"] = str(trigger.sender).lower()