From 07d29e8c1dd4b8cfad2bb3bc7e0705e489a13351 Mon Sep 17 00:00:00 2001 From: loicbersier Date: Tue, 18 Feb 2020 19:49:47 +0100 Subject: [PATCH] fix default MKT --- commands/utility/wallpaper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/utility/wallpaper.js b/commands/utility/wallpaper.js index 35c4863e..6bb19db0 100644 --- a/commands/utility/wallpaper.js +++ b/commands/utility/wallpaper.js @@ -24,8 +24,7 @@ class wallpaperCommand extends Command { async exec(message, args) { let mkt = args.region; - console.log(mkt); - if (!args.region) mkt = 'en-us'; + if (!args.region) mkt = 'en-US'; if (!['zh-CN', 'en-US', 'ja-JP', 'en-AU', 'en-UK', 'de-DE', 'en-NZ', 'en-CA'].includes(mkt)) return message.channel.send('Please choose a valid region settings: zh-CN, en-US, ja-JP, en-AU, en-UK, de-DE, en-NZ, en-CA'); fetch(`https://bing.biturl.top/?mkt=${mkt}`) .then(res => {