/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ package moe.nekojimi.chords.commands; import moe.nekojimi.chords.Chords; public class LeaveCommand extends Command { public LeaveCommand(Chords bot) { super(bot, "leave"); } @Override public void call(Invocation invocation) { if (bot.getCurrentVoiceChannel() != null) { bot.disconnect(); } } }