Code Monkey home page Code Monkey logo

alan's Introduction

Alan

A chat bot for Omegle

Alan is a chat bot for Omegle, although the logic for interracting with the Omegle website could be easily replaced to work with any other online chat service.

Usage

  1. Start the server
$ node server.js
  1. Run the client

  2. Open http://www.omegle.com in Firefox

  3. Open the Scratchpad (Shift + F4)

  4. Load client.js and run it

Customizing the chat bot

The chat bot conversation logic is in chatBot.js. Edit this file to implement the conversation logic you like.

License

The MIT License (MIT) - Copyright (c) 2016 Alexandre Bintz [email protected]
See LICENSE file for full text.

alan's People

Contributors

alexbinary avatar

Watchers

 avatar

Forkers

adamaero montana

alan's Issues

Step 1: Starting the server

I have node.js and have run other programs before. In the Command Prompt, I tried starting the server:

Your environment has been set up for using Node.js 10.16.3 (x64) and npm.

C:\Users\Adam\Documents\alan>node server.js
internal/modules/cjs/loader.js:638
    throw err;
    ^

Error: Cannot find module 'simple-ngram-markov'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (C:\Users\Adam\Documents\alan\server\chatBot.js
:2:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

C:\Users\Adam\Documents\alan>

Am I doing something wrong?
I tried this too:

C:\Users\Adam\Documents\alan>npm install code-point-at
internal/modules/cjs/loader.js:657
    throw err;
    ^

Error: Cannot find module 'code-point-at'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:655:15)
    at Function.Module._load (internal/modules/cjs/loader.js:580:25)
    at Module.require (internal/modules/cjs/loader.js:711:19)
    at require (internal/modules/cjs/helpers.js:14:16)
    at Object.<anonymous> (C:\Users\Adam\AppData\Roaming\npm\node_modules\npm\no
de_modules\wide-align\node_modules\string-width\index.js:3:19)
    at Module._compile (internal/modules/cjs/loader.js:805:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10)
    at Module.load (internal/modules/cjs/loader.js:672:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:612:12)
    at Function.Module._load (internal/modules/cjs/loader.js:604:3)

Last I tried this:

C:\Users\Adam>cd Documents\alan

C:\Users\Adam\Documents\alan>npm install 
internal/modules/cjs/loader.js:657 throw err; ^

Error: Cannot find module 'code-point-at' at Function.Module._resolveFilename (internal/modules/cjs/loader.js:655:15) at Function.Module._load (internal/modules/cjs/loader.js:580:25) at Module.require (internal/modules/cjs/loader.js:711:19) at require (internal/modules/cjs/helpers.js:14:16) at Object. (C:\Users\Adam\AppData\Roaming\npm\node_modules\npm\no de_modules\wide-align\node_modules\string-width\index.js:3:19) at Module._compile (internal/modules/cjs/loader.js:805:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:816:10) at Module.load (internal/modules/cjs/loader.js:672:32) at tryModuleLoad (internal/modules/cjs/loader.js:612:12) at Function.Module._load (internal/modules/cjs/loader.js:604:3)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.