Gammapedia is archived. No new edits are allowed and no new accounts can be registered.

User:Abwayax/Abwayax programming language/MagratheaScript.abwayax

From Gammapedia
Revision as of 03:57, 31 October 2007 by 24.243.13.121 (talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

/**

* MagratheaScript.abwayax
* An example of what a script for the GlitchBattle IRC client would look like.
*
*/

on msg("*moo*","#glitchbattle") { %channels["#glitchbattle"]->msg("I see we have a cow among us."); };

on msg("!eval*") { eval("*chan->msg(\"Evaluation: \" + $2)"); }

on kick() { *chan->msg(*user->name + " got kicked"); };

alias identifyme { *nickserv->identify("MyPassword"); };

alias superkill { foreach(%users[*chan->name] As $name => *user) { *user->kill($1); }; };