Normalize all line endings

This commit is contained in:
da
2021-04-23 14:12:48 +02:00
parent 622e3cdb87
commit bd1e6dd113
11 changed files with 123 additions and 123 deletions
+6 -6
View File
@@ -1,7 +1,7 @@
run.bat run.bat
run.sh run.sh
audio/*.dca audio/*.dca
audio/*_*.txt audio/*_*.txt
static/img/*.jpg static/img/*.jpg
gidbig gidbig
config.yaml config.yaml
+24 -24
View File
@@ -1,25 +1,25 @@
# Gidbig # Gidbig
Gidbig is a Discord Bot in Go based on Gidbig is a Discord Bot in Go based on
[Airhorn Bot by Hammer and Chisel](https://github.com/hammerandchisel/airhornbot/). [Airhorn Bot by Hammer and Chisel](https://github.com/hammerandchisel/airhornbot/).
Visit [https://airhorn.solutions/](https://airhorn.solutions/). Visit [https://airhorn.solutions/](https://airhorn.solutions/).
## Features ## Features
- Plays Ping Pong with you, if you type "ping" or "pong" in any channel he has access to. - 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. - 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/`. 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`. 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. Typing only the `!command` without an argument results in a random sound of this command's collection.
- Comfortable web interface to trigger sounds - Comfortable web interface to trigger sounds
- Automatically detect all `.dca` files in `audio/` - Automatically detect all `.dca` files in `audio/`
- Optional sound descriptions via `.txt` files in `audio/` with the same name as the soundfile - Optional sound descriptions via `.txt` files in `audio/` with the same name as the soundfile
## Installation ## Installation
Coming soon. Coming soon.
## To do ## To do
- more web interface enhancements - more web interface enhancements
## Known issues ## 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. - `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! Please use the issue tracker. Thank you!
+3 -3
View File
@@ -1,3 +1,3 @@
Place .dca audio files here. Place .dca audio files here.
Naming convention is as follows: command_soundname.dca Naming convention is as follows: command_soundname.dca
This will result in "!command soundname". This will result in "!command soundname".
+1 -1
View File
@@ -1 +1 @@
</div> </div>
+2 -2
View File
@@ -1,2 +1,2 @@
<h5 id="{{ .Itemprefix }}">{{ .Itemprefix }}</h5> <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%;"> <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
View File
@@ -1,11 +1,11 @@
{{ define "footer" }} {{ define "footer" }}
</div> </div>
</div> </div>
</div> </div>
<!-- /.container --> <!-- /.container -->
</body> </body>
</html> </html>
{{ end }} {{ end }}
+70 -70
View File
@@ -1,70 +1,70 @@
{{ define "header" }} {{ define "header" }}
<html> <html>
<head> <head>
<script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script> <script src="https://code.jquery.com/jquery-1.12.4.min.js" integrity="sha256-ZosEbRLbNQzLpnKIkEdrPv7lOy9C27hHQ+Xp8a4MxAQ=" crossorigin="anonymous"></script>
<!-- Latest compiled and minified CSS --> <!-- 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"> <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 --> <!-- 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"> <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 --> <!-- 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> <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<style> <style>
body { body {
padding-top: 50px; padding-top: 50px;
} }
.sounditem { .sounditem {
margin: 3px; margin: 3px;
padding: 5px; padding: 5px;
border: 0px solid; border: 0px solid;
background-color: #f2f2f2; background-color: #f2f2f2;
} }
</style> </style>
<link href="static/css/main.css" rel="stylesheet"> <link href="static/css/main.css" rel="stylesheet">
<!-- These two are what you want to use by default --> <!-- These two are what you want to use by default -->
<link rel="apple-touch-icon" href="static/icon.png"> <link rel="apple-touch-icon" href="static/icon.png">
<link rel="apple-touch-icon-precomposed" href="static/icon.png"> <link rel="apple-touch-icon-precomposed" href="static/icon.png">
<!-- This one works for anything below iOS 4.2 --> <!-- This one works for anything below iOS 4.2 -->
<link rel="apple-touch-icon-precomposed apple-touch-icon" href="static/icon.png"> <link rel="apple-touch-icon-precomposed apple-touch-icon" href="static/icon.png">
<link rel="icon" <link rel="icon"
type="image/png" type="image/png"
href="static/icon.png"> href="static/icon.png">
<meta charset="utf-8"> <meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gidbig</title> <title>Gidbig</title>
</head> </head>
<body> <body>
<nav class="navbar navbar-inverse navbar-fixed-top"> <nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <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="sr-only">Toggle navigation</span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="#">Gidbig</a> <a class="navbar-brand" href="#">Gidbig</a>
</div> </div>
<div id="navbar" class="collapse navbar-collapse"> <div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
<li><a href="#">Home</a></li> <li><a href="#">Home</a></li>
{{ range . }} {{ range . }}
<li><a href="#{{ . }}">{{ . }}</a></li> <li><a href="#{{ . }}">{{ . }}</a></li>
{{ end }} {{ end }}
</ul> </ul>
</div> </div>
<!--/.nav-collapse --> <!--/.nav-collapse -->
</div> </div>
</nav> </nav>
<div class="container"> <div class="container">
<div class="container-fluid"> <div class="container-fluid">
<h1>Gidbig</h1> <h1>Gidbig</h1>
<p class="lead">{{ template "sessionHandler" . }}</p> <p class="lead">{{ template "sessionHandler" . }}</p>
{{ end }} {{ end }}
+3 -3
View File
@@ -1,3 +1,3 @@
{{ define "sessionHandler" }} {{ define "sessionHandler" }}
<a href="/discordLogin">Login with Discord</a> <a href="/discordLogin">Login with Discord</a>
{{ end }} {{ end }}
+1 -1
View File
@@ -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
View File
@@ -1 +1 @@
</div> </div>
+1 -1
View File
@@ -1 +1 @@
<div class="row"> <div class="row">