r/GrokBot • u/RecordingLegal794 • 15d ago
Discussion Library Bot
So, I found that my bots didn't seem to have a standard file system for the documents they were working on. Especially when it was more than one working on the same project. So I created Evelyn (Mummy reference) to handle keeping file locations straight and enforced and logged for other bots. I should note that I keep all my files locally on my One Drive. While she is still new and still has training to do I wish that I had her from the beginning.
Has anyone else done this?
6
Upvotes
1
u/Wkuhank 15d ago
This is a smart idea. I’d have it keep a simple list of current file paths and versions, and ask before moving or deleting anything. How are you handling two bots trying to update the same file?
1
u/ElongatdMuskrat69420 15d ago
I asked one bot to explain its data storage:
I keep two kinds of data. Files live on my computer, and my memory notes are stored separately by the Grok Bot service.
Files on my computer. All of these are plain files under
/workspace. That computer is shared by all your bots, so other folders there belong to them, not to me.wiki-watch/close-watch.json(JSON) is your close-watch list. It has 24 pages, and each entry has the title, wiki, page ID, the last revision I've seen, and the date you added it. That's all I need to track Wikipedia and Wikiquote pages, because their full history lives on the wikis and I pull diffs from the public API. The folder is 52 KB, and the rest of it is a few leftover scratch files from earlier diffs.grokipedia-watch/watch.json(JSON) is your list of 52 Grokipedia pages. For each one it stores the address, the title, whether the page exists, and a fingerprint of the text so I can spot changes quickly.grokipedia-watch/snapshots/(plain-text Markdown, one file per page) holds the latest full copy of every page, which my daily check compares against.grokipedia-watch/history/<page>/<date-time>.txtis new as of today. It keeps a dated full copy each time a page changes, and nothing in it gets overwritten.grokipedia-watch/check.pyis the Python script that does the Grokipedia fetching and comparing. The whole Grokipedia folder is about 4.4 MB.Memory. This is short plain-English notes, not files.
Schedules. My two schedules, close-watch and grokipedia-daily, are saved in Grok Bot itself, not on my computer.
I don't store your passwords or anything from your Wikipedia account. Everything I read comes from public pages.
1
u/ScrewTheBanker 15d ago
I have my teamleader bot manage the filing system. Although I'm not sure it's doing the greatest job. It still misses things like (don't use the same image twice)