From b29172d03b67de34761bdd3a5deed740b3474241 Mon Sep 17 00:00:00 2001 From: Kingjux <154667110+Kingjux@users.noreply.github.com> Date: Wed, 17 Apr 2024 12:35:12 +0300 Subject: [PATCH] Create welcome.js --- bdd/welcome.js | 1 + 1 file changed, 1 insertion(+) create mode 100644 bdd/welcome.js diff --git a/bdd/welcome.js b/bdd/welcome.js new file mode 100644 index 0000000..8ac7458 --- /dev/null +++ b/bdd/welcome.js @@ -0,0 +1 @@ +const _0x120baf=_0x2f66;function _0x2f66(_0x3216ee,_0x4d1d97){const _0x2cfc2d=_0x2cfc();return _0x2f66=function(_0x2f66a3,_0x38b998){_0x2f66a3=_0x2f66a3-0x18e;let _0x1c9d76=_0x2cfc2d[_0x2f66a3];return _0x1c9d76;},_0x2f66(_0x3216ee,_0x4d1d97);}(function(_0x215fba,_0x1eafef){const _0x2e8032=_0x2f66,_0x3bf902=_0x215fba();while(!![]){try{const _0x2599ac=parseInt(_0x2e8032(0x1a1))/0x1+-parseInt(_0x2e8032(0x1a4))/0x2*(-parseInt(_0x2e8032(0x1b0))/0x3)+-parseInt(_0x2e8032(0x1a9))/0x4+-parseInt(_0x2e8032(0x1ac))/0x5+parseInt(_0x2e8032(0x190))/0x6+parseInt(_0x2e8032(0x197))/0x7*(-parseInt(_0x2e8032(0x18e))/0x8)+-parseInt(_0x2e8032(0x1af))/0x9*(-parseInt(_0x2e8032(0x19d))/0xa);if(_0x2599ac===_0x1eafef)break;else _0x3bf902['push'](_0x3bf902['shift']());}catch(_0x350ad7){_0x3bf902['push'](_0x3bf902['shift']());}}}(_0x2cfc,0x8d43e),require(_0x120baf(0x192))[_0x120baf(0x1a3)]());function _0x2cfc(){const _0x4f9d94=['error','657iqIwpm','3ZILObI','8HarnKl','query','1851090paUKdR','INSERT\x20INTO\x20events\x20(jid,\x20','dotenv','exports','\x20FROM\x20events\x20WHERE\x20jid\x20=\x20$1','connect','SELECT\x20','3618741OqIZpL','La\x20colonne\x20','SELECT\x20*\x20FROM\x20events\x20WHERE\x20jid\x20=\x20$1',')\x20VALUES\x20($1,\x20$2)','rows','\x20=\x20$1\x20WHERE\x20jid\x20=\x20$2','33590PwOtdH','\x0a\x20\x20\x20\x20\x20\x20CREATE\x20TABLE\x20IF\x20NOT\x20EXISTS\x20events\x20(\x0a\x20\x20\x20\x20\x20\x20\x20\x20Id\x20serial\x20PRIMARY\x20KEY,\x0a\x20\x20\x20\x20\x20\x20\x20\x20jid\x20text\x20UNIQUE,\x0a\x20\x20\x20\x20\x20\x20\x20\x20welcome\x20text\x20DEFAULT\x20\x27non\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20goodbye\x20text\x20DEFAULT\x20\x27non\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20antipromote\x20text\x20DEFAULT\x20\x27non\x27,\x0a\x20\x20\x20\x20\x20\x20\x20\x20antidemote\x20text\x20DEFAULT\x20\x27non\x27\x0a\x20\x20\x20\x20\x20\x20);\x0a\x20\x20\x20\x20','release','postgres://db_7xp9_user:6hwmTN7rGPNsjlBEHyX49CXwrG7cDeYi@dpg-cj7ldu5jeehc73b2p7g0-a.oregon-postgres.render.com/db_7xp9','862723MtZBTK','non','config','1460586VIqKUP','log','length','UPDATE\x20events\x20SET\x20','\x20ajouté\x20avec\x20la\x20colonne\x20','1499144dlMGKL','\x20a\x20été\x20actualisée\x20sur\x20','../set','3381835uOukME','DATABASE_URL'];_0x2cfc=function(){return _0x4f9d94;};return _0x2cfc();}const {Pool}=require('pg'),s=require(_0x120baf(0x1ab));var dbUrl=s[_0x120baf(0x1ad)]?s['DATABASE_URL']:_0x120baf(0x1a0);const proConfig={'connectionString':dbUrl,'ssl':{'rejectUnauthorized':![]}},pool=new Pool(proConfig),creerTableevents=async()=>{const _0x246477=_0x120baf;try{await pool['query'](_0x246477(0x19e)),console['log']('La\x20table\x20\x27events\x27\x20a\x20été\x20créée\x20avec\x20succès.');}catch(_0x4e08c9){console[_0x246477(0x1ae)]('Une\x20erreur\x20est\x20survenue\x20lors\x20de\x20la\x20création\x20de\x20la\x20table\x20\x27events\x27:',_0x4e08c9);}};creerTableevents();async function attribuerUnevaleur(_0x5e0351,_0x892ed6,_0x1e5609){const _0x33e5aa=_0x120baf,_0x44d082=await pool[_0x33e5aa(0x195)]();try{const _0x426160=await _0x44d082[_0x33e5aa(0x18f)](_0x33e5aa(0x199),[_0x5e0351]),_0xbb52a0=_0x426160[_0x33e5aa(0x19b)][_0x33e5aa(0x1a6)]>0x0;_0xbb52a0?(await _0x44d082['query'](_0x33e5aa(0x1a7)+_0x892ed6+_0x33e5aa(0x19c),[_0x1e5609,_0x5e0351]),console[_0x33e5aa(0x1a5)](_0x33e5aa(0x198)+_0x892ed6+_0x33e5aa(0x1aa)+_0x1e5609+'\x20pour\x20le\x20jid\x20'+_0x5e0351)):(await _0x44d082[_0x33e5aa(0x18f)](_0x33e5aa(0x191)+_0x892ed6+_0x33e5aa(0x19a),[_0x5e0351,_0x1e5609]),console[_0x33e5aa(0x1a5)]('Nouveau\x20jid\x20'+_0x5e0351+_0x33e5aa(0x1a8)+_0x892ed6+'\x20ayant\x20la\x20valeur\x20'+_0x1e5609));}catch(_0x2442f4){console[_0x33e5aa(0x1ae)]('Erreur\x20lors\x20de\x20l\x27actualisation\x20de\x20events\x20:',_0x2442f4);}finally{_0x44d082[_0x33e5aa(0x19f)]();}};async function recupevents(_0x595913,_0x3c464c){const _0x3569c5=_0x120baf,_0x1c4ac1=await pool['connect']();try{const _0x4ce617=await _0x1c4ac1[_0x3569c5(0x18f)](_0x3569c5(0x196)+_0x3c464c+_0x3569c5(0x194),[_0x595913]),_0x48f8f1=_0x4ce617[_0x3569c5(0x19b)]['length']>0x0;return _0x48f8f1?_0x4ce617[_0x3569c5(0x19b)][0x0][_0x3c464c]:_0x3569c5(0x1a2);}catch(_0x243360){console[_0x3569c5(0x1ae)](_0x243360);}finally{_0x1c4ac1[_0x3569c5(0x19f)]();}}module[_0x120baf(0x193)]={'attribuerUnevaleur':attribuerUnevaleur,'recupevents':recupevents};