chylex / Discord-History-Tracker

Desktop app & browser script that saves Discord chat history into a file, and an offline viewer that displays the file.
https://dht.chylex.com
MIT License
475 stars 83 forks source link

Real-time tracking #163

Closed xnvmx closed 2 years ago

xnvmx commented 2 years ago

Is it possible to add real-time tracking messages continuously? I am often on servers that clean the chat several times a day and I would like to see these messages and save when I'm not on the discord...

chylex commented 2 years ago

The app will track continuously if you turn off autoscroll.

xnvmx commented 2 years ago

Ohh yes. I just found this option and wanted to close issue thread, but you answered faster :) I've been looking for something like this for months, perfect app <3

xnvmx commented 2 years ago

I do not know why, but Ctrl + Shift + I has not been working on my Discord application in Windows for some time. Do I have to do this through the browser?

chylex commented 2 years ago

They recently released an undocumented change that disables Ctrl+Shift+I in the app. You can re-enable it manually: https://www.reddit.com/r/discordapp/comments/sc61n3/cant_inspect_element_anymore/hu4fw5x/ I will add an option to the app to do it automatically.

xnvmx commented 2 years ago

That's one more question. How to continuously track not only one channel but several servers with at least 5 channels each?

chylex commented 2 years ago

The only way is to either automate the channel switching yourself, or open Discord in multiple tabs in a browser and run the tracking script in all of them.

xnvmx commented 2 years ago

That's what I do right now. I'm working with your script on many tabs in the browser, but I thought there was an easier way and less resource-consuming, because chrome with so many tabs takes a lot of RAM.

chylex commented 2 years ago

There is a lot of software that can automate things like pressing keys or clicking buttons, you could probably come up with something that either clicks through channels in sequence or uses Ctrl+K and types in full channel names (might be easier when switching across different servers). Plus it could press the Down arrow or Page Down to scroll down and catch up on any messages sent while viewing a different channel.

But DHT is not built to do this automatically, and probably won't be, considering the difficulty of maintaining all autoscroll features that often get broken, and the potential difficulty of simulating mouse/keyboard in an app that works on every major operating system.