Bugfix: WillieTimer, no id of nonetype
This commit is contained in:
@@ -142,11 +142,13 @@ class WillieTimer(commands.Cog):
|
||||
|
||||
def get_output_string(self):
|
||||
|
||||
willie_time_string = f"<@&{self.caller_name.id}>, Willie wanted me to tell you:\n" \
|
||||
willie_time_string = f"<@&{self.caller_name.id if self.caller_name is not None else ''}>, " \
|
||||
f"Willie wanted me to tell you:\n" \
|
||||
f"\"{self.get_random_420_phrase()}\"\n" \
|
||||
f"<@&{self.bot_get_role().id}>"
|
||||
|
||||
warm_up_string = f"<@&{self.caller_name.id}> & <@&{self.bot_get_role().id}>! Heads up! " \
|
||||
warm_up_string = f"<@&{str(self.caller_name.id + ' & ') if self.caller_name is not None else ''}>" \
|
||||
f"<@&{self.bot_get_role().id}>! Heads up! " \
|
||||
f"Willie's passing an early message along:\n" \
|
||||
f"\"{self.get_random_warm_up_phrase()}\""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user