def METHOD_NAME(self, title, message, config):
    """
    Send a Slack notification
    """
    notification = {
        'text': message,
        'username': config.get('username'),
        'channel': config.get('channel'),
        'attachments': config.get('attachments'),
    }
    if config.get('icon_emoji'):
        notification['icon_emoji'] = ':%s:' % config['icon_emoji'].strip(':')
    if config.get('icon_url'):
        notification['icon_url'] = config['icon_url']
    try:
        requests.post(config['web_hook_url'], json=notification)
    except RequestException as e:
        raise PluginWarning(e.args[0])