Registers meigens from captured image on Discord.
- .NET Core Runtime 3.1 or Docker with Compose 3.8+
- A application on Discord with bot access
- An IAM user on Google Cloud Platform with Cloud Vision access
- Pull an image from GitHub Packages Registry.
- Configure with environment variables or
appsettings.local.json
. - Create and run a container with the image.
- Clone this repository.
- Configure with environment variables or
appsettings.local.json
. - Build the project with
dotnet build -c Release -o bin
. - Run the built application with
docker ./bin/Cadocr.dll
.
Discord__Bot__Token="[YOUR DISCORD BOT TOKEN]"
CloudVision__Credentials__Path="[YOUR CLOUDVISION CREDENTIALS JSON PATH]"
{
"Discord": {
"Bot": {
"Token": "[YOUR DISCORD BOT TOKEN]"
}
},
"CloudVision": {
"Credentials": {
"Path": "[YOUR CLOUDVISION CREDENTIALS JSON PATH]"
}
}
}
If you are using Docker, make sure you mounted the config file to your container.
volumes:
- ./appsettings.local.json:/app/appsettings.local.json:ro