Giter VIP home page Giter VIP logo

gobot's Introduction

GoBot

Gitter Build Status

Description

GoBot is my first stab at an IRC bot written in Go. The goal is for it to become less of a "dumb bot" and more of an semi-clever assistant.

Installation

Important: Requires Go>=1.3

    $ go get github.com/darthlukan/gobot

Or:

    $ mkdir -p $GOPATH/src/github.com/darthlukan
    $ cd $GOPATH/src/github.com/darthlukan
    $ git clone [email protected]:darthlukan/gobot.git
    $ cd gobot

Usage

Edit the config.json file located in $GOPATH/src/github.com/darthlukan/gobot to your preferences.

After those variables have been edited, you can run:

    $ go install .    # Note the '.'
    $ gobot

in-channel interaction

For now, the available commands are fairly limited, here's what's available:

  • !search or !ddg: Execute a search via DuckDuckGo
    !search Los Angeles
    !ddg New York

!bangs support has also been included, so you can get results from Google as well as many other sources:

    !search !google weather in Los Angeles
    !search !archwiki i3
    !ddg !godoc cakeday
  • !cakeday: Find the Reddit cakeday for a user
    !cakeday darthlukan
  • !VERB: Echo the VERB and add a random quip.
    !slap SomeUser really hard
    >> *$botNick slaps SomeUser really hard, FOR SCIENCE!

Logging

Gobot can now Log Channels.

Set the "LogDir" in config.json

NOTE: the Directory Must be Writable by the user executing the bot.

TODO

    1. Add commands that actually do something useful
    1. DuckDuckGo Search
    1. Logging
    1. Tests would be nice >.>

License

GPLv2, see LICENSE file.

gobot's People

Contributors

darthlukan avatar stefancristian avatar setkeh avatar bitdeli-chef avatar gitter-badger avatar

Watchers

 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.