Skip to content

Instantly share code, notes, and snippets.

View markokajzer's full-sized avatar
😻

Marko Kajzer markokajzer

😻
View GitHub Profile
@markokajzer
markokajzer / transform.js
Last active March 20, 2018 18:20
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));