Advertisement
Panure

Untitled

Jan 1st, 2019
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. evromaker: function(target) {
  2.         if (!target) return false; //TEMPORAIRE
  3.         if (!this.hasRank('+')) return false;
  4.  
  5.         let phrase = target.split(' ');
  6.         if (phrase.length < 2) return false;
  7.  
  8.         let count = 0;
  9.         let altCount = 0;
  10.         let newPhrase = '';
  11.  
  12.         let arr = [];
  13.         for(let i of phrase) {
  14.             if (i) arr.push(i);
  15.         }
  16.         for(let word of arr) {
  17.             if (!word) continue;
  18.             if (count === 0) {
  19.                 let f = ['Btw', 'Euh pk', 'ba enft', 'enft', 'ba pk', 'squoi les bails', 'kek', 'jvé'];
  20.                 newPhrase += f[Math.floor(Math.random()*f.length)] + ' ' + word + ' ';
  21.                 count++; altCount++;
  22.                 continue;
  23.             }
  24.             if (Math.random() > 0.75) {
  25.                 if (Math.random() > 0.5) {
  26.                     newPhrase += `"${word}" ${Math.random() > 0.8 ? 'kek ' : ''}`;
  27.                 } else {
  28.                     newPhrase += `:${word}: ${Math.random() > 0.8 ? 'kek ' : ''}`;
  29.                 }
  30.                 count++; altCount++;
  31.                 continue;
  32.             }
  33.  
  34.             if (altCount > 3 && (count !== (arr.length) - 1) && Math.random() > 0.65) {
  35.                 let a = ['kek', 'ué ué', 'mdrrr', '(ba après g 13 ans)', 'dcp c normal'];
  36.                
  37.                 newPhrase += `${word} ${a[Math.floor(Math.random()*a.length)]} , `;
  38.                 altCount = 0; count++;
  39.                 continue;
  40.             }
  41.  
  42.             if (count === (arr.length - 1)) {
  43.                 let g = ['(je rigole ofc)', 'j\'vous goumasse N_n', 'N_n jvou goumasse', 'bref jvou goumasse', 'bref', 'staiv', 'bref go goulag ??', '(apres g 13 apres)', 'dcp c norml', 'mdrrrrr', 'plz', 'PLZ', 'plZ', 'jej starf', 'plZzz'];
  44.                 newPhrase += ` ${word} ${g[Math.floor(Math.random()*g.length)]} `;
  45.                 count++; altCount++;
  46.                 continue;
  47.             }
  48.  
  49.             if (Math.random() > 0.7) {
  50.                 let h = ['Jsp',  ':)', 'tbh ué', 'plz', '?_?', 'N_n', 'mdr mé non', 'zetes con', 'ué ué', 'mdrrrr', 'ui', 'cv', 'Oo', 'X3', 'oque', 'rllent', 'leeel', 'when', 'keeeeek'];
  51.                 newPhrase += `${word} ${h[Math.floor(Math.random()*h.length)]} `;
  52.                 count++; altCount++;
  53.                 continue;
  54.             }
  55.             newPhrase += `${word} `;
  56.             count++; altCount++;
  57.         }
  58.         return this.reply(newPhrase);
  59.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement