Exemple #1
0
async def slash_repeat(command: dict, app):
    channel_id = command['channel_id']
    slack_id = command['user_id']
    slack = app["plugins"]["slack"].api

    method_type, message = get_slash_repeat_messages(slack_id, channel_id, command['text'])
    await slack.query(method_type, message)
async def slash_repeat(command: Command, app: SirBot):
    logger.info(f'repeat command data incoming {command}')
    channel_id = command['channel_id']
    slack_id = command['user_id']
    slack = app["plugins"]["slack"].api

    method_type, message = get_slash_repeat_messages(slack_id, channel_id,
                                                     command['text'])
    await slack.query(method_type, message)