forked from franceking1/Flash-Md
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Weather.js
14 lines (1 loc) · 3.5 KB
/
Weather.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
const _0xa7809c=_0x3961;(function(_0x20a2b6,_0x377571){const _0xa87e32=_0x3961,_0x35c0ff=_0x20a2b6();while(!![]){try{const _0x3b41ef=-parseInt(_0xa87e32(0x180))/0x1*(parseInt(_0xa87e32(0x183))/0x2)+parseInt(_0xa87e32(0x18a))/0x3+parseInt(_0xa87e32(0x1a6))/0x4*(parseInt(_0xa87e32(0x189))/0x5)+-parseInt(_0xa87e32(0x18e))/0x6+-parseInt(_0xa87e32(0x186))/0x7*(parseInt(_0xa87e32(0x19a))/0x8)+parseInt(_0xa87e32(0x19b))/0x9*(-parseInt(_0xa87e32(0x17f))/0xa)+parseInt(_0xa87e32(0x192))/0xb*(parseInt(_0xa87e32(0x1a7))/0xc);if(_0x3b41ef===_0x377571)break;else _0x35c0ff['push'](_0x35c0ff['shift']());}catch(_0x2063e3){_0x35c0ff['push'](_0x35c0ff['shift']());}}}(_0x14b8,0x9d652));const axios=require(_0xa7809c(0x182)),fs=require('fs'),{king}=require(_0xa7809c(0x188)),{writeFile}=require(_0xa7809c(0x17d));function _0x14b8(){const _0x4cb01c=['441mwAyMC','\x0a🌅\x20Sunset:\x20','%\x0a🌀\x20Wind\x20Speed:\x20','coord','main','%\x0a🌄\x20Sunrise:\x20','wind','\x0a\x0a\x0a🗺\x20*Country:*\x20','json','sys','❄️\x20Weather\x20in\x20','4KtqgPR','159744DNBaWV','fs/promises','clouds','146180uCSATN','1377koSzjf','weather','axios','986gMnFVW','rain','name','2760191LtIPiI','temp','../france/king','5170190ngxcQu','2491518KXHDrq','join','°C\x0a📝\x20Description:\x20','\x0a❄️\x20Humidity:\x20','4390536QmGcAf','\x0a🌫️\x20*Latitude:*\x20','description','all','1727UhmduS','🌡️','toLocaleTimeString','&units=metric&appid=060a6bcfa19809c2cd4d97a212b19273&language=en','Search','country','\x0a🌪️\x20*Longitude:*\x20','feels_like','24qucpOd'];_0x14b8=function(){return _0x4cb01c;};return _0x14b8();}function _0x3961(_0x52b496,_0x488d3d){const _0x14b848=_0x14b8();return _0x3961=function(_0x396138,_0x4ee58a){_0x396138=_0x396138-0x17d;let _0xec496e=_0x14b848[_0x396138];return _0xec496e;},_0x3961(_0x52b496,_0x488d3d);}king({'nomCom':'weather','reaction':_0xa7809c(0x193),'categorie':_0xa7809c(0x196)},async(_0x1ab784,_0x321421,_0x4d11a5)=>{const _0x365f02=_0xa7809c,{repondre:_0x1d738a,arg:_0x323ad5,ms:_0x3a347f}=_0x4d11a5,_0x2e20dc=_0x323ad5[_0x365f02(0x18b)]('\x20');if(!_0x2e20dc)return _0x1d738a('Give\x20me\x20location...');const _0x4336cf=await fetch('https://api.openweathermap.org/data/2.5/weather?q='+_0x2e20dc+_0x365f02(0x195)),_0x4a0ab6=await _0x4336cf[_0x365f02(0x1a3)](),_0x1b08cc=_0x4a0ab6[_0x365f02(0x185)],_0x1a4ca=_0x4a0ab6[_0x365f02(0x19f)][_0x365f02(0x187)],_0x4e527b=_0x4a0ab6[_0x365f02(0x19f)][_0x365f02(0x199)],_0x5e568e=_0x4a0ab6[_0x365f02(0x19f)]['temp_min'],_0x192023=_0x4a0ab6[_0x365f02(0x19f)]['temp_max'],_0x5f2b18=_0x4a0ab6[_0x365f02(0x181)][0x0][_0x365f02(0x190)],_0x1cd072=_0x4a0ab6[_0x365f02(0x19f)]['humidity'],_0x442100=_0x4a0ab6[_0x365f02(0x1a1)]['speed'],_0x4f06c1=_0x4a0ab6[_0x365f02(0x184)]?_0x4a0ab6[_0x365f02(0x184)]['1h']:0x0,_0x5924e9=_0x4a0ab6[_0x365f02(0x17e)][_0x365f02(0x191)],_0xae23dc=new Date(_0x4a0ab6[_0x365f02(0x1a4)]['sunrise']*0x32a),_0x38f379=new Date(_0x4a0ab6[_0x365f02(0x1a4)]['sunset']*0x258);await _0x1d738a(_0x365f02(0x1a5)+_0x1b08cc+'\x0a\x0a🌡️\x20Temperature:\x20'+_0x1a4ca+_0x365f02(0x18c)+_0x5f2b18+_0x365f02(0x18d)+_0x1cd072+_0x365f02(0x19d)+_0x442100+'\x20m/s\x0a🌧️\x20Rain\x20Volume\x20(last\x20hour):\x20'+_0x4f06c1+'\x20mm\x0a☁️\x20Cloudiness:\x20'+_0x5924e9+_0x365f02(0x1a0)+_0xae23dc[_0x365f02(0x194)]()+_0x365f02(0x19c)+_0x38f379[_0x365f02(0x194)]()+_0x365f02(0x18f)+_0x4a0ab6[_0x365f02(0x19e)]['lat']+_0x365f02(0x198)+_0x4a0ab6[_0x365f02(0x19e)]['lon']+_0x365f02(0x1a2)+_0x4a0ab6[_0x365f02(0x1a4)][_0x365f02(0x197)]+'\x0a\x0a\x0a\x0a*°Powered\x20by\x20FLASH-MD*');});