S
S
Shii Tatakamui2021-12-11 14:49:49
Python
Shii Tatakamui, 2021-12-11 14:49:49

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

1 answer(s)
V
Vindicar, 2021-12-11
@Vindicar

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 question

Ask a Question

731 491 924 answers to any question