GithubHelp home page GithubHelp logo

redxanadu / smib-commands Goto Github PK

View Code? Open in Web Editor NEW

This project forked from somakeit/smib-commands

0.0 1.0 0.0 2.66 MB

Commands for our irccat instance.

Perl 22.40% Shell 17.96% Python 59.64%

smib-commands's Introduction

smib-commands

smib is the So Make It bot, implemented using smib.pl. He hangs around on #SoMakeIt and #SoutHACKton on irc.freenode.net and keeps us up to date. You can also send him commands...

Running a command

Simply prefix the command name with a ? and write it into a channel smib is in. E.g. ?debug Testing testing 123

You can see the list of commands in this repository, or have a look on smib's wiki page.

Writing a command

A command is a simple script and can be written in any language that Toad understands. Don't forget to make the script executable (e.g. chmod +x scriptname) and to add a shebang at the top (e.g. #!/usr/bin/env python). Take a look at the example debug.sh script.

The extension of your command does not affect how your command runs (we use the shebang), but it must be present and it should represent the language the script is written in - e.g. .sh for bash, .py for python, .coffee for CoffeeScript.

The command is sent 3 or 4 arguments*:

  1. Nick - the nick name of the user invoking us
  2. Channel - the channel over which the request was sent (or blank if it was a private message)
  3. Sender - the Channel if there was one, otherwise the Nick.
  4. Args - the text sent by the user after the command (if any)

Try to send as few lines as possible - preferably one but no more than 4. (Any more than this will be rate limited.)

*A full list of arguments is maintained on the smib.pl documentation.

Installing a command

If you have commit access to this repository then simply commit and push your script, then issue the ?pull command in a channel containing smib.

Who maintains smib?

Anyone with push/commit access to this repository.

smib-commands's People

Contributors

antonpiatek avatar bencevans avatar benjie avatar brackendawson avatar edbrereton avatar michd avatar redxanadu avatar themadmaker-yt avatar tvararu avatar

Watchers

 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.