Skip to content

Commit

Permalink
Update example
Browse files Browse the repository at this point in the history
  • Loading branch information
QGIsK committed Aug 9, 2021
1 parent 3d36e9c commit 4abc8fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.example.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
const JokeAPI = require('.');

const JokeClient = new JokeAPI({ blacklistflags: ['nsfw', 'explicit'] });
const JokeClient = new JokeAPI({ safemode: true, blacklistflags: ['nsfw', 'explicit'] });
const get = async () => {
// Methods
const joke = await JokeClient.getJoke({ categories: 'coding,dark', idRange: '10-15' });
const joke = await JokeClient.getJoke({ safemode: false, categories: 'coding,dark', idRange: '10-15' });
console.log(joke);

const info = await JokeClient.info({ lang: 'en' });
Expand Down

0 comments on commit 4abc8fc

Please sign in to comment.