Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=["has been following","for","years","year","months","month","weeks","week","days","day","hours","hour","minutes","minute","seconds","second","is not following"];
- b=["подписан на","уже","г","г","мес","мес","нед","нед","дн","дн","ч","ч","мин","мин","сек","сек","не подписан на"];
- for(i=0;i<a.length;i++){
- t=t.replace(a[i], b[i]);
- }
- if(t.includes('не подписан')){
- if(t.split(' ')[0] === '@realdjox'){
- emotes = ["EZ", "CoolCat", "Chel", "PopNemo"];
- unsub = 'RealDjox владелец этого канала ' + emotes[Math.floor(Math.random() * emotes.length)];
- }
- else{
- emotes = ['NotLikeThis','PoroSad','BibleThump', 'peepoSad'];
- unsub=t.split(' ')[0] + ' не подписан на канал ' + emotes[Math.floor(Math.random() * emotes.length)];
- }
- t=unsub;
- }
- if(t.includes('@realdjox уже')){
- t=t.replace('@realdjox', 'RealDjox');
- }
- if (t.toLowerCase().includes('could not find a twitch account')){
- t='Не удалось найти пользователя -> ' + t.split(' ').pop();
- }
- if (t.toLowerCase().includes('could not get users from twitch api')){
- t='Не удалось получить пользователей из Twitch API, имя пользователя недействительно -> ' + t.split(' ').pop();
- }
- if (t.toLowerCase().includes('remote server')){
- t='Ошибка сервера 404: пользователь не найден.';
- }
- if(t.split(' ')[0] === '@lizkasosiska19'){
- t = t + ' [P.S. с 01.11.2020]'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement