URL Error

This commit is contained in:
Sebastien 2018-03-03 14:56:57 +01:00
parent 9831369c9e
commit c6a2fbfbe5
4 changed files with 6 additions and 4 deletions

View File

@ -97,7 +97,6 @@ public class Init {
logger.debug("-----------------FIN INITIALISATION-----------------");
jda.getPresence().setGame(Game.of("Statut: Ok!"));
}
catch (LoginException | InterruptedException | RateLimitedException e)
@ -110,8 +109,10 @@ public class Init {
}
static void polish(){
static void polish(JDA jda){
CommandLoader.load();
ApiCommandLoader.load();
jda.getPresence().setGame(Game.of("Statut: Ok!"));
}
}

View File

@ -86,7 +86,7 @@ public class MainBot {
e.printStackTrace();
}
Init.polish();
Init.polish(jda);

View File

@ -25,7 +25,7 @@ public class Receiver extends AbstractPromptReceiver {
@Override
public String getRedirectUri() throws IOException {
return System.getenv("SITE_URL") + "/youtube/callback";
return System.getenv("SITE_URL") + "/youtube/callback/";
}
@Override

View File

@ -18,6 +18,7 @@ public class YoutubeCallBack {
if(!code.equals("")){
Receiver.getInstance(null).setCode(code);
}
return "youtubeCallBack";
}
}