Is it possible to “pause” a message from being sent to check it?
up vote
-1
down vote
favorite
What I mean by this is, I want to make a moderation bot, but something that'd be cool is to pause a messaging being sent while the bot checks it, and then approve it to be sent. The reason I'd like to do this is so any inappropriate content cannot be seen at all, but if I didn't do this then people could see the bad content for a second or two before the bot edits or deletes it.
javascript node.js discord.js
New contributor
|
show 2 more comments
up vote
-1
down vote
favorite
What I mean by this is, I want to make a moderation bot, but something that'd be cool is to pause a messaging being sent while the bot checks it, and then approve it to be sent. The reason I'd like to do this is so any inappropriate content cannot be seen at all, but if I didn't do this then people could see the bad content for a second or two before the bot edits or deletes it.
javascript node.js discord.js
New contributor
Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
– Claies
Nov 17 at 14:53
Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
– Jacob
Nov 17 at 15:04
Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
– Claies
Nov 17 at 15:06
I was mainly wondering if the Discord bot API allows for it.
– Jacob
Nov 17 at 15:08
Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
– Claies
Nov 17 at 15:16
|
show 2 more comments
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
What I mean by this is, I want to make a moderation bot, but something that'd be cool is to pause a messaging being sent while the bot checks it, and then approve it to be sent. The reason I'd like to do this is so any inappropriate content cannot be seen at all, but if I didn't do this then people could see the bad content for a second or two before the bot edits or deletes it.
javascript node.js discord.js
New contributor
What I mean by this is, I want to make a moderation bot, but something that'd be cool is to pause a messaging being sent while the bot checks it, and then approve it to be sent. The reason I'd like to do this is so any inappropriate content cannot be seen at all, but if I didn't do this then people could see the bad content for a second or two before the bot edits or deletes it.
javascript node.js discord.js
javascript node.js discord.js
New contributor
New contributor
New contributor
asked Nov 17 at 14:37
Jacob
31
31
New contributor
New contributor
Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
– Claies
Nov 17 at 14:53
Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
– Jacob
Nov 17 at 15:04
Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
– Claies
Nov 17 at 15:06
I was mainly wondering if the Discord bot API allows for it.
– Jacob
Nov 17 at 15:08
Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
– Claies
Nov 17 at 15:16
|
show 2 more comments
Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
– Claies
Nov 17 at 14:53
Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
– Jacob
Nov 17 at 15:04
Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
– Claies
Nov 17 at 15:06
I was mainly wondering if the Discord bot API allows for it.
– Jacob
Nov 17 at 15:08
Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
– Claies
Nov 17 at 15:16
Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
– Claies
Nov 17 at 14:53
Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
– Claies
Nov 17 at 14:53
Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
– Jacob
Nov 17 at 15:04
Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
– Jacob
Nov 17 at 15:04
Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
– Claies
Nov 17 at 15:06
Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
– Claies
Nov 17 at 15:06
I was mainly wondering if the Discord bot API allows for it.
– Jacob
Nov 17 at 15:08
I was mainly wondering if the Discord bot API allows for it.
– Jacob
Nov 17 at 15:08
Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
– Claies
Nov 17 at 15:16
Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
– Claies
Nov 17 at 15:16
|
show 2 more comments
1 Answer
1
active
oldest
votes
up vote
0
down vote
accepted
If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
accepted
If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.
add a comment |
up vote
0
down vote
accepted
If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.
add a comment |
up vote
0
down vote
accepted
up vote
0
down vote
accepted
If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.
If you mean the bot interrupts the message before it's sent to other users that is impossible. Bots are unable to intercept the message before it reaches other users as the bot is considered a user when it comes to messaging receiving. It receives the message the same time the user does.
answered yesterday
ethamitc
487
487
add a comment |
add a comment |
Jacob is a new contributor. Be nice, and check out our Code of Conduct.
Jacob is a new contributor. Be nice, and check out our Code of Conduct.
Jacob is a new contributor. Be nice, and check out our Code of Conduct.
Jacob is a new contributor. Be nice, and check out our Code of Conduct.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53352232%2fis-it-possible-to-pause-a-message-from-being-sent-to-check-it%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Unfortunately, this question is too broad as written, and may draw negative feedback as a result. Aside from the fact that you really just asked a yes/no question (but probably wanted to ask how), there are too many possible ways that something like this could be done to answer in this format. It is better to show what you have attempted so far and ask about the challenges you are having with your real code. see How to Ask.
– Claies
Nov 17 at 14:53
Yeah, thanks for the response. The point is, I don't know where to even start with this and wanted to know if and how this can be done.
– Jacob
Nov 17 at 15:04
Being that this is a QA site and not a tutorial site, it's hard to offer a "this is how you start" kind of answer; as to if this can be done, the more experienced you get in programming the more you realize that the answer to that is rarely ever no.
– Claies
Nov 17 at 15:06
I was mainly wondering if the Discord bot API allows for it.
– Jacob
Nov 17 at 15:08
Yes, of course it does, there are at least 3 or 4 ways to do this. you could listen for the send event or listen for the raw stream events, as examples. discordpy.readthedocs.io/en/latest/api.html#discord.on_message.
– Claies
Nov 17 at 15:16