diff options
| author | Alee <Alee14498@gmail.com> | 2019-10-22 19:58:52 +0000 |
|---|---|---|
| committer | Alee <Alee14498@gmail.com> | 2019-10-22 19:58:52 +0000 |
| commit | b09e7677a0ab138075dab56e1b61f551fcbc1b94 (patch) | |
| tree | d19222862886f54261ed3618ce03f0abfa95be51 | |
| parent | 8abc8f59e0a3844259b64fa9621f806ce10a343a (diff) | |
| download | PokeBot-b09e7677a0ab138075dab56e1b61f551fcbc1b94.tar.gz PokeBot-b09e7677a0ab138075dab56e1b61f551fcbc1b94.tar.bz2 PokeBot-b09e7677a0ab138075dab56e1b61f551fcbc1b94.zip | |
Skips DBL if it doesn't exist
| -rw-r--r-- | bot.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -4,7 +4,14 @@ const config = require('./config.json'); const fs = require('fs'); const readline = require('readline'); const DBL = require('dblapi.js'); -bot.dbl = new DBL(config.dbltoken, bot); +if (typeof config.dbltoken == 'undefined') { + console.log("Skipping DBL..."); +} else { + bot.dbl = new DBL(config.dbltoken, bot); + console.log("DBL has been found..."); + +} + const rl = readline.createInterface({ input: process.stdin, |
