View difference between Paste ID: nNPYeWrr and TuKzjM59
SHOW: | | - or go back to the newest paste.
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'){
7+
	if(t.split(' ')[0] === '@realdjox'){
8-
        unsub = 'H1kH является владельцем данного канала EZ';
8+
        emotes = ["EZ", "CoolCat", "Chel", "PopNemo"];
9
        unsub = 'RealDjox владелец этого канала ' + emotes[Math.floor(Math.random() * emotes.length)];
10
    }
11-
        emotes = ['NotLikeThis', 'PoroSad', 'BibleThump', 'peepoSad'];
11+
12
		emotes = ['NotLikeThis','PoroSad','BibleThump', 'peepoSad'];
13
        unsub=t.split(' ')[0] + ' не подписан на канал ' + emotes[Math.floor(Math.random() * emotes.length)];
14
    }
15
	t=unsub;
16-
if(t.includes('@h1kh уже')){
16+
17-
    t=t.replace('@h1kh', 'Хика');
17+
if(t.includes('@realdjox уже')){
18
    t=t.replace('@realdjox', 'RealDjox');
19
}
20
if (t.toLowerCase().includes('could not find a twitch account')){
21
    t='Не удалось найти пользователя -> ' + t.split(' ').pop();
22
}
23
if (t.toLowerCase().includes('could not get users from twitch api')){
24
	t='Не удалось получить пользователей из Twitch API, имя пользователя недействительно -> ' + t.split(' ').pop();
25
}
26
if (t.toLowerCase().includes('remote server')){
27
	t='Ошибка сервера 404: пользователь не найден.';
28
}
29-
29+
30
if(t.split(' ')[0] === '@lizkasosiska19'){
31
	t = t + ' [P.S. с 01.11.2020]'
32
}