V
V
vseminelybim2021-06-04 22:12:08
API
vseminelybim, 2021-06-04 22:12:08

How to save files from a user to your computer using a discord bot?

About 100 pictures per month flies to the channel in the discord and you need to save each one. By the end of each month, a bot is launched, which must save to a certain folder all the pictures that were uploaded during this month. Reading the documentation for the api is very confusing, I'm sorry, but please help with links to something that can be used to solve the problem)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-06-05
@vseminelybim

discord.py The on_message
event for handling incoming and outgoing messages ( example ). The attachments property of the Message object to check attachments. If the dumped image is a link, then you need to regularize the text of the message.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question