micah5 / ace-attorney-reddit-bot

👨🏼‍⚖️ reddit bot that turns comment chains into ace attorney scenes
Do What The F*ck You Want To Public License
772 stars 54 forks source link

Generalize it outside of reddit #10

Open israelg99 opened 3 years ago

israelg99 commented 3 years ago

Being able to take a text/csv format and generate the animation. This is useful to integrate it with many other sites, or even make custom ones.

Ths can be done potentially by using:

characters, comments = load_from_file("file.txt/csv")
characters = anim.get_characters(characters)
anim.comments_to_scene(
    comments, characters, output_filename=output_filename
)
LuisMayo commented 3 years ago

I'm actually trying to use this as a kind-of library to do exactly that. I'm approaching it using Git Submodules.

I was trying to just import anim and then calling the appropriate functions (the ones you described).

As I see it, using it in a general way it's currently possible. It'd be cool to see this possibility improved though

SoftwareGuy commented 3 years ago

Second this. :+1:

Having it in a CSV or text file would be great, so you can make application that takes... say, twitter arguments, renders them to a CSV/Text file, then it plays the scene. Remember those huge crazy debates on twitter? Well, we could expect 1 hour long court cases!

LuisMayo commented 3 years ago

@SoftwareGuy Actually, I'm making it for Twitter! Using Deno's Typescript. I haven't open-sourced it yet because it isn't working yet but I have some work in progress

micah5 commented 3 years ago

I've added a mini notebook with some documentation. Won't go all the way towards making it accessible but might help a bit.

In particular, in the first section (#Basic) I added some basic mock classes for if you want a to migrate it to another platform without doing major changes in the codebase. It's a very hacky approach though 🙈

LuisMayo commented 3 years ago

Sorry for the shameless self-plug here but I have kind of made it easier to use on https://github.com/LuisMayo/objection_engine

(if micha5 thinks this is spam fell free to delete it)

micah5 commented 3 years ago

Sorry for the shameless self-plug here but I have kind of made it easier to use on https://github.com/LuisMayo/objection_engine

(if micha5 thinks this is spam fell free to delete it)

All good, looks great!