Code Monkey home page Code Monkey logo

skarn's Introduction

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

$ 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

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

skarn's People

Contributors

nektro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

fionera

skarn's Issues

`nektro/skarn/main.go:104:2: undefined: etc.Router`

CARTMAN:~/go/src/github.com# go get -v github.com/nektro/skarn
github.com/nektro/skarn (download)
github.com/aymerick/raymond (download)
github.com/gorilla/sessions (download)
github.com/gorilla/securecookie (download)
github.com/nektro/go-util (download)
github.com/nektro/go.discord (download)
github.com/nektro/go.etc (download)
github.com/mitchellh/go-homedir (download)
github.com/nektro/go.dbstorage (download)
github.com/gorilla/mux (download)
github.com/nektro/go.oauth2 (download)
github.com/rakyll/statik (download)
github.com/nektro/skarn/statik
github.com/nektro/go-util/ascii
github.com/nektro/go.discord
github.com/valyala/fastjson/fastfloat
github.com/nektro/go-util/ansi
golang.org/x/crypto/md4
golang.org/x/crypto/ripemd160
golang.org/x/crypto/sha3
github.com/aymerick/raymond/lexer
github.com/aymerick/raymond/ast
github.com/nektro/go-util/alias
github.com/nektro/go-util/ansi/style
github.com/valyala/fastjson
github.com/deckarep/golang-set
golang.org/x/sys/cpu
github.com/mitchellh/go-homedir
github.com/gorilla/securecookie
github.com/spf13/pflag
net/textproto
vendor/golang.org/x/net/http/httpproxy
crypto/x509
github.com/mattn/go-sqlite3
github.com/nektro/go-util/arrays/stringsu
github.com/aymerick/raymond/parser
golang.org/x/crypto/blake2b
vendor/golang.org/x/net/http/httpguts
github.com/aymerick/raymond
crypto/tls
github.com/nektro/go-util/vflag
net/http/httptrace
net/http
github.com/nektro/go-util/types
github.com/nektro/go-util/util
github.com/rakyll/statik/fs
github.com/gorilla/sessions
github.com/gorilla/mux
github.com/nektro/go.oauth2/statik
github.com/nektro/go.oauth2
github.com/nektro/go.etc/htp
github.com/nektro/go.dbstorage
github.com/nektro/go.etc
github.com/nektro/skarn
# github.com/nektro/skarn
nektro/skarn/main.go:104:2: undefined: etc.Router
nektro/skarn/main.go:105:2: undefined: etc.Router
nektro/skarn/main.go:107:2: undefined: etc.Router
nektro/skarn/main.go:164:2: undefined: etc.Router
nektro/skarn/main.go:200:2: undefined: etc.Router
nektro/skarn/main.go:210:2: undefined: etc.Router
nektro/skarn/main.go:238:2: undefined: etc.Router
nektro/skarn/main.go:248:2: undefined: etc.Router
nektro/skarn/main.go:258:2: undefined: etc.Router
nektro/skarn/main.go:270:2: undefined: etc.Router
nektro/skarn/main.go:270:2: too many errors
CARTMAN:~/go/src/github.com#

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.