htilly / zenmusic

Slack / Sonos / Spotify / Node.js - Control Sonos through #Slack
125 stars 36 forks source link

Sorry @botname, no bots allowed! Gets spammed in channel assigned to bot #41

Closed CaptainAweesome closed 6 years ago

CaptainAweesome commented 6 years ago

Not sure how this started but I changed the name of zenmusic folder back and fourth.

08-20 08:21:34:470   Setting Spotify region to EU...
08-20 08:21:34:479   SE
warn: SlackDataStore is deprecated and will be removed in the next major version. See project documentation for a migration guide.
08-20 08:21:36:001   Online!
08-20 08:21:45:560   Received: message undefined <@UBD6NKEHZ> 1534746105.000100 "list"
08-20 08:21:45:560   term list
08-20 08:21:45:843   Current queue:  {
  "returned": "20",
  "total": "20",
  "items": [
    {
      "title": "The Last Stand",
      "artist": "Sabaton",
      "album": "The Last Stand",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a4luL1R4A2u0nesFPaJX0s8%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a4luL1R4A2u0nesFPaJX0s8?sid=9&flags=8224&sn=1"
    },
    {
      "title": "To Hell and Back",
      "artist": "Sabaton",
      "album": "Heroes",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a12dbm3GD7mGrySotwE6dm5%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a12dbm3GD7mGrySotwE6dm5?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Primo Victoria",
      "artist": "Sabaton",
      "album": "Primo Victoria - Re-Armed",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0WyWD2afagATezkRzytf1n%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a0WyWD2afagATezkRzytf1n?sid=9&flags=8224&sn=1"
    },
    {
      "title": "The Lost Battalion",
      "artist": "Sabaton",
      "album": "The Last Stand",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a1oB8wmdkbT0jneWOKKyf1a%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a1oB8wmdkbT0jneWOKKyf1a?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Shiroyama",
      "artist": "Sabaton",
      "album": "The Last Stand",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a7gKZvuTXfEKKoxQ4xVz3oX%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a7gKZvuTXfEKKoxQ4xVz3oX?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Sparta",
      "artist": "Sabaton",
      "album": "The Last Stand",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a3taSzWrlMYIkSjTeIbQptk%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a3taSzWrlMYIkSjTeIbQptk?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Winged Hussars",
      "artist": "Sabaton",
      "album": "The Last Stand",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a3XmrptxAPr4ZNtf6aFAEpq%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a3XmrptxAPr4ZNtf6aFAEpq?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Ghost Division",
      "artist": "Sabaton",
      "album": "The Art of War - Re-Armed",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0OPBa3TyMXz4WlvdjkOL1Y%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a0OPBa3TyMXz4WlvdjkOL1Y?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Carolus Rex",
      "artist": "Sabaton",
      "album": "Carolus Rex (Bonus Version)",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a6imjjOJ63SnfvbYTARjyqz%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a6imjjOJ63SnfvbYTARjyqz?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Night Witches",
      "artist": "Sabaton",
      "album": "Heroes",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a4GyoRIx9au0OSRrqbArkia%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a4GyoRIx9au0OSRrqbArkia?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Nothing Else Matters",
      "artist": "Metallica",
      "album": "Metallica",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0nLiqZ6A27jJri2VCalIUs%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a0nLiqZ6A27jJri2VCalIUs?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Enter Sandman",
      "artist": "Metallica",
      "album": "Metallica",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a5sICkBXVmaCQk5aISGR3x1%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a5sICkBXVmaCQk5aISGR3x1?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Master Of Puppets",
      "artist": "Metallica",
      "album": "Master Of Puppets (Remastered)",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a2MuWTIM3b0YEAskbeeFE1i%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a2MuWTIM3b0YEAskbeeFE1i?sid=9&flags=8224&sn=1"
    },
    {
      "title": "The Unforgiven",
      "artist": "Metallica",
      "album": "Metallica",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a4aYLAF6ckQ5ooGGGM7sWAa%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a4aYLAF6ckQ5ooGGGM7sWAa?sid=9&flags=8224&sn=1"
    },
    {
      "title": "One",
      "artist": "Metallica",
      "album": "...And Justice For All",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a5IX4TbIR5mMHGE4wiWwKW0%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a5IX4TbIR5mMHGE4wiWwKW0?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Whiskey In The Jar",
      "artist": "Metallica",
      "album": "Garage Inc.",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a2R6UrJ8uWbSIiHWmvRQvN8%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a2R6UrJ8uWbSIiHWmvRQvN8?sid=9&flags=8224&sn=1"
    },
    {
      "title": "For Whom The Bell Tolls - Remastered",
      "artist": "Metallica",
      "album": "Ride The Lightning (Remastered)",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a2dXsILW8gzkosqleHAvl0v%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a2dXsILW8gzkosqleHAvl0v?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Sad But True",
      "artist": "Metallica",
      "album": "Metallica",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a1PhLYngBKbeDtdmDzCg3Pb%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a1PhLYngBKbeDtdmDzCg3Pb?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Fade To Black - Remastered",
      "artist": "Metallica",
      "album": "Ride The Lightning (Deluxe / Remastered)",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a5nekfiTN45vlxG0eNJQQye%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a5nekfiTN45vlxG0eNJQQye?sid=9&flags=8224&sn=1"
    },
    {
      "title": "Hardwired",
      "artist": "Metallica",
      "album": "Hardwired…To Self-Destruct (Deluxe)",
      "albumArtURI": "http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0QV3swr7L8MZr72lL2izV1%3fsid%3d9%26flags%3d8224%26sn%3d1",
      "uri": "x-sonos-spotify:spotify%3atrack%3a0QV3swr7L8MZr72lL2izV1?sid=9&flags=8224&sn=1"
    }
  ]
}
08-20 08:21:45:887   Got current track:  { title: 'Ghost Division',
  artist: 'Sabaton',
  album: 'The Art of War - Re-Armed',
  albumArtURI:
   '/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0OPBa3TyMXz4WlvdjkOL1Y%3fsid%3d9%26flags%3d8224%26sn%3d1',
  position: 63,
  duration: 231,
  albumArtURL:
   'http://192.168.7.161:1400/getaa?s=1&u=x-sonos-spotify%3aspotify%253atrack%253a0OPBa3TyMXz4WlvdjkOL1Y%3fsid%3d9%26flags%3d8224%26sn%3d1',
  uri:
   'x-sonos-spotify:spotify%3atrack%3a0OPBa3TyMXz4WlvdjkOL1Y?sid=9&flags=8224&sn=1',
  queuePosition: 8 }
08-20 08:21:45:906   Got current state:  playing
08-20 08:21:46:061   Received: message undefined <@UC51GA6AK> 1534746106.000100 "Total tracks in queue: 20
====================
&gt;_#0_ *Title:* The Last Stand *Artist:* Sabaton
&gt;_#1_ *Title:* To Hell and Back *Artist:* Sabaton
&gt;_#2_ *Title:* Primo Victoria *Artist:* Sabaton
&gt;_#3_ *Title:* The Lost Battalion *Artist:* Sabaton
&gt;_#4_ *Title:* Shiroyama *Artist:* Sabaton
&gt;_#5_ *Title:* Sparta *Artist:* Sabaton
&gt;_#6_ *Title:* Winged Hussars *Artist:* Sabaton
:notes: _#7_ *Title:* Ghost Division *Artist:* Sabaton
&gt;_#8_ *Title:* Carolus Rex *Artist:* Sabaton
&gt;_#9_ *Title:* Night Witches *Artist:* Sabaton
&gt;_#10_ *Title:* Nothing Else Matters *Artist:* Metallica
&gt;_#11_ *Title:* Enter Sandman *Artist:* Metallica
&gt;_#12_ *Title:* Master Of Puppets *Artist:* Metallica
&gt;_#13_ *Title:* The Unforgiven *Artist:* Metallica
&gt;_#14_ *Title:* One *Artist:* Metallica
&gt;_#15_ *Title:* Whiskey In The Jar *Artist:* Metallica
&gt;_#16_ *Title:* For Whom The Bell Tolls - Remastered *Artist:* Metallica
&gt;_#17_ *Title:* Sad But True *Artist:* Metallica
&gt;_#18_ *Title:* Fade To Black - Remastered *Artist:* Metallica
&gt;_#19_ *Title:* Hardwired *Artist:* Metallica"
08-20 08:21:46:063   term total
08-20 08:21:46:207   Received: message undefined <@UC51GA6AK> 1534746106.000200 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:46:208   term sorry
08-20 08:21:46:235   Received: message undefined <@UC51GA6AK> 1534746106.000300 "Sonos state is 'playing'"
08-20 08:21:46:237   term sonos
08-20 08:21:46:353   Received: message undefined <@UC51GA6AK> 1534746106.000400 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:46:355   term sorry
08-20 08:21:46:500   Received: message undefined <@UC51GA6AK> 1534746106.000500 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:46:503   term sorry
08-20 08:21:46:554   Received: message undefined <@UC51GA6AK> 1534746106.000600 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:46:558   term sorry
08-20 08:21:46:649   Received: message undefined <@UC51GA6AK> 1534746106.000700 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:46:653   term sorry
08-20 08:21:46:701   Received: message undefined <@UC51GA6AK> 1534746106.000800 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:46:705   term sorry
08-20 08:21:46:796   Received: message undefined <@UC51GA6AK> 1534746106.000900 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:46:799   term sorry
08-20 08:21:46:945   Received: message undefined <@UC51GA6AK> 1534746106.001000 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:46:950   term sorry
08-20 08:21:47:022   Received: message undefined <@UC51GA6AK> 1534746106.001100 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:026   term sorry
08-20 08:21:47:096   Received: message undefined <@UC51GA6AK> 1534746107.000100 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:099   term sorry
08-20 08:21:47:170   Received: message undefined <@UC51GA6AK> 1534746107.000200 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:174   term sorry
08-20 08:21:47:247   Received: message undefined <@UC51GA6AK> 1534746107.000300 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:251   term sorry
08-20 08:21:47:396   Received: message undefined <@UC51GA6AK> 1534746107.000400 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:400   term sorry
08-20 08:21:47:492   Received: message undefined <@UC51GA6AK> 1534746107.000500 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:496   term sorry
08-20 08:21:47:544   Received: message undefined <@UC51GA6AK> 1534746107.000600 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:548   term sorry
08-20 08:21:47:640   Received: message undefined <@UC51GA6AK> 1534746107.000700 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:643   term sorry
08-20 08:21:47:695   Received: message undefined <@UC51GA6AK> 1534746107.000800 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:699   term sorry
08-20 08:21:47:785   Received: message undefined <@UC51GA6AK> 1534746107.000900 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:789   term sorry
08-20 08:21:47:843   Received: message undefined <@UC51GA6AK> 1534746107.001000 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:847   term sorry
08-20 08:21:47:931   Received: message undefined <@UC51GA6AK> 1534746107.001100 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:935   term sorry
08-20 08:21:47:993   Received: message undefined <@UC51GA6AK> 1534746107.001200 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:47:996   term sorry
08-20 08:21:48:079   Received: message undefined <@UC51GA6AK> 1534746108.000100 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:082   term sorry
08-20 08:21:48:139   Received: message undefined <@UC51GA6AK> 1534746108.000200 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:143   term sorry
08-20 08:21:48:226   Received: message undefined <@UC51GA6AK> 1534746108.000300 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:230   term sorry
08-20 08:21:48:286   Received: message undefined <@UC51GA6AK> 1534746108.000400 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:289   term sorry
08-20 08:21:48:376   Received: message undefined <@UC51GA6AK> 1534746108.000500 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:380   term sorry
08-20 08:21:48:434   Received: message undefined <@UC51GA6AK> 1534746108.000600 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:438   term sorry
08-20 08:21:48:527   Received: message undefined <@UC51GA6AK> 1534746108.000700 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:530   term sorry
08-20 08:21:48:583   Received: message undefined <@UC51GA6AK> 1534746108.000800 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:587   term sorry
08-20 08:21:48:672   Received: message undefined <@UC51GA6AK> 1534746108.000900 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:676   term sorry
08-20 08:21:48:729   Received: message undefined <@UC51GA6AK> 1534746108.001000 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:733   term sorry
08-20 08:21:48:821   Received: message undefined <@UC51GA6AK> 1534746108.001100 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:825   term sorry
08-20 08:21:48:876   Received: message undefined <@UC51GA6AK> 1534746108.001200 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:880   term sorry
08-20 08:21:48:979   Received: message undefined <@UC51GA6AK> 1534746108.001300 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:48:983   term sorry
08-20 08:21:49:023   Received: message undefined <@UC51GA6AK> 1534746108.001400 "Sorry <@UC51GA6AK>, no bots allowed!"
08-20 08:21:49:027   term sorry
CaptainAweesome commented 6 years ago

Seems to be working today. Fixed itself it seems.

tonycortex commented 6 years ago

Might have another instance of index.js running - that was my problem.