Moblie Status Indicator For Bot

So according to someone on Github you can make your Bot appear online on Mobile Client :

    const Discord = require('discord.js')
    const Client = new Discord.Client()
    const Constants = require('discord.js/src/util/Constants.js')
    Constants.DefaultOptions.ws.properties.$browser = `Discord iOS`
    Client.on("ready", () => {
      console.log("Loading status..")
      Client.user.setActivity(`!help for commands`, { type: 3, browser: "DISCORD IOS"  });
    });

the code is working and bot came online with a phone status indicator, did a little search and found the same code from constants.js in a file named gateway.py from discord.py library : pic

I know this is a dumb question to ask but i’d appreciate if anyone can actually help me out with this.
Thanks!

72 thoughts on “Moblie Status Indicator For Bot”

  1. 192775 537718Greetings! Quick question thats completely off topic. Do you know how to make your web site mobile friendly? My web site looks weird when browsing from my apple iphone. Im trying to discover a template or plugin that may well be able to correct this concern. In the event you have any suggestions, please share. With thanks! 473033

    Reply

Leave a Comment