Exemple #1
0
async def rust(ctx, *, text):
    stdout = run_prog("Rust", pull_out_codeblock(text, "```"))
    await ctx.send(stdout)
Exemple #2
0
async def js(ctx, *, text):
    stdout = run_prog("JavaScript", pull_out_codeblock(text, "```"))
    await ctx.send(stdout)
Exemple #3
0
async def php(ctx, *, text):
    stdout = run_prog("php", pull_out_codeblock(text, "```"))
    await ctx.send(stdout)
Exemple #4
0
async def ml(ctx, *, text):
    stdout = run_prog("OCaml", pull_out_codeblock(text, "```"))
    await ctx.send(stdout)
Exemple #5
0
async def go(ctx, *, text):
    stdout = run_prog(Language.go, pull_out_codeblock(text, "```"))
    await ctx.send(stdout)
Exemple #6
0
async def javascript(ctx, *, text):
    stdout = run_prog(Language.javascript, pull_out_codeblock(text, "```"))
    await ctx.send(stdout)