{"size": 429, "ext": "js", "max_stars_repo_path": "commands/recherche.js", "max_stars_repo_name": "Kalienne/BotAzion", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "commands/recherche.js", "max_issues_repo_name": "Kalienne/BotAzion", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "commands/recherche.js", "max_forks_repo_name": "Kalienne/BotAzion", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 22.5789473684, "max_line_length": 84, "alphanum_fraction": 0.6386946387}
const Command = require('./command')

module.exports = class recherche extends Command {

  static match (message) {
    console.log('checking recherche')
    return message.content.startsWith('!kyoutube')
  }


  static action (message) {
    let args = message.content.split(' ')
    args.shift()
    message.delete()
    message.reply('https://www.youtube.com/results?search_query=' + args.join('+'))
  }

}
