Advertisement
Zaayd

كود تغيير حالات البوت

Nov 27th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var prefix = "+"; //حط البرفكس لي تبي
  2. client.on('ready', () => {
  3.  
  4.  
  5.   var ms = 5000;
  6.  
  7.   var setActivity = [`${prefix}help`, `Activity 1`, `Activity 2`, `Activity 3`,`Activity 4`];
  8.  
  9.   var i = -1;
  10.  
  11.   var j = 0;
  12.  
  13.   setInterval(function() {
  14.  
  15.     if (i == -1) {
  16.  
  17.       j = 1;
  18.  
  19.     }
  20.  
  21.     if (i == (setActivity.length) - 1) {
  22.  
  23.       j = -1;
  24.  
  25.     }
  26.  
  27.     i = i + j;
  28.  
  29.     client.user.setActivity(setActivity[i]);
  30.  
  31.   }, ms);
  32.  
  33. });
  34. /*
  35. اذا جاك ايرور ف ال برفكس شيل السطر
  36. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement