Last active
March 20, 2018 18:20
-
-
Save markokajzer/26c4123b14b5169600e64802402ba6fa to your computer and use it in GitHub Desktop.
Use db.json with discord-soundbot 1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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