Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- evromaker: function(target) {
- if (!target) return false; //TEMPORAIRE
- if (!this.hasRank('+')) return false;
- let phrase = target.split(' ');
- if (phrase.length < 2) return false;
- let count = 0;
- let altCount = 0;
- let newPhrase = '';
- let arr = [];
- for(let i of phrase) {
- if (i) arr.push(i);
- }
- for(let word of arr) {
- if (!word) continue;
- if (count === 0) {
- let f = ['Btw', 'Euh pk', 'ba enft', 'enft', 'ba pk', 'squoi les bails', 'kek', 'jvé'];
- newPhrase += f[Math.floor(Math.random()*f.length)] + ' ' + word + ' ';
- count++; altCount++;
- continue;
- }
- if (Math.random() > 0.75) {
- if (Math.random() > 0.5) {
- newPhrase += `"${word}" ${Math.random() > 0.8 ? 'kek ' : ''}`;
- } else {
- newPhrase += `:${word}: ${Math.random() > 0.8 ? 'kek ' : ''}`;
- }
- count++; altCount++;
- continue;
- }
- if (altCount > 3 && (count !== (arr.length) - 1) && Math.random() > 0.65) {
- let a = ['kek', 'ué ué', 'mdrrr', '(ba après g 13 ans)', 'dcp c normal'];
- newPhrase += `${word} ${a[Math.floor(Math.random()*a.length)]} , `;
- altCount = 0; count++;
- continue;
- }
- if (count === (arr.length - 1)) {
- 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'];
- newPhrase += ` ${word} ${g[Math.floor(Math.random()*g.length)]} `;
- count++; altCount++;
- continue;
- }
- if (Math.random() > 0.7) {
- 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'];
- newPhrase += `${word} ${h[Math.floor(Math.random()*h.length)]} `;
- count++; altCount++;
- continue;
- }
- newPhrase += `${word} `;
- count++; altCount++;
- }
- return this.reply(newPhrase);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement