Comment by OtherAMPBot on 28/07/2019 at 09:07 UTC

4 upvotes, 1 direct replies (showing 1)

View submission: Why did I build AmputatorBot?

Beep boop. I'm an almost identical bot, a few months older than you. (Open Source too[1])

1: https://github.com/mlda065/paragraphiser_bot_aws/tree/amp

What is the difference between you and me? (Aside from your wittier name.)

What is the best way for us to coordinate to avoid double commenting[2]?

2: https://www.reddit.com/r/technology/comments/cgdj4p/delivery_apps_like_doordash_are_using_your_tips/eui2gz0?utm_source=share&utm_medium=web2x

(As far as I can tell, `praw` provides no efficient interface for detecting whether a particular user commented at a root level on a particular post. I have to loop through the full comment forest top layer, which can take a while and causes me timeout and throttling issues.)

Replies

Comment by Killed_Mufasa at 28/07/2019 at 09:44 UTC*

8 upvotes, 2 direct replies

Beep boop I'm your brotherbot!

It's funny how your bot is called u/OtherAMPBot because it has indeed been around for much longer. I wasn't aware of your bot untill a couple of days after my bots release, so that was funny. That's just bad research on my part, so sorry about that.

It is *really* hard to scrape through all top-level comments and in fact my bot also generates non-top-level comments so that makes it even more complicated. It's essentially impossible (especially when you consider the ratelimits).

So what can we do?

1. *Start new substream*: We could both release another stream searching for strings in comments like: `I'm a bot` and check if this was posted by an AMP bot. Like so:

if comment.author == r.redditor('OtherAMPBot'):
    //don't post

2. *Using a shared file*: Start using a shared file containing all submissions IDs replied to by either one of ours bots. And with every positive, check if one of our bots has replied to it. I already have such a file in my bot. This shared file method would however require a lot of coordination and I don't think that's smart and doable with security in mind.

3. *Merging our bots*: I mean, I would make sense right? The bots are essentially identical and both open-source. This is quite a move and I would want to chat some more with you before we could start any kind of merging processes.

To me, 1 and 3 makes the most sense. I would love to hear your ideas and thoughts.

Thx for reaching out!