„src/de/mrbesen/youtubecrawler/Main.java“ ändern

This commit is contained in:
MrBesen 2019-10-18 21:04:54 +02:00
parent 080b14a4a0
commit e34622e7e7
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ public class Main implements JSONCommandHandler {
}
//starting BOT API
tapi = new TelegramAPI(Config.prop.getProperty("telegramapi.key"));
tapi = new TelegramAPI(Config.prop.getProperty("telegramapi.key"), "randomytvideobot");
tapi.getCommandManager().registerCommand( this);
tapi.getEventManager().registerEvent(UserSendMessageEvent.class, this::onAdmin);
tapi.setHelpText("Send the command /random to get a random video.");