Code Monkey home page Code Monkey logo

sitbot's Introduction

sitbot

   __________.
  /_/-----/_/|   __
  ( ( ' ' ( (| /'--'\
  (_( ' ' (_(|/.    .\
  / /=====/ /|  '||'
 /_//____/_/ |   ||
(o|:.....|o) |   ||
|_|:_____|_|/'  _||_
 '        '    /____\

good bot

Running

Launch sitbot to listen on localhost:12345:

go get github.com/chzchzchz/sitbot/cmd/sitbot
go get github.com/chzchzchz/sitbot/cmd/sitbox
sitbot localhost:12345 &

Bots

Profiles

A bot profile has connection information and regular expression pattern matching rules to control script activation. One sitbot process can manage multiple profiles connectiong to multiple servers. Post a JSON-encoded profile to the sitbot server to launch a new bot; see profile.json for an example.

Management

Connect to an IRC network by posting a bot profile to sitbot:

curl localhost:12345 -XPOST [email protected]

Reposting a bot profile will update the bot's pattern matching rules.

Configure a control panel page:

curl localhost:12345/tmpl -XPOST [email protected]

Any connected bots will be viewable via the generated HTML at http://localhost:12345/.

Disconnect a bot by deleting its profile identifier:

curl localhost:12345/bot/mainbot -XDELETE

Bouncer

sitbot can listen on ports and relay IRC messages between the bot and another IRC client. By connecting through the bouncer, a client sees the bot's IRC session and can issue IRC commands through bot user.

Create a bouncer:

curl localhost:12345/bouncer/mainbot -XPOST -d localhost:7777
irssi -c localhost -p 7777

Tired of not getting Helped?

The irc.ltd chat network generously hosts the official sitbot project support channel on chat.irc.ltd:6697/#sitbot.

sitbot's People

Contributors

chzchzchz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sitbot's Issues

pachinko bumper physics

user robbed of possibly two points because of sticky bumpers:

00:04 <+corn> │xx x.xxxxx xx.xxxx.xxx .x.xxxxxx. xxx.x x  ..xxxxx  xx x.x x│
00:05 <+corn> │    .        .    .    . .      .    .     ..           .   │
00:05 <+corn> │(_)   (_)   (.)   (_)   (.)   (_)   (.)   (.)   (_)   (_)   │
00:05 <+corn> ╰────────────────────────────────────────────────────────────╯
00:05 <+corn>                    YOU SCORED: 4 POINTS!!!                   
00:05 <+aa>    NICE

!seen user

Need to define a regexp graph to express parallel rules like {regexp-seen} | {regexp-cmd1, regexp-cmd2}.

premium ascii subcriber functionality

premium ascii subscribers get PM'd important ascii updates

17:21 < chzz> .testpattern2
...
17:25 < chzz> walks the hues
17:25 < chzz> too UNRELIABLE
17:26 <@coolbee> gotta be universal
17:27 < chzz> premium members can have the hi-def asciis pm'd to them
17:27 < chzz> or a png of the irssi client sent to their email
17:29 <@coolbee> oohh how can i sign uip
17:36 < chzz> lol hm
17:37 < chzz> ya i havent thought about that
17:37 <@sprink> sup

needs privmsg fanout

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.