https://github.com/disjukr/exah
simple irc bot that execute haxe snippet
https://github.com/disjukr/exah
Last synced: 2 months ago
JSON representation
simple irc bot that execute haxe snippet
- Host: GitHub
- URL: https://github.com/disjukr/exah
- Owner: disjukr
- Created: 2014-01-29T09:46:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-30T05:45:20.000Z (over 11 years ago)
- Last Synced: 2025-01-26T15:24:00.847Z (4 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
exah
===
simple irc bot that execute Haxe snippet.it doesn't consider any security issues.
please do not abuse it :)Prerequisite: Haxe (with NekoVM), node.js
How to run it
---
```sh
npm install .
node exah.js
```
modify `config.cson` to set the server, nick, etc...Run haxe code on irc
---
```irc
exah, trace("Hello, World!");
Exah.hx:3: Hello, World!
```Hacks exaH
---
print without debug info:
```irc
exah, neko.Lib.print("Haxe, World!");
Haxe, World!
```define a class:
```irc
exah, new A();}} class A { public function new() { neko.Lib.print('$A');
{ __name__ => [A], __construct__ => #function:0, prototype => { __class__ => { __name__ => [A], __construct__ => #function:0, prototype => { __class__ => { __name__ => [A], __construct__ => #function:0, prototype => { __class__ => <...>, __serialize => <...> }, __ct__ => #abstract, new => #function:0 }, __serialize => #function:0 }, __ct__ => #abstract, new => #function:0 }, __serialize => #function:0 }, __ct__ => #abstract, new => #function:0 }
```