(im new to discord bots)
whenever i type a message the message.content is empty and im assuming its because I didnt turn on message.read, but whenever I tick the box it asks me for a redirect url & uri but it wont let me type/select anything so i hane no clue what to do.
My friend has made a bot which can read text but he never had this error.
I've tried to look this up like 10 times but noone else seems to have had this problem.
Select Redirect URL
You're looking at the wrong tab. Make sure you're in Bot in the left-hand side of the developer panel.
The discord.py docs have a pretty clear guide on how to enable intents: https://discordpy.readthedocs.io/en/stable/intents.html
You're looking for the message_content intent here. Make sure to enable it in your code as well.
Related
I want the members of my discord server to be able to react to a bot message with any emoji (using the winking smiling emoji with a plus sign). I have been looking for add reaction option in the discord.py documentation but I can't seem to find it. Please help me with this, it will be a great help.
Adding reactions isn't a permission given on a per-message basis, it is set in the channel settings as "Add reactions". It's not something you should want to change automatically with your bot, though technically you could with set_permissions in a guild channel, this will change the settings for the whole channel, and thus all the messages.
I'm currently making a teams bot and I want to generate some content based off of a user's message and this is proving to be rather difficult.
What I want to happen is when they post something to a teams chat is for my bot to respond appropriately, compiling their code for example, which is currently working correctly. However, if they've made an error in their code, then I want them to be able to edit their message and for the bot to recompile.
The code situation is merely an example, I know it's not a great idea.
Currently, bot does not receive an event when a message is edited. This is a known issue. We have an active item on it which we are working on. But we cannot give you a firm timeline on when this will be available.
I want to give users the ability to get notifications via the facebook messenger. However, I don't really know how to get the fb_messenger_user_id from a user.
I can get a personalized ID for the chat if a user starts chatting with my bot, but with this, I can't really verify which user that is. Is there something I've overseen? Something like a button similar to the "login with facebook" button?
Also, as far as I understand the docs, I am only allowed to send messages in a time frame of 24h after the last message from the user.
Can someone tell me how to use the facebook notifications properly?
As a side note: I am planning to implement botman into my existing app. I don't know how much this affects the notifications.
I have created a bot using Botkit and am working on creating an interactive message. What I want to do is when the user clicks on the button in the interactive message, a new message will be created pulling som info from the original interactive message, BUT WILL NOT BE SENT. I need to continue editing the message before choosing to send it. Does anybody know whether this is possible or not? I have been googling and searching slack's docs and botkit's docs, but haven't been able to find an answer.
If you want to let the user edit a message before sending you can use the Dialog feature from Slack. It will allow you to show an input text field, where the user can make his edits. I am not familiar with Botkit though and can not say if it supports Dialogs.
I'm making a website with Direct Line API.
http://qavppy-bot-test-123.azurewebsites.net/
But, my bot does't recognize messages, when I replay to question of .Promts.choice().
I don't know why, but bot says message of .onDefault().
It seems that bot doesn't work correctly...
When I use another ways(Slack, WebChat, etc),
bot works correctly.
Plz advices.
Capture
The issue was that the 'from' property in the request was not set.
Try setting the 'from' property and Prompt.Choice should work.