Fixed command response, no args.
This commit is contained in:
parent
6460976a9c
commit
3f5d011719
1 changed files with 10 additions and 2 deletions
|
@ -51,11 +51,11 @@ import java.nio.charset.StandardCharsets;
|
|||
* @since 1.0
|
||||
*/
|
||||
public final class Joke extends ThreadedModule {
|
||||
// The joke command.
|
||||
private static final String JOKE_CMD = "joke";
|
||||
// The ICNDB URL.
|
||||
private static final String JOKE_URL =
|
||||
"http://api.icndb.com/jokes/random?escape=javascript&exclude=[explicit]&limitTo=[nerdy]";
|
||||
// The joke command.
|
||||
private static final String JOKE_CMD = "joke";
|
||||
|
||||
/**
|
||||
* Creates a new {@link Joke} instance.
|
||||
|
@ -94,6 +94,14 @@ public final class Joke extends ThreadedModule {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
@Override
|
||||
public void commandResponse(final Mobibot bot, final String sender, final String args, final boolean isPrivate) {
|
||||
new Thread(() -> run(bot, sender, args)).start();
|
||||
}
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue