Skip to content
This repository was archived by the owner on Aug 8, 2024. It is now read-only.
This repository was archived by the owner on Aug 8, 2024. It is now read-only.

Dumb-dumb needs help^^ #3

@Acendro

Description

@Acendro

Hi there,

I was excited to test the api, but I can't get it to work properly.
So console.log(me) gives me a bunch of information on my account so I assume my SID is entered correctly
As a next step I wanted to log out all the repls I have but the command me.repls returns
ReplManager { cache: Collection(0) [Map] {} }
So this is where I'm stuck. I can't loop over the ReplManager object and me.repls[0] = undefined
Is there any way to directly connect to a specific Repl I own? like me.repls['REPL_NAME'] or something.
Or is the ReplManager not showing anything because my Repls are private?
I'm kinda just starting out with hosting some private project at replit and would really appreciate you help.

Thanks in advance =)

const Client = require('replapi-it');
const client = new Client('MY_SUPER_SECRET_SID');

client.on('ready', async () => {
  let me = await client.user
  console.log(me);
  console.log(me.repls);
})

I also tried

let my_repls = await me.repls;
console.log(my_repls);

with no success =(

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions