Skip to content

Commit 4c20a9e

Browse files
committed
DB check for hangman warning
1 parent cc188f2 commit 4c20a9e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

triviabot.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1429,7 +1429,11 @@ function parseCommand(msg, cmd, isAdmin) {
14291429

14301430
if(cmd.startsWith("PLAY HANGMAN ") || cmd === "PLAY HANGMAN") {
14311431
categoryInput = cmd.replace("PLAY HANGMAN ","");
1432-
Trivia.send(msg.channel, msg.author, "*(Beware: Some questions from OpenTDB are not designed for hangman-style gameplay)*");
1432+
1433+
if(getConfigVal("databaseURL") === "https://opentdb.com") {
1434+
Trivia.send(msg.channel, msg.author, "*(Beware: Some questions from OpenTDB are not designed for hangman-style gameplay)*");
1435+
}
1436+
14331437
commands.triviaPlay(msg, categoryInput, 2);
14341438
global.client.shard.send({stats: { commandPlayHangmanCount: 1 }});
14351439
return;

0 commit comments

Comments
 (0)