Skarn

Media Request & Inventory Management System
Getting Started
These instructions will get you a copy of the project up and running on your machine.
Configuration
This guide assumes you want to configure Skarn to a Discord server and auto-add members that have a specific role.
- Go to https://discordapp.com/developers/applications/
- Create an application and save down the Client ID and Client Secret.
- Add a bot to the application and save down the Bot Token.
- Add the bot to the server you wish to auth this instance throuh.
- Below are the command line flags you may use to configure your Skarn instance.
| Name |
Type |
Default |
Description |
--port |
int |
8001 |
Port for web server to bind to. |
--members |
[]string |
none. |
List of role snowflakes that may view this instance |
--admins |
[]string |
none. |
List of role snowflakes that may manage this instance |
--theme |
[]string |
none. |
List of theme IDs |
--announce-webhook-url |
string |
none. |
Discord webhook URL for announcements |
Themes
Skarn supports custom themes through use of the --theme flag to identify a folder or list of folders to overwrite any of the handlebars template files. The location to place themes is at ~/.config/skarn/themes/{THEME_ID}/
Announcements
Using the --announce-webhook-url flag you can create an announcements channel that will display status updates to requests. See https://support.discordapp.com/hc/en-us/articles/228383668-Intro-to-Webhooks for more info on how to setup Discord Webhooks and get the URL.
Development
Prerequisites
Installing
Run
$ git clone https://github.com/nektro/skarn
$ cd ./skarn/
$ go get -v .
$ docker-compose up
Deployment
Pre-compiled binaries can be obtained from https://github.com/nektro/skarn/releases/latest.
Or you can build from source:
$ ./scripts/build/all.sh
Contributing

We take issues all the time right here on GitHub. We use labels extensively to show the progress through the fixing process. Question issues are okay but make sure to close the issue when it's been answered!
When making a pull request, please have it be associated with an issue and make a comment on the issue saying that you're working on it so everyone else knows what's going on :D
License
Apache 2.0