Socket
Socket
Sign inDemoInstall

replistalk

Package Overview
Dependencies
10
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    replistalk

Replitstalk (a reference to stalking Replit users on the platform)


Version published
Maintainers
1
Created

Readme

Source
ChoruProject Replitstalk
(a reference to stalking Replit users on the platform)

Example For Language

Nodejs

const replitstalk = require("replitstalk");
const details = await replitstalk("edu-choru");
const title = details.title;
const author = details.author;
const description = details.description;
const image = details.image;

console.log({
  title: `${title}`,
  author: `${author}`,
  description: `${description}`,
  image: `${image}`
});

Python

import replitstalk

async def main():
    details = await replitstalk("edu-choru")
    title = details["title"]
    author = details["author"]
    description = details["description"]
    image = details["image"]
    
    print({
      "title": f"{title}",
      "author": f"{author}",
      "description": f"{description}",
      "image": f"{image}"
    })

await main()

Php

<?php
require_once "replitstalk.php"; // assuming replitstalk.php contains the replitstalk function

$details = replitstalk("edu-choru");
$title = $details['title'];
$author = $details['author'];
$description = $details['description'];
$image = $details['image'];

echo json_encode(array(
  "title" => $title,
  "author" => $author,
  "description" => $description,
  "image" => $image
));
?>

Bot

Messanger bot in Facebook

const replitstalk = require("replitstalk");
const details = await replitstalk("edu-choru");
const title = details.title;
const author = details.author;
const description = details.description;
const image = details.image;

api.sendMessage(`title: ${title},\nauthor: ${author},\ndescription:${description},\nimage: ${image}`, event.threadID, event.messageID);

Discord bot

const Discord = require("discord.js");
const client = new Discord.Client();
const replitstalk = require("replitstalk");

client.on("ready", async () => {
  console.log(`Logged in as ${client.user.tag}`);
  const details = await replitstalk("edu-choru");
  const title = details.title;
  const author = details.author;
  const description = details.description;
  const image = details.image;

  const channel = client.channels.cache.get("INSERT_CHANNEL_ID_HERE");
  channel.send(`title: ${title},\nauthor: ${author},\ndescription:${description},\nimage: ${image}`);
});

client.login("INSERT_DISCORD_BOT_TOKEN_HERE");

express

const express = require('express');
const app = express();
const replitstalk = require("replitstalk");
app.get('/replitcheck', async (req, res, next) => {
  try {
    const username = req.query.search;
    if (!username) throw new Error("No username provided in query");
    const details = await replitstalk(username);
    const title = details.title;
    const author = details.author;
    const description = details.description;
    const image = details.image;
    console.log({
      title: `${title}`,
      author: `${author}`,
      description: `${description}`,
      image: `${image}`
    });

    return res.status(200).json({
      owner: 'Choru Tiktokers',
      title: `${title}`,
      author: `${author}`,
      description: `${description}`,
      image: `${image}`
    });
  } catch (err) {
    return res.status(400).json({ error: err.message });
  }
});

app.listen(3000, () => {
  console.log('Server listening on port 3000');
});

Keywords

FAQs

Last updated on 03 Mar 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc