1
1
1 22020-05-26 16:26:45
Python
1 2, 2020-05-26 16:26:45

Discord.py How to send message when adding bot to server?

How to do something when adding a bot to the server, he gave out a message?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Soneiko, 2020-05-26
@Soneiko

@client.event
async def on_ready():
       print(Bot is online)#Отправляет сообщение в консоль
       channel = client.get_channel(id)# получаем айди канала
       await channel.send("message")

See everything at https://discordpy.readthedocs.io/en/latest/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question