'extracting messages and adding them to word document

PS: keep in mind i'm still a begginner so bear with me :)

i want to create a program that takes all previously sent messages (specifically on tiktok dms) and adds them to a specific word document, but the problem is that 1) i dont know how to "connect" the messaging app to the code and 2) i basically have no idea how to do the code

so basically i'm clueless, any advice? (i have tried to use the python console to create a new word document and add some text to it but that's about it

import docx

doc = doc.Document()

doc.add_paragraph("text")

doc.save("name")

help would be appreciated i'm kinda desperate :)



Solution 1:[1]

According to the docs you need to use member.timeout()

So your code would look something like this:

member.timeout(5 * 60 * 1000)
.then(() => console.log("Timed out member"))
.catch(console.log);

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Turtlepaw