An anime pics bot for Telegram, written on C# using .NET 7, taking data from Booru sites and Reddit.
Бот для Telegram, присылающий аниме девочек, написанный на C# с использованием .NET 7, берущий данные с Booru-сайтов и Reddit.
- Parallel requests processing
- Preventing timeout errors
- User related NSFW settings
- User related language settings (English and Russian)
- Can answer on
owoanduwu
- Go to @owopics_junior_bot and just use the bot!
If for some reason you want to run it by yourself:
- BOT_VERSION - sets up bot version
- TELEGRAM_TOKEN - bot token retrieved by BotFather
- REDDIT_APP_ID (Optional), REDDIT_SECRET (Optional), REDDIT_REFRESH_TOKEN (Optional) - data provided by Reddit API. Be aware that if you want to use reddit functions, all three fields should be present.
- PROXY (Optional) - supports 2 values:
HTTP,SOCKS5depending of the protocol you about to use. If PROXY field is filled, the ones below should be present too. - PROXY_ADDRESS - If
PROXYfield is equal toHTTPthen the address should accord to this format:https://example.org. IfPROXYequalsSOCKS5, address should accord to the next format:socks5://127.0.0.1 - PROXY_PORT - port of your proxy server
- PROXY_USERNAME, PROXY_PASSWORD (Optional) - credentials of your proxy server
- Clone code somewhere
- Install .NET 7 SDK and paste the next command into the shell, filling parameters with your own values
BOT_VERSION= TELEGRAM_TOKEN= REDDIT_APP_ID= REDDIT_SECRET= REDDIT_REFRESH_TOKEN= PROXY= PROXY_ADDRESS= PROXY_USERNAME= PROXY_PASSWORD= dotnet run owobot:
image: etozherasmus/owobot-csharp:latest
volumes:
- .Esseintials/:/app/Essentials
environment:
- BOT_VERSION=v0.1
- TELEGRAM_TOKEN=
- REDDIT_APP_ID= //Optional
- REDDIT_SECRET= //Optional
- REDDIT_REFRESH_TOKEN= //Optional
- PROXY= //Optional
- PROXY_ADDRESS= //Optional
- PROXY_USERNAME= //Optional
- PROXY_PASSWORD= //Optionaldocker run -d \
-e BOT_VERSION=v0.1 \
-e TELEGRAM_TOKEN= \
-e REDDIT_APP_ID= \
-e REDDIT_SECRET= \
-e REDDIT_REFRESH_TOKEN= \
-e PROXY= \
-e PROXY_ADDRESS= \
-e PROXY_USERNAME= \
-e PROXY_PASSWORD= \
-v "Essentials:/app/Essentials" \
etozherasmus/owobot-csharpFirst of all, I'm a C# newbie.
The whole idea of this project was to learn how to work with Telegram, Reddit client libraries aswell of how to set up EF Core in console application and use local database.
Add external, user-friendly configuration.Done.Add chats compatibility.Done. Needs additional testingPush docker image to dockerhub.Done.Add more sources (such as yande.re, konachan)Done.
P.S. The reddit API is a slow mess and using /random command will always give you pics from booru boards.
To use reddit exclusively, proceed with /random_reddit