Skip to content

A sleepless guard powered by open-source image classification API

License

Notifications You must be signed in to change notification settings

ilia-khaustov/NSFWGuard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NSFWGuard

About

NSFWGuard is a project that wraps NSFW API into a Telegram bot known as NSFWGuard. Using this repository one can easily launch a similar bot with whatever modifications needed for a specific purpose.

Requirements

  1. Docker with docker-compose have to be installed and available in your system.
  2. Build open_nsfw image: docker build -t open_nsfw https://raw.githubusercontent.com/rahiel/open_nsfw--/master/Dockerfile

Setup for Development

  1. Make sure you have your Telegram bot token obtained from the BotFather.
  2. Create .env file in a project root:
TLGRM_TOKEN=paste-your-bot-token-here
NSFW_API_ADDR=http://nsfwapi:8080
NSFW_API_PREC=0.95
  1. Run docker-compose up in a project root.
  2. Wait a bit until process stops producing logs...

Bot service should be up and running by now; any changes in ./NSFWGuard dir will trigger restart of the service. Also, new dependencies will be installed if found by go get ./... cmd.

About

A sleepless guard powered by open-source image classification API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published