forked from nguynquminh/Module-Mirai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoki doki literature club.js
21 lines (19 loc) · 3.49 KB
/
doki doki literature club.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
module.exports.config = {
name: "ddlc",
version: "1.0.0",
hasPermssion: 0,
credits: "Quang Minh",
description: "Tạo background theo tựa game Doki Doki Literature Club",
commandCategory: "Banner",
usages: "[Character]|[Background]|[Text]",
cooldowns: 5,
dependencies: {
"fs-extra": "",
"axios": ""
}
};
module.exports.languages = {
"vi": {},
"en": {}
};
function _0x53b7(_0x3511e8,_0x3a22a6){const _0x500825=_0x5008();return _0x53b7=function(_0x53b7ad,_0x5316df){_0x53b7ad=_0x53b7ad-0x1bc;let _0x2205d7=_0x500825[_0x53b7ad];return _0x2205d7;},_0x53b7(_0x3511e8,_0x3a22a6);}const _0x3f2a65=_0x53b7;function _0x5008(){const _0x4031b9=['data','1924592WeaYkq','Character:\x20monika,\x20yuri,\x20natsuki,\x20sayori\x20or\x20m,\x20y,\x20n\x20,\x20s\x0aBackground:\x20bedroom,\x20class,\x20closet,\x20club,\x20corridor,\x20house,\x20kitchen,\x20residential,\x20sayori_bedroom\x0aCú\x20pháp:\x20[character]|[background]|[text]','141ztvISz','arraybuffer','408372blxaSj','parse','map','5gUQruz','run','fs-extra','Đã\x20xảy\x20ra\x20lỗi\x20','1032828criVOf','sendMessage','catch','7739984zWkUxe','17454798vnzFXp','response','4866560GQuJUV','threadID','message','messageID','querystring','from','https://api-ttk.herokuapp.com/other/ddlc?','unlinkSync','18742jpvhDb','createReadStream','stringify','get','trim','split'];_0x5008=function(){return _0x4031b9;};return _0x5008();}(function(_0xb72485,_0x3d4523){const _0x31eb06=_0x53b7,_0x5d5eb2=_0xb72485();while(!![]){try{const _0x4aae4f=parseInt(_0x31eb06(0x1d9))/0x1+parseInt(_0x31eb06(0x1c7))/0x2*(parseInt(_0x31eb06(0x1d0))/0x3)+parseInt(_0x31eb06(0x1ce))/0x4*(parseInt(_0x31eb06(0x1d5))/0x5)+parseInt(_0x31eb06(0x1d2))/0x6+parseInt(_0x31eb06(0x1bc))/0x7+-parseInt(_0x31eb06(0x1bf))/0x8+-parseInt(_0x31eb06(0x1bd))/0x9;if(_0x4aae4f===_0x3d4523)break;else _0x5d5eb2['push'](_0x5d5eb2['shift']());}catch(_0x3cc422){_0x5d5eb2['push'](_0x5d5eb2['shift']());}}}(_0x5008,0x8db5d),module['exports'][_0x3f2a65(0x1d6)]=async function({api:_0x3e0213,event:_0x423832,args:_0x375583}){const _0x432815=_0x3f2a65,_0x1c7b3a=require('axios'),_0x52285f=require(_0x432815(0x1d7)),_0x2ea83d=require(_0x432815(0x1c3));_0x375583['length']==0x0&&_0x3e0213['sendMessage'](_0x432815(0x1cf),_0x423832[_0x432815(0x1c0)],_0x423832[_0x432815(0x1c2)]);const _0x16f630=_0x375583['join']('\x20')[_0x432815(0x1cc)]('|')[_0x432815(0x1d4)](_0x1123ba=>_0x1123ba=_0x1123ba[_0x432815(0x1cb)]()),_0x39dd39=_0x16f630[0x0],_0x25a0b2=_0x16f630[0x1];text=_0x16f630[0x2];let _0x54137e={'character':_0x39dd39,'background':_0x25a0b2,'text':text};_0x54137e=_0x2ea83d[_0x432815(0x1c9)](_0x54137e);const _0x291aae=__dirname+'/cache/banner.png';let _0x2c99a0;_0x1c7b3a[_0x432815(0x1ca)](_0x432815(0x1c5)+_0x54137e,{'responseType':_0x432815(0x1d1)})['then'](_0x49672d=>{const _0x5c729b=_0x432815,_0x447c59=_0x49672d[_0x5c729b(0x1cd)];_0x52285f['writeFileSync'](_0x291aae,Buffer[_0x5c729b(0x1c4)](_0x447c59)),_0x3e0213[_0x5c729b(0x1da)]({'body':'Ảnh\x20của\x20bạn\x20đây!','attachment':_0x52285f[_0x5c729b(0x1c8)](_0x291aae)},_0x423832['threadID'],()=>_0x52285f[_0x5c729b(0x1c6)](_0x291aae),_0x423832['messageID']);})[_0x432815(0x1db)](_0x594483=>{const _0x14d00a=_0x432815;let _0x5b4c86;if(_0x594483[_0x14d00a(0x1be)])_0x5b4c86=JSON[_0x14d00a(0x1d3)](_0x594483[_0x14d00a(0x1be)][_0x14d00a(0x1cd)]['toString']());else _0x5b4c86=_0x594483;return _0x3e0213[_0x14d00a(0x1da)](_0x14d00a(0x1d8)+_0x5b4c86['error']+'\x20'+_0x5b4c86[_0x14d00a(0x1c1)],_0x423832['threadID'],_0x423832[_0x14d00a(0x1c2)]);});});