Difference between revisions of "Smib"

From SoMakeIt
Jump to: navigation, search
(Remove some non-space specific commands. Update text slightly.)
Line 1: Line 1:
smib is the So Make It IRC bot. He runs from [[Toad]] and is powered by [https://github.com/RJ/irccat irccat]. He hangs around on #SoMakeIt and #SoutHACKton on irc.freenode.net and keeps us up to date. You can send him commands by typing these in chat:
+
smib is one of the So Make It IRC bots. He runs from [[Toad]] - i.e. inside the space - and is powered by [https://github.com/RJ/irccat irccat]. He hangs around on #SoMakeIt and #SoutHACKton on irc.freenode.net and keeps us up to date. You can send him commands by typing these in chat:
  
 
= Useful Commands =
 
= Useful Commands =
Line 6: Line 6:
 
* '''?temp''' - Will show the current temperature in the space.
 
* '''?temp''' - Will show the current temperature in the space.
 
* '''?webcam''' - Will show you a live photo from the space.
 
* '''?webcam''' - Will show you a live photo from the space.
* '''?wiki''' - Takes a wiki page name as an argument to link people to the wiki.
 
* '''?cointoss''' - Virtual coin toss.
 
 
 
  
 
= Technical commands =
 
= Technical commands =
Line 15: Line 11:
 
* '''?debug''' - Useful for understanding how smib works - just explains the order of the arguments.
 
* '''?debug''' - Useful for understanding how smib works - just explains the order of the arguments.
 
  <tt>echo "$1, User: [$1] Channel: [$2] Sender: [$3] Args: [$4]"</tt>
 
  <tt>echo "$1, User: [$1] Channel: [$2] Sender: [$3] Args: [$4]"</tt>
* '''?echo''' - Just repeats your arguments.
 
  
 
= Contributing commands =
 
= Contributing commands =
Line 25: Line 20:
  
 
== Abuse ==
 
== Abuse ==
Please don't abuse this power. We know how easy it is to do, but we trust you - don't make us regret it!
+
There is (virtually) no security. Please don't abuse this power. We know how easy it is to do, but we trust you - don't make us regret it!

Revision as of 21:01, 8 May 2013

smib is one of the So Make It IRC bots. He runs from Toad - i.e. inside the space - and is powered by irccat. He hangs around on #SoMakeIt and #SoutHACKton on irc.freenode.net and keeps us up to date. You can send him commands by typing these in chat:

Contents

Useful Commands

  • ?who - Will list who is in the space, if they are carrying a laptop/smartphone - you can register to this by saying '/msg smib ?who <MAC_address_of_your_device>'.
  • ?say - Make smib speak out loud in the sapce, good for grabbing people's attention, like: ?say Oie you there, get on IRC!
  • ?temp - Will show the current temperature in the space.
  • ?webcam - Will show you a live photo from the space.

Technical commands

  • ?pull - Asks smib to pull down the latest commands from the GitHub repo.
  • ?debug - Useful for understanding how smib works - just explains the order of the arguments.
echo "$1, User: [$1] Channel: [$2] Sender: [$3] Args: [$4]"

Contributing commands

Who can contribute

Any So Make It member can contribute - if you're not already a member of the So Make It GitHub Organisation then just give Benjie a shout and he'll add you. People who aren't members can also contribute via a Pull Request, but this will require approval.

How?

Simply clone the repository, write and test your script (don't forget to make it executable and give it a #!shebang), and then commit and push it up to the GitHub repo. Then issue ?pull in one of smib's channels and he'll pull down the latest. Don't forget to document your command on this wiki page!

Abuse

There is (virtually) no security. Please don't abuse this power. We know how easy it is to do, but we trust you - don't make us regret it!

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox
Donate