Skip to content
This repository has been archived by the owner on May 26, 2021. It is now read-only.

Commit

Permalink
OKAY IT WORKS
Browse files Browse the repository at this point in the history
  • Loading branch information
BuildTools committed Nov 18, 2019
1 parent 6ffd499 commit 796836b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions mixer-common/src/main/java/pro/kdray/funniray/mixer/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void setAPIKey(String key) {
}

public void startChat() throws ExecutionException, InterruptedException {
MixerAPI mixer = new MixerAPI(APIKey, clientID);
MixerAPI mixer = new MixerAPI(clientID, APIKey);

MixerUser user = mixer.use(UsersService.class).getCurrent().get();
MixerChat chat = mixer.use(ChatService.class).findOne(user.channel.id).get();
Expand All @@ -54,15 +54,15 @@ public void startChat() throws ExecutionException, InterruptedException {
}

public void startInteractive() throws ExecutionException, InterruptedException {
MixerAPI mixer = new MixerAPI(APIKey, clientID);
MixerAPI mixer = new MixerAPI(clientID, APIKey);

MixerUser user = mixer.use(UsersService.class).getCurrent().get();

interactive = new Interactive(mixer, user, APIKey, eventHandler);
}

public void startAll() throws ExecutionException, InterruptedException {
MixerAPI mixer = new MixerAPI(APIKey, clientID);
MixerAPI mixer = new MixerAPI(clientID, APIKey);

MixerUser user = mixer.use(UsersService.class).getCurrent().get();
MixerChat chat = mixer.use(ChatService.class).findOne(user.channel.id).get();
Expand Down

0 comments on commit 796836b

Please sign in to comment.