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;








2















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)









share|improve this question



















  • 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















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)









share|improve this question



















  • 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








2








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)









share|improve this question
















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






share|improve this question















share|improve this question













share|improve this question




share|improve this question








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












  • 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












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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript