Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(Followage.includes(`has been following`))
- {FF=Followage.slice(User.length+Channel.length+27).split(`:`);datum=new Date(Date.UTC(parseInt(FF[2]),parseInt(FF[1]),parseInt(FF[0]),parseInt(FF[3].slice(0,2)),parseInt(FF[3].slice(2,4)),parseInt(FF[3].slice(4))))}
- else
- {Message=`NoFollow`;FF=Time;datum=new Date(Date.UTC(parseInt(FF[0]),parseInt(FF[1]),parseInt(FF[2]),parseInt(FF[3]),parseInt(FF[4]),parseInt(FF[5])))};
- Two=``;
- Three=``;
- if(Query.length>0)
- {One=Query[0].toLowerCase();
- if(Query.length>1)
- {Two=Query[1].toLowerCase();
- if(Query.length>2)
- {There=Query[2].toLowerCase()}}};
- PH=parseInt(Settings.Points[0])*3600;
- PM=parseInt(Settings.Points[1])*60;
- PS=parseInt(Settings.Points[2]);
- PF=PH+PM+PS;
- CH=parseInt(Settings.CooldownPeriod[0])*3600;
- CM=parseInt(Settings.CooldownPeriod[1])*60;
- CS=parseInt(Settings.CooldownPeriod[2]);
- CF=CH+CM+CS;
- ShopItems=``;
- ItemPrice=``;
- BuyLimitItems=``;
- PriceF=0;
- PlusMinus=`Plus`;
- PlusMinusTotal=0;
- Message=`Error`;
- ItemName=`Null`;
- BuyAmountsList=``;
- BuyNumberCheck=0;
- BuyAmounts=``;
- UserData=Data.filter(x=>x==User.toLowerCase()+x.slice(User.length));
- ExtraPoints=0;
- for(x=0;x<UserData.length;x++)
- {DataTemp=UserData[x].split(` `);
- if(DataTemp[1]==`Plus`)
- {ExtraPoints=ExtraPoints+parseInt(DataTemp[2])}
- else
- if(DataTemp[1]==`Minus`)
- {ExtraPoints=ExtraPoints-parseInt(DataTemp[2])};
- BuyAmounts=DataTemp.splice(3,DataTemp.length)};
- datum2=new Date(Date.UTC(parseInt(Time[0]),parseInt(Time[1]),parseInt(Time[2]),parseInt(Time[3]),parseInt(Time[4]),parseInt(Time[5])));
- A=datum.getTime()/1000;
- B=datum2.getTime()/1000;
- FinalTime=B-A-CF;
- TotalAdd=Math.floor(FinalTime/PF);
- TotalReward=TotalAdd*Settings.Reward+ExtraPoints;
- for(x in Settings.Shop.Items)
- {ShopItems+=`,`+x}
- ShopList=ShopItems.toLowerCase().slice(1).split(`,`);
- ShopListU=ShopItems.slice(1).split(`,`);
- for(x=0;x<ShopListU.length;x++)
- {if(BuyAmounts.length>BuyNumberCheck)
- {Settings.Shop.Items[ShopListU[x]].ItemID=BuyAmounts[x];
- BuyNumberCheck++}
- else
- {Settings.Shop.Items[ShopListU[x]].ItemID=0}};
- if(One==`buy`)
- {if(Two!=``&&ShopList.includes(Two))
- {if(TotalReward>=Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].Price)
- {if(Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].Price>0)
- {PlusMinus=`Minus`}
- else
- if(Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].Price<=0)
- {PlusMinus=`Plus`};
- PlusMinusTotal=Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].Price;
- if(Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].BuyLimit==0||Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].BuyLimit>Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].ItemID)
- {Message=`BuySuccess`}
- else
- {Message=`TooMany`;
- PlusMinus=`Plus`;
- PlusMinusTotal=0};
- ItemName=Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].Name;
- Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].ItemID=Math.floor(parseInt(Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].ItemID)+1)}
- else
- {Message=`BuyFail`;
- ItemName=Settings.Shop.Items[ShopListU[ShopList.indexOf(Two)]].Name}}
- else
- {Message=`NoItem`;
- if(Two==``)
- {ItemName=`NoItem`}
- else
- {ItemName=Two}}};
- for(x=0;x<ShopListU.length;x++)
- {BuyAmountsList+=`%20`+Settings.Shop.Items[ShopListU[x]].ItemID};
- if(ShopList.includes(One))
- {Message=`Description`;
- ItemName=One};
- if(One==`shop`)
- {Message=`ItemList`};
- if(One==`points`)
- {Message=`Points`};
- if(One==`help`||One==``)
- {Message=`Help`};
- if(PlusMinusTotal!=0)
- {TokenFinal=Token}
- else
- {TokenFinal=Token};
- `${TokenFinal}&data=,${User}%20${PlusMinus}%20${PlusMinusTotal}${BuyAmountsList} ${Message} ${ItemName} ${TotalReward}`
Add Comment
Please, Sign In to add comment