Giter Site home page Giter Site logo

alegnani / scripty Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 58 KB

A work-in-progress Discord bot to execute code directly from a code block

Shell 3.07% Rust 90.21% Dockerfile 4.59% C 0.27% C++ 0.50% Go 0.34% Java 0.52% JavaScript 0.15% Julia 0.10% Python 0.10% TypeScript 0.15%

scripty's Introduction

Rust

Scripty

Scripty is a completely work-in-progress Discord bot which allows execution of code directly in your favourite servers. It uses Docker to sandbox the unknown code snippets and can easily be customized to support new languages. By running the bot's command with a Markdown code block it allows other users to more easily follow the code and the produced output.

E.g:

~run ```python
list = [i**2 for i in range(1, 11)]
print(list)
```

Usage

Being only in a very early stage scripty only supports the following commands:

  • ~run <CODE_BLOCK> : Run the code in the CODE_BLOCK
  • ~langs : List the supported languages
  • ~help : Get help

Invite Scripty into your server

Invite Scipty!
First of all thank you for using Scripty. :)
Please note that Scripty might not be always online as it is still being developed and is not yet hosted.

Supported languages

  • C
  • C++
  • Python
  • Rust
  • Julia
  • Typescript
  • Javascript
  • Java
  • Go

scripty's People

Contributors

alegnani avatar

Stargazers

Axel Montini avatar  avatar

Watchers

 avatar

scripty's Issues

Define bot commands

Define bot commands so a robust parsing mechanism with structop can be created

Add short snipped functionality

For non-scripting languages like Java it is necessary to explicitly create an entry-point like so:

class Main {
    public static void main(String[] args) {
        // ...
    }
}

This should be avoided with a different command that allows every language (if possible) to be executed like a scripting language.

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.