How can I make a discord bot have no status like not be in online, idle, invisible, do not disturb just no status some bots have that and I'm curious how its done my bots also in discord.js
I keep trying multiple times but it doesn't work I also can't find any way in the guides to do this.
These bots run through the application webhook and do not connect through the main Discord gateway. You must therefore respond to slash commands or other interactions exclusively through the application webhook - note that this excludes the events from being sent to the gateway. If your bot responds to events such as messages, reactions, or members joining, you have to set your status to offline.
See the following tutorial from the Discord API docs: https://github.com/discord/discord-api-docs/blob/main/docs/tutorials/Hosting_on_Cloudflare_Workers.md
Related
Is this possible with the discord.js API to enable my custom bot to filter all direct messages and reject some from members that doesn't have a specific role even if they are in my friend list or in the same guilds ?
If I understand correctly you want the bot to block certain users from sending you DMs?
If so, then it's not possible.
Bots do not have access to your DMs with other people, nor are they able to emit an event when someone DMs you.
The discord API does not provide such functionality and it will probably never do.
Is it possible to make a bot to automatically message people in my friends list or everyone from a specific server where i'm not an administrator? Where would i start, i know some Python but never worked with Discord bots, i was thinking this shouldn't be too hard as a first one?
I know i've received various messages / adveritsements from people on discord that i wouldn't think are admin on any server i'm on. Unless its done manually?
If you are wanting to write your own Discord bot in python, have a look at discord.py, follow the tutorial which will show you how to write simple commands and automated responses.
Is it possible to make a bot to automatically message people in my friends list or everyone from a specific server where i'm not an administrator?
You must have the required permissions to add the bot to the discord server. A role with 'regular' permissions will typically not allow you to do this. Additionally you can only have discord bots bound to a server, so a 'personal' bot that follows you around different servers is not really feasible.
I think what you're talking about is a self bot, which is against the Discord TOS and will likely get your account banned. If you want to get a bot on a Discord Server you'll have to ask an administrator.
I am using a Webhook to integrate Discord with GitHub for sending messages when a repository has been pushed to. However, I want the webhook to automatically ping a certain role (I have an #Updates role in the server) whenever this happens.
Is there are way to ping a role or even add text to a Discord GitHub Webhook? If not, is there a bot or other service that pings a certain role whenever a message is sent in a certain channel?
Any help is appreciated. Thanks in advance!
So my code activates a listener which will then just simply return the message to the user. However, once the listener is activated, it will be GLOBALLY activated, so all servers with this bot will be affected. How can i create one instance of the bot per server.
The only way to run multiple instances of a bot would be to copy the bot's code and use it in several other bots. You'd need to create several bot applications/users from the developers page and generate tokens for each bot.
It's a bit sketchy and not recommended so I'd be careful with what you're trying to achieve here.
I've been playing with the REST API for writing kik bots and it seems very straightforward to do powerful things.
The kik bot I'm familiar with is RAGE, and that has a feature that when talking to it you send it 'friend' command and it responds by being your friend, which makes it able to be invited into a group you're in.
My question is, what API call is being made by the bot when it receives a 'friend' command. My test bot can't be invited to a group and I'd like it to be able to.
Feels like I'm missing a bunch of logic but not sure what - anyone assist?
Rage bot does not use official kik api Rage bot is not a bot account from kik, It's an user account. Hence It's a self bot. There is an open source python library that allows you to turn an user account into a Bot and Rage bot uses that exact same api you can find the github page here