i’m working on my discord bot.
i started running the bot from glitch, it works great other than i can’t view logs older than about an hour.
today i got the bot to log to a file on the project container.
i’m wondering how i could send that log file to a dropbox account via a dropbox file request url and then delete it from the container and start a new log file.
something like :
log the console logs
check file size of log.txt
if file is a certain size send file to url and delete file contents
any ideas or code snippets that could help me figure this one out, would be greatly appreciated!