项目作者: nektro

项目描述 :
📃 Media Request System
高级语言: HTML
项目地址: git://github.com/nektro/skarn.git
创建时间: 2019-05-19T06:17:07Z
项目社区:https://github.com/nektro/skarn

开源协议:Apache License 2.0

下载


Skarn

loc
license
discord
paypal
circleci
release
goreportcard
codefactor

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

  1. $ git clone https://github.com/nektro/skarn
  2. $ cd ./skarn/
  3. $ go get -v .
  4. $ docker-compose up

Deployment

Pre-compiled binaries can be obtained from https://github.com/nektro/skarn/releases/latest.

Or you can build from source:

  1. $ ./scripts/build/all.sh

Contributing

issues
pulls

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

Contact

License

Apache 2.0