Create omegle bots using node.js
Please dont use this to abuse omegle. There is too much scam bots in omegle already, we dont need another one
Must have node v14.0.0 or later
npm install omegle.js
# Or
yarn add omegle.js
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']
})
-
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
-
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
-
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
-
connected
- Fires when the client is connected- Params:
(commonLikes?: Array<string>)
- Params:
-
disconnected
- Fires when the client is disconnected -
message
- Fires when the stranger send a message- Params:
(message: string)
- Params:
-
typing
- Fires when the stranger is typing -
stoppedTyping
- Fires when the stranger stopped typing
Feel free to make the library better by forking and making a pull request :>