Explorar el Código

make it work 3

tags/Beta0.1
calexil hace 1 año
padre
commit
07ea60ad74
Se han modificado 3 ficheros con 8 adiciones y 0 borrados
  1. 6
    0
      bansheecheck.sh
  2. 2
    0
      bot.js
  3. 0
    0
      public/endpoint

+ 6
- 0
bansheecheck.sh Ver fichero

@@ -9,4 +9,10 @@ do
album=$(banshee --query-album | sed 's/album: //')
echo "Calexil is listening to $title by $artist on $album"
sleep 6
if $currentTrack == $currentTrack
then
sleep 5
else
wget $currentTrack 'https://bansheebot.herokuapp.com/endpoint'
fi
done

+ 2
- 0
bot.js Ver fichero

@@ -6,6 +6,8 @@ const app = express()
app.use(express.static('public'));
app.listen(process.env.PORT, () => console.log(`App listening on port ${process.env.PORT}!`))

wget --post-data "trackName=HelloWorld" https://bansheebot.herokuapp.com/endpoint

const responseObject = {
"test": "It worked!",
"best girl?": "Big Band.",

+ 0
- 0
public/endpoint Ver fichero


Cargando…
Cancelar
Guardar