You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
964 B
48 lines
964 B
/*
|
|
* 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;
|
|
|
|
/**
|
|
*
|
|
* @author jimj316
|
|
*/
|
|
public abstract class Command
|
|
{
|
|
|
|
protected final Chords bot;
|
|
protected final String keyword;
|
|
|
|
public Command(Chords bot, String keyword)
|
|
{
|
|
this.bot = bot;
|
|
this.keyword = keyword;
|
|
}
|
|
|
|
public abstract void call(Invocation invocation);
|
|
|
|
public String getKeyword()
|
|
{
|
|
return keyword;
|
|
}
|
|
|
|
public String argumentDescription()
|
|
{
|
|
return ""; // most commands take no arguments
|
|
}
|
|
|
|
public String synopsis()
|
|
{
|
|
throw new UnsupportedOperationException("Not supported yet.");
|
|
}
|
|
//
|
|
public String help()
|
|
{
|
|
throw new UnsupportedOperationException("Not supported yet.");
|
|
}
|
|
|
|
}
|
|
|