2024-03-12 20:15:36 +09:00
# Capture Bot San
2024-03-12 20:39:24 +09:00
Tiny software for "capturing" everything as well as possible, via discord and markdown file on dropbox with attached images/movies.
## Prerequisites
- [poetry ](https://python-poetry.org/ ) installed
- Own discord server and bot(with permission "Read Messages/View Channels")
2024-03-12 20:53:31 +09:00
- Dropbox App with following setup
2024-03-12 20:39:24 +09:00
- Scoped App
- Permission files.content.write, files.content.read
## Setup
```shell
$ poetry install
```
## How to run
```shell
$ poetry run python -m capture_bot_san
```
For the 1st run(or when it detects lacking any tokens/configs required), it will prompt to gather required access tokens and configuration. Input all of them accordingly.
2024-03-12 20:53:31 +09:00
# Configuration
2024-03-12 20:54:21 +09:00
- tokens are stored in .env
2024-03-12 20:53:31 +09:00
- configs are stored in config.yaml
2024-03-12 20:54:21 +09:00
- `DROPBOX_TEXTFILE_FOLDER` : Location of the markdown file to tweak with this software
- `MARKDOWN_FILENAME` : Filename of the markdown file
- `DROPBOX_MEDIA_FOLDER` : Location of the images and videos to be uploaded
2024-03-12 20:39:24 +09:00