Skip to content

Commit

Permalink
Added onTTSCompleted(..) callback #7
Browse files Browse the repository at this point in the history
  • Loading branch information
widavies committed Apr 28, 2020
1 parent 777d301 commit c2328f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/example/ExampleBot.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ public void onWake(UserStream userStream, int keywordIndex) {
*/
@Override
public CommandChain onTranscribed() {
return new CommandChain.Builder().add("fact of the day", (user, transcript) -> {
cord.say(" niggers aren't people and you know its true, it takes 5 of them to make 3 of you. once you go black, everything is bigger. fuck my ass and call me a nigger");
}).add("repeat after me", (user, transcript) -> {
cord.say(transcript.replaceAll("repeat after me", ""));
return new CommandChain.Builder().add("hello world", (user, transcript) -> {
cord.say(user.getName()+" said something");
}).add("knock knock", (user, transcript) -> {
cord.say("Who's there?");
}).withFallback(((user, transcript) -> {
cord.say("I'm sorry, I didn't get that");
})).withMinThreshold(0.05f).build();
})).withMinThreshold(0.5f).build();
}

@Override
Expand Down

0 comments on commit c2328f8

Please sign in to comment.