processing / p5.js-web-editor

The p5.js Editor is a website for creating p5.js sketches, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! You can create, share, or remix p5.js sketches without needing to download or configure anything.
https://editor.p5js.org
GNU Lesser General Public License v2.1
1.35k stars 1.3k forks source link

Support for Rivescript #534

Closed pfe1223 closed 6 years ago

pfe1223 commented 6 years ago

Nature of issue?

Feature enhancement details:

I work in education, and I can think of several ways to use Rivescript (specifically chatbots from Dan Shiffman's Coding Train YouTube page) in the classroom. However, the P5 web editor tells me that JS, JSON, CSS, TXT, or CSV files are allowed. Could file support be upgraded to allow for files with the .rive extension? Thanks in advance.

catarak commented 6 years ago

I don't know anything about Rivescript! How do these files get embedded in a web page? Are they compiled to Javascript? Right now there's not a system in place for compiled files, i.e. Coffeescript, SCSS/Sass, and so on.

pfe1223 commented 6 years ago

I am not sure if I can answer you question about how the files are embedded. Here is the about page for the project.

https://www.rivescript.com/about

I assume they get compiled. Are compiled files something that will be added, or is it a very low priority? Thanks for your help.

shiffman commented 6 years ago

@pfe1223 Does it work if you make a txt file and load that with the RiveScript code. The RiveScript files are just plain text so this may be a fine solution?

pfe1223 commented 6 years ago

@shiffman It works when using the .txt extension. Thanks so much for your help.