Bunlar da benden olsun bari, index.js'nin içine ekleyip presence ayarlama kısmını
let rpc = [VALORANTRPC, LeagueOfLegendsRPC, TFTRPC]
rpc[Math.floor(Math.random()*rpc.length)](client)
let heroes = [
{name: "Caitlyn", image: "mp:attachments/1135327376121794723/1144264952849371247/403244876658900992.png"},
{name: "Kog'Maw", image: "mp:attachments/1135327376121794723/1144266938114129920/403244955763474452.png"},
{name: "Cho' Gath", image: "mp:attachments/1135327376121794723/1144266781083586670/403244882061295616.png"},
{name: "Neeko", image: "mp:attachments/1135327376121794723/1144266953561735258/654851253679161365.png"},
{name: "Aphelios", image: "mp:attachments/1135327376121794723/1144266922867826870/735207737515966484.png"},
{name: "Kayle", image: "mp:attachments/1135327376121794723/1144266907155964074/403244945902927882.png"},
{name: "Katarina", image: "mp:attachments/1135327376121794723/1144266852193800262/403244943809708032.png"},
{name: "Lux", image: "mp:attachments/1135327376121794723/1144264865528172584/403244967905984522.png"},
{name: "Yasuo", image: "mp:attachments/1135327376121794723/1144264783466598480/403245083815575552.png"},
{name: "Darius", image: "mp:attachments/1135327376121794723/1144264550238126100/403244885798420480.png"},
{name: "Garen", image: "mp:attachments/1135327376121794723/1144266835454345226/403244908502056970.png"},
{name: "Ahri", image: "mp:attachments/1135327376121794723/1144266820115759264/403244852910751744.png"},
{name: "Irelia", image: "mp:attachments/1135327376121794723/1144266769175945299/436926009435095050.png"},
{name: "Twitch", image: "mp:attachments/1135327376121794723/1144266752159645757/403245059723493376.png"},
{name: "Jax", image: "mp:attachments/1135327376121794723/1144266737924186132/403244929184169984.png"},
{name: "Kayn", image: "mp:attachments/1135327376121794723/1144266723760033882/403244947891027978.png"},
{name: "Gragas", image: "mp:attachments/1135327376121794723/1144266705619648532/403244912373530634.png"},
{name: "Sett", image: "mp:attachments/1135327376121794723/1144266689698078780/735207737180553246.png"},
{name: "Yuumi", image: "mp:attachments/1135327376121794723/1144266674145603614/654851254551314443.png"},
{name: "Warwick", image: "mp:attachments/1135327376121794723/1144266641945940008/403245077977366538.png"},
{name: "Kennen", image: "mp:attachments/1135327376121794723/1144266618659160084/403244949233205248.png"},
{name: "Diana", image: "mp:attachments/1135327376121794723/1144266601043075224/403244887337598976.png"},
{name: "Lulu", image: "mp:attachments/1135327376121794723/1144266583850631178/403244965980798986.png"},
{name: "Shaco", image: "mp:attachments/1135327376121794723/1144266548178075778/403245022641651712.png"},
{name: "Jhin", image: "mp:attachments/1135327376121794723/1144268519257690143/403244932292411412.png"},
]
let maps = [ "Sonsuz Uçurum (ARAM)", "Sihirdar Vadisi (Dereceli)", "Sihirdar Vadisi (Normal)"]
let random_hero = heroes[Math.floor(Math.random()*heroes.length)]
let random_map = maps[Math.floor(Math.random()*maps.length)]
let detail = random_map
let largeImage = random_hero.image
let largeText = random_hero.name
const Discord = require('discord.js-selfbot-v13');
const r = new Discord.RichPresence()
.setApplicationId('817229550684471297')
.setType('PLAYING')
.setName('League of Legends')
//random start timestamp
.setStartTimestamp(getRandomTimestamp())
.setAssetsLargeImage(largeImage)
.setAssetsLargeText(largeText)
.setDetails(detail)
.setState("Oyunda")
client.user.setActivity(r);
//timestamp'ı 30dk ile 40dk arası ayarla
function getRandomTimestamp() {
const now = Date.now(); // Şu anki zaman damgası
const randomOffset = Math.floor(Math.random() * 2400000 ); // 1 saatlik rastgele bir offset
return now - randomOffset; // Şu andan geriye giderek rastgele bir zaman damgası oluşturuyoruz
}
const getRandomDurationInMinutes = () => {
const difference = Date.now() - getRandomTimestamp();
return Math.floor(difference / 60000);
};
const getRandomTimestamp = () => {
const now = Date.now();
const randomOffset = Math.floor(Math.random() * 2700000); // 45 minutes in milliseconds
return now - randomOffset;
};
const getRandomElement = (array) => array[Math.floor(Math.random() * array.length)];
let maps = [
{name: "Bind", image: "mp:attachments/1135327376121794723/1146098329462251520/1000.png"},
{name: "Split", image: "mp:attachments/1135327376121794723/1146098823198945341/1000.png"},
{name: "Haven", image: "mp:attachments/1135327376121794723/1146098938366136400/1000.png"},
{name: "Ascent", image: "mp:attachments/1135327376121794723/1146099221280337951/1000.png"},
{name: "Lotus", image: "mp:attachments/1135327376121794723/1146099420530749531/1000.png"},
{name: "Fracture", image: "mp:attachments/1135327376121794723/1146099089440768000/1000.png"},
{name: "Pearl", image: "mp:attachments/1135327376121794723/1146098674024329437/1000.png"},
]
let agents = [
{name: "Astra", image: "mp:attachments/1135327376121794723/1146102868416405645/1000.png"},
{name: "Breach", image: "mp:attachments/1135327376121794723/1146102412050960494/1000.png"},
{name: "Skye", image: "mp:attachments/1135327376121794723/1146102541990498384/1000.png"},
{name: "Yoru", image: "mp:attachments/1135327376121794723/1146102706335924274/1000.png"},
{name: "Brimstone", image: "mp:attachments/1135327376121794723/1146100597012054096/1000.png"},
{name: "Viper", image: "mp:attachments/1135327376121794723/1146100778247933962/1000.png"},
{name: "Cypher", image: "mp:attachments/1135327376121794723/1146101332034470050/1000.png"},
{name: "Jett", image: "mp:attachments/1135327376121794723/1146101907836915805/1000.png"},
{name: "KAY/O", image: "mp:attachments/1135327376121794723/1146103050730225734/1000.png"},
{name: "Chamber", image: "mp:attachments/1135327376121794723/1146103244020519075/1000.png"},
{name: "Neon", image: "mp:attachments/1135327376121794723/1146103438673969223/1000.png"},
{name: "Fade", image: "mp:attachments/1135327376121794723/1146103626532667423/1000.png"},
{name: "Killjoy", image: "mp:attachments/1135327376121794723/1146101155651395685/1000.png"},
{name: "Omen", image: "mp:attachments/1135327376121794723/1146100968518320138/1000.png"},
{name: "Phoenix", image: "mp:attachments/1135327376121794723/1146101799527399424/1000.png"},
{name: "Gekko", image: "mp:attachments/1135327376121794723/1146104016879747162/1000.png"},
{name: "Sova", image: "mp:attachments/1135327376121794723/1146101464842903683/1000.png"},
{name: "Sage", image: "mp:attachments/1135327376121794723/1146101626524930162/1000.png"},
{name: "Reyna", image: "mp:attachments/1135327376121794723/1146102086958850188/1000.png"},
{name: "Raze", image: "mp:attachments/1135327376121794723/1146102263077666836/1000.png"},
{name: "Phoenix", image: "mp:attachments/1135327376121794723/1146104433688711249/1000.png"},
{name: "Deadlock", image: "mp:attachments/1135327376121794723/1146104312284594176/1000.png"},
{name: "Harbor", image: "mp:attachments/1135327376121794723/1146103856271466637/1000.png"},
]
const randomMap = getRandomElement(maps);
const randomAgent = getRandomElement(agents);
const richPresence = new Discord.RichPresence()
.setApplicationId('817229550684471297')
.setType('PLAYING')
.setName('VALORANT')
.setDetails(`${randomMap.name}`)
.setStartTimestamp(getRandomTimestamp())
.setAssetsLargeImage(randomMap.image)
.setAssetsLargeText(randomMap.name)
.setState(`${randomAgent.name} oynuyor.`)
.setAssetsSmallImage(randomAgent.image)
.setAssetsSmallText(randomAgent.name);
client.user.setActivity(richPresence);
const Discord = require('discord.js-selfbot-v13');
function getDuration() {
const difference = Date.now() - getRandomTimestamp();
return Math.floor(difference / 60000);
}
function getRandomTimestamp() {
const now = Date.now();
const randomOffset = Math.floor(Math.random() * 3600000);
return now - randomOffset;
}
let randomMode = gameMode[Math.floor(Math.random()*gameMode.length)]
const r = new Discord.RichPresence()
.setApplicationId('817229550684471297')
.setType('PLAYING')
.setName('League of Legends')
.setDetails(randomMode)
.setStartTimestamp(getRandomTimestamp())
.setState(`Oyunda`)
.setAssetsLargeImage('mp:attachments/1135327376121794723/1144266881033838662/653758171525021696.png')
client.user.setActivity(r);