Normalize all line endings
This commit is contained in:
+6
-6
@@ -1,7 +1,7 @@
|
||||
run.bat
|
||||
run.sh
|
||||
audio/*.dca
|
||||
audio/*_*.txt
|
||||
static/img/*.jpg
|
||||
gidbig
|
||||
run.bat
|
||||
run.sh
|
||||
audio/*.dca
|
||||
audio/*_*.txt
|
||||
static/img/*.jpg
|
||||
gidbig
|
||||
config.yaml
|
||||
@@ -1,25 +1,25 @@
|
||||
# Gidbig
|
||||
|
||||
Gidbig is a Discord Bot in Go based on
|
||||
[Airhorn Bot by Hammer and Chisel](https://github.com/hammerandchisel/airhornbot/).
|
||||
Visit [https://airhorn.solutions/](https://airhorn.solutions/).
|
||||
|
||||
## Features
|
||||
- Plays Ping Pong with you, if you type "ping" or "pong" in any channel he has access to.
|
||||
- Airhorn-Feature to play sound files in the voice channel you are currently in.
|
||||
Since there is not yet any command to request a list of available sound files, just take a look in `audio/`.
|
||||
They are named after the scheme `command_soundname.dca` and would result in a channel command like `!command soundname` like in `!airhorn default`.
|
||||
Typing only the `!command` without an argument results in a random sound of this command's collection.
|
||||
- Comfortable web interface to trigger sounds
|
||||
- Automatically detect all `.dca` files in `audio/`
|
||||
- Optional sound descriptions via `.txt` files in `audio/` with the same name as the soundfile
|
||||
|
||||
## Installation
|
||||
Coming soon.
|
||||
## To do
|
||||
- more web interface enhancements
|
||||
|
||||
## Known issues
|
||||
- `https://discordapp.com/api/oauth2` needs to be added to `brokenAuthHeaderProviders` in `golang.org/x/oauth2/internal/token.go` in order for oauth2 to work again.
|
||||
|
||||
Please use the issue tracker. Thank you!
|
||||
|
||||
Gidbig is a Discord Bot in Go based on
|
||||
[Airhorn Bot by Hammer and Chisel](https://github.com/hammerandchisel/airhornbot/).
|
||||
Visit [https://airhorn.solutions/](https://airhorn.solutions/).
|
||||
|
||||
## Features
|
||||
- Plays Ping Pong with you, if you type "ping" or "pong" in any channel he has access to.
|
||||
- Airhorn-Feature to play sound files in the voice channel you are currently in.
|
||||
Since there is not yet any command to request a list of available sound files, just take a look in `audio/`.
|
||||
They are named after the scheme `command_soundname.dca` and would result in a channel command like `!command soundname` like in `!airhorn default`.
|
||||
Typing only the `!command` without an argument results in a random sound of this command's collection.
|
||||
- Comfortable web interface to trigger sounds
|
||||
- Automatically detect all `.dca` files in `audio/`
|
||||
- Optional sound descriptions via `.txt` files in `audio/` with the same name as the soundfile
|
||||
|
||||
## Installation
|
||||
Coming soon.
|
||||
## To do
|
||||
- more web interface enhancements
|
||||
|
||||
## Known issues
|
||||
- `https://discordapp.com/api/oauth2` needs to be added to `brokenAuthHeaderProviders` in `golang.org/x/oauth2/internal/token.go` in order for oauth2 to work again.
|
||||
|
||||
Please use the issue tracker. Thank you!
|
||||
|
||||
+3
-3
@@ -1,3 +1,3 @@
|
||||
Place .dca audio files here.
|
||||
Naming convention is as follows: command_soundname.dca
|
||||
This will result in "!command soundname".
|
||||
Place .dca audio files here.
|
||||
Naming convention is as follows: command_soundname.dca
|
||||
This will result in "!command soundname".
|
||||
|
||||
@@ -1 +1 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
<h5 id="{{ .Itemprefix }}">{{ .Itemprefix }}</h5>
|
||||
<div style="background-image: linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)), url('static/img/{{ .Itemprefix }}.jpg'); background-size: 100%;">
|
||||
<h5 id="{{ .Itemprefix }}">{{ .Itemprefix }}</h5>
|
||||
<div style="background-image: linear-gradient(rgba(255,255,255,0.8),rgba(255,255,255,0.8)), url('static/img/{{ .Itemprefix }}.jpg'); background-size: 100%;">
|
||||
|
||||
+11
-11
@@ -1,11 +1,11 @@
|
||||
{{ define "footer" }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
||||
{{ define "footer" }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- /.container -->
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
{{ end }}
|
||||
|
||||
+70
-70
@@ -1,70 +1,70 @@
|
||||
{{ define "header" }}
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
|
||||
<!-- Optional theme -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
|
||||
|
||||
<!-- Latest compiled and minified JavaScript -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||
<style>
|
||||
body {
|
||||
padding-top: 50px;
|
||||
}
|
||||
.sounditem {
|
||||
margin: 3px;
|
||||
padding: 5px;
|
||||
border: 0px solid;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
</style>
|
||||
<link href="static/css/main.css" rel="stylesheet">
|
||||
<!-- These two are what you want to use by default -->
|
||||
<link rel="apple-touch-icon" href="static/icon.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="static/icon.png">
|
||||
|
||||
<!-- This one works for anything below iOS 4.2 -->
|
||||
<link rel="apple-touch-icon-precomposed apple-touch-icon" href="static/icon.png">
|
||||
|
||||
<link rel="icon"
|
||||
type="image/png"
|
||||
href="static/icon.png">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Gidbig</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Gidbig</a>
|
||||
</div>
|
||||
<div id="navbar" class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="#">Home</a></li>
|
||||
{{ range . }}
|
||||
<li><a href="#{{ . }}">{{ . }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
<h1>Gidbig</h1>
|
||||
<p class="lead">{{ template "sessionHandler" . }}</p>
|
||||
{{ end }}
|
||||
{{ define "header" }}
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
|
||||
<!-- Latest compiled and minified CSS -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
||||
|
||||
<!-- Optional theme -->
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css" integrity="sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp" crossorigin="anonymous">
|
||||
|
||||
<!-- Latest compiled and minified JavaScript -->
|
||||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
||||
<style>
|
||||
body {
|
||||
padding-top: 50px;
|
||||
}
|
||||
.sounditem {
|
||||
margin: 3px;
|
||||
padding: 5px;
|
||||
border: 0px solid;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
</style>
|
||||
<link href="static/css/main.css" rel="stylesheet">
|
||||
<!-- These two are what you want to use by default -->
|
||||
<link rel="apple-touch-icon" href="static/icon.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="static/icon.png">
|
||||
|
||||
<!-- This one works for anything below iOS 4.2 -->
|
||||
<link rel="apple-touch-icon-precomposed apple-touch-icon" href="static/icon.png">
|
||||
|
||||
<link rel="icon"
|
||||
type="image/png"
|
||||
href="static/icon.png">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Gidbig</title>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<nav class="navbar navbar-inverse navbar-fixed-top">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="#">Gidbig</a>
|
||||
</div>
|
||||
<div id="navbar" class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a href="#">Home</a></li>
|
||||
{{ range . }}
|
||||
<li><a href="#{{ . }}">{{ . }}</a></li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<div class="container">
|
||||
<div class="container-fluid">
|
||||
<h1>Gidbig</h1>
|
||||
<p class="lead">{{ template "sessionHandler" . }}</p>
|
||||
{{ end }}
|
||||
|
||||
+3
-3
@@ -1,3 +1,3 @@
|
||||
{{ define "sessionHandler" }}
|
||||
<a href="/discordLogin">Login with Discord</a>
|
||||
{{ end }}
|
||||
{{ define "sessionHandler" }}
|
||||
<a href="/discordLogin">Login with Discord</a>
|
||||
{{ end }}
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
<div class="col-sm-3 text-center"><div class="sounditem"><div data-toggle="tooltip" data-placement="top" title="{{ .Itemtext }}">{{ .Itemcommand }} {{ .Itemsoundname }}<br/>{{ .Itemshorttext }}<br/><button class="btn btn-primary" onclick="javascript:playSound('{{ .Itemcommand }}', '{{ .Itemsoundname }}')" role="button" id="sounditem">Play!</button><br/></div></div></div>
|
||||
<div class="col-sm-3 text-center"><div class="sounditem"><div data-toggle="tooltip" data-placement="top" title="{{ .Itemtext }}">{{ .Itemcommand }} {{ .Itemsoundname }}<br/>{{ .Itemshorttext }}<br/><button class="btn btn-primary" onclick="javascript:playSound('{{ .Itemcommand }}', '{{ .Itemsoundname }}')" role="button" id="sounditem">Play!</button><br/></div></div></div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1 +1 @@
|
||||
<div class="row">
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user