npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

omegle.js

v1.1.0

Published

Create omegle bots using node.js

Downloads

2

Readme

omegle.js

Create omegle bots using node.js

GitHub GitHub package.json version (subfolder of monorepo) npm Github Github

NOTE

Please dont use this to abuse omegle. There is too much scam bots in omegle already, we dont need another one

Installation

Must have node v14.0.0 or later

npm install omegle.js
# Or
yarn add omegle.js

Example

import OmegleClient from 'omegle.js'
// or const OmegleClient = require('omegle.js')

const client = new OmegleClient()

client.on('connected', () => {
  console.log('Connected')
})

client.on('message', (message) => {
  client.sendMessage(`[BOT] ${message}`)
})

client.connect({
  topics: ['friend', 'gaming']
})

Docs

OmegleClient

options

  • debug (boolean) - Will print out the events if set to true Default: false

  • server (string) - Sets the server api the client will be using Default: https://front10.omegle.com

properties

  • connected - Connection state will set to true if connected Returns: boolean

  • messages - The messages of the current session Returns: Array<string>

  • typing - If the client is currently typing Returns: boolean

methods

  • connect(options) - Connect the client Options:

    • lang (string) Default: en

    • topics (Array<String>) Default: []

  • disconnect() - Disconnect the client

  • sendMessage(message: string) - Send a message

  • startTyping() - Send a typing indicator

  • stopTyping() - Stop a typing indicator

  • on(event: string, callback: function) - Listen to a event

events

  • connected - Fires when the client is connected

    • Params: (commonLikes?: Array<string>)
  • disconnected - Fires when the client is disconnected

  • message - Fires when the stranger send a message

    • Params: (message: string)
  • typing - Fires when the stranger is typing

  • stoppedTyping - Fires when the stranger stopped typing

Contributing

Feel free to make the library better by forking and making a pull request :>

LICENSE

MIT