Pārlūkot izejas kodu

make it work 3

tags/Beta0.1
calexil pirms 1 gada
vecāks
revīzija
07ea60ad74
3 mainītis faili ar 8 papildinājumiem un 0 dzēšanām
  1. 6
    0
      bansheecheck.sh
  2. 2
    0
      bot.js
  3. 0
    0
      public/endpoint

+ 6
- 0
bansheecheck.sh Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu


Notiek ielāde…
Atcelt
Saglabāt