Giter Club home page Giter Club logo

arx-7's Introduction

ARX-7

A dumb IRC bot that wishes it had a Lambda Drive.

Commands

  1. Choose Command: When a user types .c <list> as a message, ARX-7 will try to randomly select an entry in <list>. The following formats are recognized:
  • 1-100: When given a range in this format, a random number within the given range is chosen and returned.
  • 0-1.0: When given a decimal range in a similar format, a random number to the highest level of decimal points passed in as part of the range will be returned. For instance, .c 0-1.0 could return 0.8, while 1.000-3.37 could return 2.862.
  • a list, of different, phrases: When commas are present, ARX-7 will treat them as delimiters
  • a list of words: When there are no commas present, ARX-7 will use spaces as delimiters
  1. Order Command: When a user types .o <list> as a message, ARX-7 will try to order the contents of <list>. The following formats are recognized:
  • 1-100: When given a range in this format, up to twenty random numbers are chosen and returned.
  • a list, of different, phrases: When commas are present, ARX-7 will treat them as delimiters
  • a list of words: When there are no commas present, ARX-7 will use spaces as delimiters
  1. YouTube Command: When a user types .yt <search string> as a message, ARX-7 will search YouTube and return the first video it finds with the corresponding <search string>.
  2. YouTube Link Recognition: When a YouTube link is in a message, ARX-7 will automatically grab some information such as movie title and total views to display in a message.
  3. Tweet Link Recognition: When a Twitter link is in a message, ARX-7 will automatically grab some information such as tweet contents, username, and display name to display in a message.
  4. Imgur Link Recognition: When a Imgur link is in a message, ARX-7 will automatically grab some information such as title and total views to display in a message.
  5. Replies: Although only one is needed, a few silly phrases are present for debug reasons:
  • Ping: ARX-7 will respond with pong
  • bot respond: ARX-7 will respond with I'm a pretty stupid bot.
  • bot be nice: ARX-7 will respond with sorry :(
  • gj bot: ARX-7 will respond with thx
  • thx bot: ARX-7 will respond with np
  1. Time When the user types .time <timezone> as a message, ARX-7 will automatically respond with the current time in the specified zone.

Setup

Production Environment

$ npm install
$ npm run build
$ npm run arx7

Dev Environment

$ npm install
$ npm start

Docker instructions further down.

Configuration

You'll need to create a config file. Use the .config.json sample file, configuring as you wish. When you're finished, rename it to config.json.

Using Docker

Create the config.json file, then build and run the image:

docker build -ti arx-7 .
docker run --rm -ti arx-7

Discussion

We hang in #arx-7 on Rizon

arx-7's People

Contributors

ianmitchell avatar greenkeeperio-bot avatar kunaldes avatar kyhz avatar lae avatar

Watchers

James Cloos avatar  avatar

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.