We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94a9f08 commit 3cf678eCopy full SHA for 3cf678e
src/commands/utils/Corona.js
@@ -21,7 +21,7 @@ module.exports = class CoronaCommand extends Command {
21
});
22
}
23
async run(message, args) {
24
- const lang_text = yaml.load(fs.readFileSync(join(__basedir, 'data', 'lang', message.lang, 'commands', 'utils', 'Corona.yml'), 'utf8'));
+ const lang_text = yaml.load(fs.readFileSync(join(__basedir, 'data', 'lang', message.lang, 'commands', 'utils', 'Corona.yml'), 'utf8'))[message.lang];
25
26
let text = args.join(" ");
27
const baseUrl = "https://disease.sh/v3/covid-19";
0 commit comments