Advertisement
RealDjox

followtime_H1kH

Nov 8th, 2023 (edited)
923
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. a=["has been following","for","years","year","months","month","weeks","week","days","day","hours","hour","minutes","minute","seconds","second","is not following"];
  2. b=["подписан на","уже","г","г","мес","мес","нед","нед","дн","дн","ч","ч","мин","мин","сек","сек","не подписан на"];
  3. for(i=0;i<a.length;i++){
  4.     t=t.replace(a[i], b[i]);
  5. }
  6. if(t.includes('не подписан')){
  7.     if(t.split(' ')[0] === '@h1kh'){
  8.         unsub = 'H1kH является владельцем данного канала EZ';
  9.     }
  10.     else{
  11.         emotes = ['NotLikeThis', 'PoroSad', 'BibleThump', 'peepoSad'];
  12.         unsub=t.split(' ')[0] + ' не подписан на канал ' + emotes[Math.floor(Math.random() * emotes.length)];
  13.     }
  14.     t=unsub;
  15. }
  16. if(t.includes('@h1kh уже')){
  17.     t=t.replace('@h1kh', 'Хика');
  18. }
  19. if (t.toLowerCase().includes('could not find a twitch account')){
  20.     t='Не удалось найти пользователя -> ' + t.split(' ').pop();
  21. }
  22. if (t.toLowerCase().includes('could not get users from twitch api')){
  23.     t='Не удалось получить пользователей из Twitch API, имя пользователя недействительно -> ' + t.split(' ').pop();
  24. }
  25. if (t.toLowerCase().includes('remote server')){
  26.     t='Ошибка сервера 404: пользователь не найден.';
  27. }
  28.  
  29.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement