Skip to content

Commit

Permalink
feat(20231212): add help image size parameter (#46)
Browse files Browse the repository at this point in the history
  • Loading branch information
liozzazhang authored Feb 28, 2024
1 parent 8b80aff commit cc5cd1e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webex_bot/commands/help.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

class HelpCommand(Command):

def __init__(self, bot_name, bot_help_subtitle, bot_help_image):
def __init__(self, bot_name, bot_help_subtitle, bot_help_image, bot_help_image_size = ImageSize.SMALL):
self.commands = None
super().__init__(
command_keyword=HELP_COMMAND_KEYWORD,
Expand All @@ -25,6 +25,7 @@ def __init__(self, bot_name, bot_help_subtitle, bot_help_image):
self.bot_name = bot_name
self.bot_help_subtitle = bot_help_subtitle
self.bot_help_image = bot_help_image
self.bot_help_image_size = bot_help_image_size

def execute(self, message, attachment_actions, activity):
pass
Expand All @@ -42,7 +43,7 @@ def build_card(self, message, attachment_actions, activity):

image = Image(
url=self.bot_help_image,
size=ImageSize.SMALL)
size=self.bot_help_image_size)

header_column = Column(items=[heading, subtitle], width=2)
header_image_column = Column(
Expand Down

0 comments on commit cc5cd1e

Please sign in to comment.