Answer the question
In order to leave comments, you need to log in
How to write logs for discord bot in pythone?
Help who can
how to write logs in the server and not for the console !!!!!!!!
Answer the question
In order to leave comments, you need to log in
What does the log mean in the server? Select a channel where only the bot will write?
Well, then you take the ID of this channel, you get the channel object from it (how - depends on the library, you did not write which one you use). You save this object in a global variable, if necessary, write it to the log - you send a message to this channel.
Only this is rather impractical - slow, and if there are connection problems, no logs will appear.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question