diff --git a/pzgram/bot.py b/pzgram/bot.py index 15a738c..72d0a07 100644 --- a/pzgram/bot.py +++ b/pzgram/bot.py @@ -49,7 +49,7 @@ def run(self): # For each timer create a different thread for t in self.timers: threading.Thread(target=self.run_timer, args=(self.timers[t], t), daemon=True).start() - print(time_for_log() + "Bot Started") + print(time_for_log() + self.name + " Started") try: self.run_bot() except KeyboardInterrupt: diff --git a/pzgram/media_objects.py b/pzgram/media_objects.py index e3d98ee..3221a12 100644 --- a/pzgram/media_objects.py +++ b/pzgram/media_objects.py @@ -4,7 +4,7 @@ class GenericMedia: def __init__(self, bot, dict): self.bot = bot - for i in self.attirbutes: + for i in self.attributes: if i in dict: setattr(self, i, dict[i]) else: @@ -91,8 +91,8 @@ class Contact: def __init__(self, bot, contact_dict): self.bot = bot - for i in self.attirbutes: - if i in dict: + for i in self.attributes: + if i in contact_dict: setattr(self, i, contact_dict[i]) else: setattr(self, i, None) @@ -117,8 +117,8 @@ class Venue: def __init__(self, bot, venue_dict): self.bot = bot - for i in self.attirbutes: - if i in dict: + for i in self.attributes: + if i in venue_dict: setattr(self, i, venue_dict[i]) else: setattr(self, i, None)