This commit is contained in:
tschulz 2016-05-20 11:16:39 +02:00
parent f49cb8b62f
commit 618fb80333
4 changed files with 6 additions and 6 deletions

View File

@ -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<>();

View File

@ -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;
}

View File

@ -6,7 +6,7 @@ import java.util.Map;
/**
*
*/
public interface ICommandRegistery {
public interface ICommandRegistry {
/**
* register a command

View File

@ -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;