diff --git a/modules/quotes.js b/modules/quotes.js index 069e532..40d8c36 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -124,7 +124,7 @@ var quotes = function(dbot) { dbot.say(data.channel, q[1] + dbot.strings[dbot.language].locked_category); } } else { - dbot.say(data.channel, 'No quotes exist under ' + q[1]); + dbot.say(data.channel, dbot.strings[dbot.language].no_quotes + q[1]); } } else { var last = addStack.pop(); diff --git a/run.js b/run.js index 83d2fdc..abd6605 100644 --- a/run.js +++ b/run.js @@ -41,7 +41,7 @@ var DBot = function(timers) { } // Load the strings file - this.strings = fs.readFileSync('strings.json', 'utf-8'); + this.strings = JSON.parse(fs.readFileSync('strings.json', 'utf-8')); // Populate bot properties with config data this.name = this.config.name || 'dbox'; diff --git a/strings.json b/strings.json index e24da9a..89ccadb 100644 --- a/strings.json +++ b/strings.json @@ -33,9 +33,8 @@ "unmodehate": "No longer hating on ", "qlock": "Locked quote category: ", "spelling_self": " meant: ", - "spelling_other": " thinks ", + "spelling_other": " thinks " }, - "spanish": { "syntax_error": "Sintaxis no válida. Iniciar la incineración.", "module_load_error": "No se pudó cargar el módulo: ", @@ -70,8 +69,6 @@ "unmodehate": "", "qlock": "", "spelling_self": "", - "spelling_other_1": "", - "spelling_other_2": "" - + "spelling_other": "" } }