codingteam / horta-hell

Configurable XMPP bot written in Scala based on the Akka framework.
MIT License
15 stars 8 forks source link

Add melpon/wandbox API access #342

Open ForNeVeR opened 8 years ago

ForNeVeR commented 8 years ago

See documentation: https://github.com/melpon/wandbox/blob/master/kennel2/API.rst

Command usage example:

<parohod> $run haskell main = putStrLn "you dick"
<horta hell> parohod: you dick

Also consider these features:

  1. File templates for some languages. For example, $run java 2+2 could be extracted to class Program { static void main() { System.out.println(2+2); } }.
  2. Auto loading code from paste. For example, $run url java http://hastebin.com/12345 could load the code from the url and paste it to wandbox.
Newlifer commented 8 years ago

Suggestion for udner item 2: language must go first because URL may be too long.

ForNeVeR commented 8 years ago

Could you edit the initial post? That's nice idea, I like it.

Newlifer commented 8 years ago

Nope, i can't...

ForNeVeR commented 8 years ago

Ok, I've edited it.

rexim commented 8 years ago

I approve this shit! :+1:

Newlifer commented 8 years ago

And about item (1). Which limitations would be for samples? For example, can user use boost in c++ code sample?

Newlifer commented 8 years ago

In additional, standard modules/headers?

Newlifer commented 8 years ago

I should say we have to import all basic... prelude thigs.