W
W
WhatTheCucumber2020-11-11 21:26:48
Python
WhatTheCucumber, 2020-11-11 21:26:48

How to make the bot put reactions on a new message in a certain chat?

How to make the bot put reactions on all new messages? Like you publish the news in a certain channel and the bot puts reactions so that other people can rate it.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Nevzorov, 2020-11-12
@WhatTheCucumber

on_message
Message.add_reaction

@bot.event()
async def on_message(msg):
    if msg.channel.id == 328522178325265233:
        await msg.add_reaction("\N{SMILING FACE WITH OPEN MOUTH}")

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question