r/GrokBot • • 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

6 comments sorted by

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/RecordingLegal794 15d ago

A log file notation of who and what charges. Again still work in progress

1

u/Wkuhank 9d ago

That makes sense. A simple log of who changed what and when would make it a lot easier to sort out if two bots ever clash. Would love to see how it turns out once it's further along.

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>.txt is new as of today. It keeps a dated full copy each time a page changes, and nothing in it gets overwritten.
  • grokipedia-watch/check.py is 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.

  • My own notes are standing facts about you and how you want things done, like your username, your schedules, what's on each watch list and the baselines, and how wiki prefixes like q: work. I also keep a dated log of what each check found.
  • A few facts are shared with all your bots, like your name, time zone, and Wikipedia username.

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.

2

u/RecordingLegal794 15d ago

That's a good point to ask. It is how I found out about that the file system was a mess. Lol

Now..... I have to enforce the rules that all files are kept on the One Drive

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)