GithubHelp home page GithubHelp logo

fehbot's Introduction

FehBot - FeedHenry Chat Bot

This is a chat bot written in C# based on aerobot written by qmx.

Prerequisites

  • Mono 2.5 (ish)
  • Default configuration of MongoDB
  • ???

Usage

System Setup

  • Set the environment variables FEHBOT_IRC_SERVER, FEHBOT_USERNAME, FEHBOT_NICKNAME, FEHBOT_CHANNELS, and FEHBOT_NICKSERV_PASSWORD as appropriate. FeHBot uses sane defaults. FEHBOT_CHANNELS is a comma separated list.

Available IRC Commands

Factiods

Setting a Factoid

${FEHBOT_USERNAME}, ${factiod} is ${definition}

ex

fehbot, coding is https://media.giphy.com/media/l41m3vNpNTVHzp0di/giphy.gif  

Fetching a Factoid

?${factoid}

ex

?coding

Deleting a Factoid

${FEHBOT_USERNAME}, forget ${factoid}

ex

fehbot, forget coding

Karma

Add Karma

${recipient}++

ex

summersp++

Remove Karma

${recipient}--

ex

summersp--

Online Messages

Sending a message to be delivered when someone comes back

${FEHBOT_USERNAME} tell ${recipient} ${message}

ex

fehbot, tell summersp FehBot is awesome!

Account Linking

FehBot Can generate OTP codes to be used to verify that an IRC nick and a remote account are controlled by the same person.

Verify an Account (after a code has been created with the HTTP API)

?code ${pin}

ex

?code 8675309

HTTP APIs

Account Linking

The Account Linking API provides a way to create a link between a third party service and an IRC nick through fehbot. Basically you give fehbot an IRC nickname and an account identifier and FehBot will produce a one time code. When a user with the nickname associated with the code uses the ?code command FehBot will create a link between the nick and the account identifier.

POST /link

Request

{
    "nick":"${irc_nickname}",
    "remoteUserName":"${account_identifier}"
}

Response

{
    "code":"${linking_code}"
}

#Libraries Used

  • IrcDotNet
  • Mongo Driver

fehbot's People

Contributors

secondsun avatar edewit avatar

Watchers

James Cloos avatar Lucas Holmquist 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.