lenppqq / ace-attorney-bot

Library that turns comment chains into ace attorney scenes, used in several bots

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ace Attorney Court renderer 👨🏼‍⚖️

Code that allows you to convert chains of comments into ace attorney scenes. It's meant to be used by bots or other apps. List of users:

This is a fork of a wonderful Reddit bot

Getting Started

Prerequisites

  • Python 3
  • Ace Attorney data. Download it here and put them in ./assets/
  • FFMPEG instalation. In most Linux distros it should be available in the default package manager, although it may have some caveats (more info on faq.md). In Windows systems it'd include downloading a pre-compiled zip folder, extracting it and adding the /bin folder into the system path

Optional

  • Google Translation API Credentials: These are needed for language support other than English. Other languages may work even without this credentials as the system will fallback to TextBlob's translation system.

Installing

Clone the repository

git clone https://github.com/LuisMayo/ace-attorney-bot

Install dependencies (in case any problems are encountered please check faq.md)

python -m pip install -r requirements.txt

Install OpenCV if you are on Windows (if you're on Linux and you don't have a working installation check faq.md) pip install opencv-python

In case you want language support outside English install polyglot and its dependencies: (if on windows check faq.md)

pip install pyICU pycld2 morfessor polyglot
python -m polyglot download TASK:sentiment2

Check the exmaple python example.py

Contributing

Since this is a tiny project we don't have strict rules about contributions. Just open a Pull Request to fix any of the project issues or any improvement you have percieved on your own. Any contributions which improve or fix the project will be accepted as long as they don't deviate too much from the project objectives. If you have doubts about whether the PR would be accepted or not you can open an issue before coding to ask for my opinion

About

Library that turns comment chains into ace attorney scenes, used in several bots

License:MIT License


Languages

Language:Python 89.4%Language:Jupyter Notebook 9.3%Language:Dockerfile 1.3%