Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
infopz committed Apr 4, 2018
1 parent d664b36 commit cc57472
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pzgram/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
10 changes: 5 additions & 5 deletions pzgram/media_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand All @@ -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)
Expand Down

0 comments on commit cc57472

Please sign in to comment.