Skip to content

Instantly share code, notes, and snippets.

@markokajzer
Last active March 20, 2018 18:20
Show Gist options
  • Save markokajzer/26c4123b14b5169600e64802402ba6fa to your computer and use it in GitHub Desktop.
Save markokajzer/26c4123b14b5169600e64802402ba6fa to your computer and use it in GitHub Desktop.
Use db.json with discord-soundbot 1.0
const fs = require('fs');
let file = fs.readFileSync('db.json').toString();
file = file.replace('counts', 'sounds');
const db = JSON.parse(file);
db.sounds.forEach(sound => sound.tags = []);
fs.writeFileSync('db.json', JSON.stringify(db, null, 2));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment