Browse Source

make it work 3

master
calexil 5 years ago
parent
commit
07ea60ad74
  1. 6
      bansheecheck.sh
  2. 2
      bot.js
  3. 0
      public/endpoint

6
bansheecheck.sh

@ -9,4 +9,10 @@ do @@ -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
bot.js

@ -6,6 +6,8 @@ const app = express() @@ -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
public/endpoint

Loading…
Cancel
Save