just displays my dms and not replies

master
Pedro Sá Couto 6 years ago
parent 64ebd4094b
commit dce9ff02dd

@ -36,13 +36,18 @@ with open('token.txt', 'r') as token:
for status in my_statuses:
if status['visibility'] == 'direct': # filter only direct msgs
pprint(status)
# pprint(status['mentions'])
# print(status['content'])
# print(status['id'])
# print(status['created_at'])
#
# text_file.write("Avatar:" + "\n" + str(bot) + "\n" + "\n")
# text_file.write("Content:" + "\n" + str(content) + "\n" + "\n" + "\n")
#text_file.write("Impossible to print image"+"\n"+"\n")
avatar = (status['account']['avatar'])
name = (status['account']['display_name'])
bot = (status['account']['bot'])
content = (status['content'])
pprint("Avatar:" + "\n" + str(avatar) + "\n" + "\n")
pprint("Name:" + "\n" + str(name) + "\n" + "\n")
pprint("Bot:" + "\n" + str(bot) + "\n" + "\n")
pprint("Content:" + "\n" + str(content) + "\n" + "\n")
text_file.write("Avatar:" + "\n" + str(avatar) + "\n" + "\n")
text_file.write("Name:" + "\n" + str(name) + "\n" + "\n")
text_file.write("Bot:" + "\n" + str(bot) + "\n" + "\n")
text_file.write("Content:" + "\n" + str(content) + "\n" + "\n" + "\n")

Loading…
Cancel
Save