Currently, I am conceptualizing a questioning bot. With this in mind, I want to clarify that once the member's question is answered, the created channel should be closed. Prior to closing the channel, the bot is expected to share a link from hastebin.com containing the chat logs from the channel.
For illustration purposes, envision the following scenario: I open a ticket, a channel is established for private communication between me and the support team. I pose my question and receive a response. Subsequently, the channel is terminated. Before its closure, the bot generates a log and uploads it to hastebin, producing an outcome similar to the image seen in the following link:
https://i.sstatic.net/DIK1g.png
Your assistance is greatly appreciated!
edit: While I am familiar with most of the process, my main challenge lies in extracting the channel log and formatting it for hastebin.