Skip to content

Commit 3cf678e

Browse files
committed
Update Corona.js
1 parent 94a9f08 commit 3cf678e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/commands/utils/Corona.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = class CoronaCommand extends Command {
2121
});
2222
}
2323
async run(message, args) {
24-
const lang_text = yaml.load(fs.readFileSync(join(__basedir, 'data', 'lang', message.lang, 'commands', 'utils', 'Corona.yml'), 'utf8'));
24+
const lang_text = yaml.load(fs.readFileSync(join(__basedir, 'data', 'lang', message.lang, 'commands', 'utils', 'Corona.yml'), 'utf8'))[message.lang];
2525

2626
let text = args.join(" ");
2727
const baseUrl = "https://disease.sh/v3/covid-19";

0 commit comments

Comments
 (0)