Discord.js bot update activity

I wanted to create an updating status with all kind of activity on my BOT. This is the code of what I have done so far:

const activities = [
        {
            type : "PLAYING",
            activity : "with the ball"
        },
        {
            type : "WATCHING",
            activity : "your soul"
        }
    ];

    for (var i = 0; i < activities.length; i++) {
        setInterval(() => client.user.setActivity(`${activities[i].activity}`, { type: `${activities[i].type}` }));
    };

When I try to start the BOT, the terminal shows

TypeError: Cannot read property ‘activity’ of undefined

Probably the code is totally wrong, but I’m not very good at javascript. Any suggestions?

198 thoughts on “Discord.js bot update activity”

  1. Good day very cool blog!! Guy .. Excellent .. Amazing ..
    I’ll bookmark your web site and take the feeds also?

    I’m happy to seek out numerous useful info here in the put up,
    we need develop more strategies in this regard, thank you for sharing.
    . . . . .

    Reply
  2. Nice post. I learn something new and challenging on sites I stumbleupon on a
    daily basis. It will always be exciting to read content from
    other writers and practice something from other sites.

    Reply
  3. Thanks for your personal marvelous posting! I seriously enjoyed reading
    it, you are a great author.I will be sure to bookmark your blog
    and will often come back in the foreseeable future. I want
    to encourage you to continue your great work, have a nice morning!

    Reply
  4. Hi there! I could have sworn I’ve been to this blog
    before but after checking through some of the post I realized it’s new to me.
    Anyhow, I’m definitely delighted I found it and I’ll be bookmarking and
    checking back often!

    Reply
  5. Excellent goods from you, man. I’ve understand your stuff previous to
    and you are just too magnificent. I really like what you have
    acquired here, really like what you are stating and the way in which you say
    it. You make it enjoyable and you still take care of to keep it wise.
    I can’t wait to read far more from you. This is really
    a tremendous website. quest bars http://tinyurl.com/49u8p8w7 quest bars

    Reply
  6. Its really a great and helpful piece of info. I am glad that you shared this useful information with us. Please keep us up to date like this. Thanks for sharing.

    Reply
  7. Hello.This post was really interesting, especially because I was investigating for thoughts on this matter last Saturday.

    Reply
  8. Pretty nice post. I just stumbled upon your weblog and wished to say that I have truly enjoyed browsing your blog posts. After all Ill be subscribing to your rss feed and I hope you write again soon!

    Reply
  9. Hi there! Someone in my Myspace group shared this website
    with us so I came to look it over. I’m definitely loving the information. I’m
    bookmarking and will be tweeting this to my followers!
    Excellent blog and outstanding design.

    Reply
  10. Pingback: cvs cialis cost
  11. Appreciating the commitment you put into your website and detailed information you provide.
    It’s good to come across a blog every once in a while that isn’t the same
    unwanted rehashed information. Excellent read! I’ve saved your
    site and I’m including your RSS feeds to my Google account.

    Reply
  12. Pingback: cialis dose
  13. Hey would you mind letting me know which hosting company you’re
    working with? I’ve loaded your blog in 3 different browsers and I must say
    this blog loads a lot faster then most. Can you suggest a good internet hosting provider at a fair price?

    Kudos, I appreciate it!

    Reply
  14. Wow that was strange. I just wrote an extremely long comment but after I clicked submit my comment didn’t show
    up. Grrrr… well I’m not writing all that over again. Regardless,
    just wanted to say fantastic blog!

    Reply
  15. Pingback: cialis 20 mg
  16. Pingback: viagra dosages
  17. Remarkable sooner aspect a casual weeks ago. I had to come up with another chemist online after a inexorable chemist that thinks to be the greatest (and Australia’s cheapest chemist, which is not reliable) refused to escape when medication in their deal out did not prevail upon somewhere, fair-minded blaming it on online pharmacies. My in the beginning encounter with this chemist was so much better. A heartbreak they don’t possess medic stores because I don’t necessitate to service to the other pharmaceutics again, but I can bribe most items online aside from meds. I provision seek from them at some rank if there is a feeling to talk to lone of their doctors and if credible undertake meds online too.

    Reply
  18. Pingback: augmentin milk
  19. Pingback: cephalexin cap
  20. Pingback: zithromax dosage
  21. Pingback: order zithromax
  22. Pingback: erythromycin b
  23. Humble and low-grade ivermectin tablets for sale in the direction of ordering your friend lenses online. My lenses were fortunately in stock and shipped immediately. Spoke to a awfully perceptive housekeeper on the phone who was pleased to answer my questions and a first place time user. Useful content. Thank you.

    Reply
  24. Our encounter with ivermectin has been fabulous. During examination duration and through their eye-opening in-services and medication move and wet-nurse audits, Winyah assists us in a opportune ceremony and with a personal touch. They are without exception just a phone whoop away. I would enthusiastically second Winyah for any and all of your pharmacy needs. Thank you. Lots of information!

    Reply
  25. It was 16 years ago on Rodeo weekend, when I went to the beer stock on the Sunday. This guy had a screaming kitten in a bag. I stuck my workman in the case and this toy deadly kitten grabbed my arm with all her might. I took her core to detect she was too issue to eat. I had to reserve to feeding her canned bleed with an attention dropper until the albuterolinh.com opened the next day. I was there primitive in the morning at break point to procure kitten replacement drain, dutch courage and nipples. My budget had to dutch courage feed her during the day while I was at work. Drug is under an old maiden and my hubby is however her “mom”. Thanks. Excellent information.

    Reply