#Yes yes but I want many activities
1 messages · Page 1 of 1 (latest)
What do you mean
Just make a loop then
a function that chooses an activity then sets it for x amount of time
then overwrites with a new one
Or, you can just add more activities to the activities array
not the code you been trying
Bad idea, presence should not be set in a loop
module.exports = (client) => {
const { ActivityType } = require('discord.js');
let channel = client.channels.cache.get('841419649547108354')
console.log(`${client.user.tag} is online!`);
channel.send({ content:`${client.user.tag} Moderation is Online!`, files: ["./events-mod/leave.png"]})
const activities = [
'An Evolving Moderation Bot',
'Completes server tasks with ease!',
'An Advanced Backup Bot',
'Advanced Message and Link Filter!',
'Welcome and Leave System',
'Visit PolloBot.Xyz for our site!',
'Visit Dash.PolloBot.Xyz to manage your server!'
]
let i = 0;
//*setInterval(() => `${activities[i++ % activities.length]} | PO!help | Coded with ❤️ by Robbie
`, 15000);*/
client.user.setPresence({ activities: [{ name: setInterval(() => client.user.setActivity(`${activities[i++ % activities.length]} | PO!help | Coded with ❤️ by Robbie
`, ActivityType.Playing }], status: 'online' });
};```
i set it every hour because discord are idiots
dont put code into a string input
like the name of activities
activities is an array... why don't you use it like an array
Because you put code into a string option
You cant just put a settimeout thing in the name property of your presence
is it documented anywhere what you attempt to do?
arrays can hold multiple things lol, why don't you do that
ClientUser#setPresence()
Sets the full presence of the client user.
It doesn't switch, it just has those activities
Afaik
Well what did you do
client.user.setPresence({ activities: [{ name: ['paint dry', "eating paint", "scratching cattos"], type: ActivityType.Watching }], status: 'active' })```
OH how often does it change?
^^
Afaik
Idk
What if you change the activity type ._.
._.
client.user.setPresence({ activities: [{ name: 'paint dry', type: ActivityType.Watching }, { name: 'paint dry2', type: ActivityType.Listening }], status: 'active' })
no change
yea lets conclude that
after testing it once
idek why you want multiple presences
or activities
Make sure it's actually changing, make different names
He did
So the name changed?
.@Mod broken stuff lol
lol
Nah it is for me
I gotta
Verified bot = same stuffs I can’t just be changing shit
Randomly
I don’t want it to look bad

ye
no
I need sleep
I haven’t slept in 4 days

@high cobalt
Why can’t I do this anymore
const activities = [
'An Evolving Interactive, Fun Economy Bot!',
'Fun Holiday Updates!',
'Visit PolloBot.Xyz for our site!'
//'Visit Dash.PolloBot.Xyz to manage your server!'
]
let i = 0;
setInterval(() => client.user.setActivity(`${activities[i++ % activities.length]} | PO!help | Coded with ❤️ by Robbie & Fraimer
`, { type: 'PLAYING' }), 15000);
};```

