Allow Discord Rewrite bot to respond to other botsDiscord bot and multithreadingGiphy API in Discord Bot async functionHow to make Discord bot NOT send message if no one postedDiscord - BOT sending a private messageCreate an async function for my discord bot that can be run at any timeDiscord Bot Responding to Phrase (Discord.py Rewrite)Sending Discord Messages to external applicationNameError: name 'message' is not defined. Discord bot (not rewrite)Sending messages from synchronous thread in a Python Discord botBot ignores command, no error message - Discord.py Rewrite
Why is 'additive' EQ more difficult to use than 'subtractive'?
Why do testers need root cause analysis?
Complications of displaced core material?
What is the purpose of the yellow wired panels on the IBM 360 Model 20?
Gravitational Force Between Numbers
Cisco 3750X Power Cable
Are PMR446 walkie-talkies legal in Switzerland?
How to teach an undergraduate course without having taken that course formally before?
Did Game of Thrones end the way that George RR Martin intended?
Why does Bran want to find Drogon?
Piping the output of comand columns
Are there historical examples of audiences drawn to a work that was "so bad it's good"?
How to remove new line added by readarray when using a delimiter?
Why A=2 and B=1 in the call signs for Spirit and Opportunity?
How can I get a refund from a seller who only accepts Zelle?
Goldfish unresponsive, what should I do?
"Official wife" or "Formal wife"?
Visual Block Mode edit with sequential number
Fill area of x^2+y^2>1 and x^2+y^2>4 using patterns and tikzpicture
What is the use case for non-breathable waterproof pants?
Is there an idiom that means "accepting a bad business deal out of desperation"?
Why isn't Tyrion mentioned in 'A song of Ice and Fire'?
Team has team lunch everyday, am I forced to go?
Where is Jon going?
Allow Discord Rewrite bot to respond to other bots
Discord bot and multithreadingGiphy API in Discord Bot async functionHow to make Discord bot NOT send message if no one postedDiscord - BOT sending a private messageCreate an async function for my discord bot that can be run at any timeDiscord Bot Responding to Phrase (Discord.py Rewrite)Sending Discord Messages to external applicationNameError: name 'message' is not defined. Discord bot (not rewrite)Sending messages from synchronous thread in a Python Discord botBot ignores command, no error message - Discord.py Rewrite
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a Discord bot and a webhook setup for a Discord channel to send a command every hour on the dot. However it seems that Discord Rewrite by default ignores commands sent from other bots. How do I go about disabling this?
Do I need to modify something on a per-command function or the on_message function?
Current on message
@bot.event
async def on_message(message):
await bot.process_commands(message)
Edit: Found the solution
@bot.event
async def on_message(message):
ctx = await bot.get_context(message)
await bot.invoke(ctx)
python discord discord.py-rewrite
add a comment |
I have a Discord bot and a webhook setup for a Discord channel to send a command every hour on the dot. However it seems that Discord Rewrite by default ignores commands sent from other bots. How do I go about disabling this?
Do I need to modify something on a per-command function or the on_message function?
Current on message
@bot.event
async def on_message(message):
await bot.process_commands(message)
Edit: Found the solution
@bot.event
async def on_message(message):
ctx = await bot.get_context(message)
await bot.invoke(ctx)
python discord discord.py-rewrite
2
Rather than editing you original question I would recommend posting your solution as a answer. This is a common accepted way to do this on stackoverflow. :)
– Tim
Mar 25 at 18:37
add a comment |
I have a Discord bot and a webhook setup for a Discord channel to send a command every hour on the dot. However it seems that Discord Rewrite by default ignores commands sent from other bots. How do I go about disabling this?
Do I need to modify something on a per-command function or the on_message function?
Current on message
@bot.event
async def on_message(message):
await bot.process_commands(message)
Edit: Found the solution
@bot.event
async def on_message(message):
ctx = await bot.get_context(message)
await bot.invoke(ctx)
python discord discord.py-rewrite
I have a Discord bot and a webhook setup for a Discord channel to send a command every hour on the dot. However it seems that Discord Rewrite by default ignores commands sent from other bots. How do I go about disabling this?
Do I need to modify something on a per-command function or the on_message function?
Current on message
@bot.event
async def on_message(message):
await bot.process_commands(message)
Edit: Found the solution
@bot.event
async def on_message(message):
ctx = await bot.get_context(message)
await bot.invoke(ctx)
python discord discord.py-rewrite
python discord discord.py-rewrite
edited Mar 23 at 22:16
Cynthia Valdez
asked Mar 23 at 21:46
Cynthia ValdezCynthia Valdez
112
112
2
Rather than editing you original question I would recommend posting your solution as a answer. This is a common accepted way to do this on stackoverflow. :)
– Tim
Mar 25 at 18:37
add a comment |
2
Rather than editing you original question I would recommend posting your solution as a answer. This is a common accepted way to do this on stackoverflow. :)
– Tim
Mar 25 at 18:37
2
2
Rather than editing you original question I would recommend posting your solution as a answer. This is a common accepted way to do this on stackoverflow. :)
– Tim
Mar 25 at 18:37
Rather than editing you original question I would recommend posting your solution as a answer. This is a common accepted way to do this on stackoverflow. :)
– Tim
Mar 25 at 18:37
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
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%2f55318704%2fallow-discord-rewrite-bot-to-respond-to-other-bots%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
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%2f55318704%2fallow-discord-rewrite-bot-to-respond-to-other-bots%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
2
Rather than editing you original question I would recommend posting your solution as a answer. This is a common accepted way to do this on stackoverflow. :)
– Tim
Mar 25 at 18:37