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

View File

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

View File

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

View File

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