GithubHelp home page GithubHelp logo

pmonks / for-science Goto Github PK

View Code? Open in Web Editor NEW
5.0 5.0 2.0 178 KB

A small Discord bot that you can send Clojure code to, to experiment with the language, demonstrate core language principles, or just mess about.

License: Apache License 2.0

Clojure 93.96% Dockerfile 6.04%

for-science's People

Contributors

pmonks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

for-science's Issues

Support code inside fences

When a user triggers evaluation (i.e. via !clj) and they use a clojure code fence in the subsequent content, I want the bot to recognise the code fence and pull the content to be evaluated from within it, so that the code fence formatting itself does not interfere with the evaluation of the content.

Notes:

  • Un-code-fenced code should still be evaluated as it currently is today.
  • Should this support multiple independent code-fenced sections in a single message, or just the first one? If so, should those be considered independent evaluations, or a single evaluation (i.e. concatenate the content of all of the fences, prior to evaluation)? The latter may be useful if issue #7 isn't implemented, and will also allow "literate" style messages (interspersed code & explanatory text).

Character literals not printed correctly

Steps to Reproduce:

  1. In a server where for-science is running, type the following:
  2. !clj (seq "Hello, World!")

Expected Result:

Result:

(\H \e \l \l \o \, \space \W \o \r \l \d \!)

Actual Result:

Result:

(H e l l o ,   W o r l d !)

Add application ("slash") command

When I wish to execute some Clojure code, I want to be able to use an application ("slash") command to do so, so that the Discord UI provides me with guided assistance.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.