#Yes yes but I want many activities

1 messages · Page 1 of 1 (latest)

dense zealot
#

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

high cobalt
#

Or, you can just add more activities to the activities array

dense zealot
#

not the code you been trying

high cobalt
gray bolt
#
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' });
};```
dense zealot
#

i set it every hour because discord are idiots

#

dont put code into a string input

#

like the name of activities

gray bolt
#

@high cobalt wdym

#

I have it like so

#

But kilter why can’t I do it this way

high cobalt
#

activities is an array... why don't you use it like an array

dense zealot
#

Because you put code into a string option

dense zealot
#

You cant just put a settimeout thing in the name property of your presence

#

is it documented anywhere what you attempt to do?

high cobalt
marsh pineBOT
dense zealot
#

How often does it switch tho if you give an array

#

just interesting

high cobalt
#

It doesn't switch, it just has those activities
Afaik

dense zealot
#

hmm off to test that

#

xd

#

just shows the first item in the array

high cobalt
dense zealot
#
client.user.setPresence({ activities: [{ name: ['paint dry', "eating paint", "scratching cattos"], type: ActivityType.Watching }], status: 'active' })```
high cobalt
#

Ok no

#

.setPresence({ activities: [{ name, ...options }, { name, ...options }])

gray bolt
gray bolt
#

Afaik

dense zealot
#

only shows paint dr

#

y

gray bolt
high cobalt
#

What if you change the activity type ._.

dense zealot
#

fuck

#

i was setting it in the cron again

#

ffs

high cobalt
#

._.

dense zealot
#

client.user.setPresence({ activities: [{ name: 'paint dry', type: ActivityType.Watching }, { name: 'paint dry2', type: ActivityType.Listening }], status: 'active' })

#

no change

gray bolt
#

So it doesn’t change

#

It’s broken

dense zealot
#

yea lets conclude that

#

after testing it once

#

idek why you want multiple presences

#

or activities

gray bolt
#

It’s always been like this

#

Until 14 came along

#

Stupid ass 14

high cobalt
gray bolt
#

He did

dense zealot
#

No i didnt change the first

#

myth is right

gray bolt
#

hm

#

sus

#

pigeon

dense zealot
#

yup it just takes the first activity for me

#

idk if/when itd change

#

nothing added

high cobalt
#

So the name changed?

dense zealot
#

yes

#

eggs bake instead of paint dry

#

smells better oo

#

too

gray bolt
#

.@Mod broken stuff lol

dense zealot
#

lol

gray bolt
#

reverts back to v13

#

Prolly am gonna do that right now

#

Lol

dense zealot
#

eh not worth the hassle if you already switched

#

i switched this morning

gray bolt
#

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

dense zealot
#

can you show what it looks like in v13

#

like what the bot does

gray bolt
#

ye

dense zealot
#

when youre dont

#

done

#

jesus

#

really need sleep goddamn

gray bolt
#

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);

};```