2019-11-04 06:19:31 +01:00
|
|
|
# foxbot
|
|
|
|
|
|
|
|
Telegram bot for easily collecting furry images from multiple sites.
|
|
|
|
|
|
|
|
Written as the successor of [furryimgbot](https://git.huefox.com/syfaro/telegram-furryimgbot).
|
|
|
|
|
|
|
|
It currently supports a number of sites:
|
|
|
|
|
|
|
|
* FurAffinity (including source finding via [fa.huefox.com](https://fa.huefox.com))
|
|
|
|
* Mastodon
|
|
|
|
* Weasyl
|
2019-11-09 03:11:33 +01:00
|
|
|
* Twitter
|
|
|
|
* e621 (finds original link from direct image links)
|
2019-11-04 06:19:31 +01:00
|
|
|
* direct links
|
|
|
|
|
2020-01-05 09:36:48 +01:00
|
|
|
It also supports trying to reverse image search images sent directly using [fa.huefox.com](https://fa.huefox.com).
|
|
|
|
|
2019-11-04 06:19:31 +01:00
|
|
|
## Configuration
|
|
|
|
|
2019-11-09 03:11:33 +01:00
|
|
|
Env Name | Description
|
|
|
|
-----------------------|------------
|
|
|
|
`FA_A` | FurAffinity cookie 'a' from authenticated user
|
|
|
|
`FA_B` | FurAffinity cookie 'b' from authenticated user
|
|
|
|
`FAUTIL_APITOKEN` | API Token for [fa.huefox.com](https://fa.huefox.com/) to resolve FurAffinity direct links
|
|
|
|
`WEASYL_APITOKEN` | API Token for [weasyl.com](https://www.weasyl.com)
|
|
|
|
`TELEGRAM_APITOKEN` | API Token for Telegram, from Botfather
|
|
|
|
`TWITTER_CONSUMER_KEY` | Twitter app consumer key
|
|
|
|
`TWITTER_CONSUMER_KEY` | Twitter app consumer secret
|
|
|
|
`TWITTER_DATABASE` | Path to database file to store Twitter credentials
|
2020-01-02 11:05:19 +01:00
|
|
|
`USE_WEBHOOKS` | If should configure and use webhooks instead of polling
|
|
|
|
`WEBHOOK_ENDPOINT` | If using webhooks, endpoint to set with Telegram
|
|
|
|
`HTTP_HOST` | If using webhooks, host to listen for updates on
|
|
|
|
`HTTP_SECRET` | If using webhooks, secret endpoint to use for Telegram updates
|
2020-01-05 09:36:48 +01:00
|
|
|
`INFLUX_HOST` | InfluxDB host, including scheme
|
|
|
|
`INFLUX_DB` | InfluxDB database name
|
|
|
|
`INFLUX_USER` | InfluxDB username
|
|
|
|
`INFLUX_PASS` | InfluxDB password
|
2020-01-05 09:47:35 +01:00
|
|
|
`USE_PROXY` | If should use images.weserv.nl to proxy images
|
2020-01-09 01:04:32 +01:00
|
|
|
`SENTRY_DSN` | Sentry DSN to report errors
|