fix typo
This commit is contained in:
parent
f49cb8b62f
commit
618fb80333
@ -10,7 +10,7 @@ import java.util.Map;
|
||||
/**
|
||||
* @author tschulz
|
||||
*/
|
||||
public final class CommandRegistry implements ICommandRegistery {
|
||||
public final class CommandRegistry implements ICommandRegistry {
|
||||
|
||||
private final Map<String, Command> commandRegistryMap = new HashMap<>();
|
||||
|
||||
|
@ -12,9 +12,9 @@ import org.telegram.telegrambots.api.methods.send.SendMessage;
|
||||
public class HelpCommand extends Command {
|
||||
|
||||
private static final String LOGTAG = "HELPCOMMAND";
|
||||
private final ICommandRegistery commandRegistry;
|
||||
private final ICommandRegistry commandRegistry;
|
||||
|
||||
public HelpCommand(ICommandRegistery commandRegistry, String botToken) {
|
||||
public HelpCommand(ICommandRegistry commandRegistry, String botToken) {
|
||||
super("help", "Gives an overview over all Commands registered for this bot", botToken);
|
||||
this.commandRegistry = commandRegistry;
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ import java.util.Map;
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public interface ICommandRegistery {
|
||||
public interface ICommandRegistry {
|
||||
|
||||
/**
|
||||
* register a command
|
@ -4,7 +4,7 @@ import org.telegram.telegrambots.BotLogger;
|
||||
import org.telegram.telegrambots.TelegramApiException;
|
||||
import org.telegram.telegrambots.api.commands.Command;
|
||||
import org.telegram.telegrambots.api.commands.CommandRegistry;
|
||||
import org.telegram.telegrambots.api.commands.ICommandRegistery;
|
||||
import org.telegram.telegrambots.api.commands.ICommandRegistry;
|
||||
import org.telegram.telegrambots.api.methods.send.SendMessage;
|
||||
import org.telegram.telegrambots.api.objects.Message;
|
||||
import org.telegram.telegrambots.api.objects.Update;
|
||||
@ -18,7 +18,7 @@ import java.util.Map;
|
||||
* @brief TODO
|
||||
* @date 14 of January of 2016
|
||||
*/
|
||||
public abstract class TelegramLongPollingBot extends AbsSender implements ITelegramLongPollingBot, ICommandRegistery {
|
||||
public abstract class TelegramLongPollingBot extends AbsSender implements ITelegramLongPollingBot, ICommandRegistry {
|
||||
|
||||
public static final String LOGTAG = "TelegramLongPollingBot";
|
||||
private final CommandRegistry commandRegistry;
|
||||
|
Loading…
Reference in New Issue
Block a user