private async Task <SlackMessage> CreateSpotifyResponse(string text) { var artistAndTrack = text.Split("-"); if (artistAndTrack.Length != 2) { return(new SlackMessage { text = "Sorry, må søke på formatet 'artist - sang' (f.eks. /spotify Michael Jackson - Thriller)" }); } var trackUrl = await _spotify.GetTrackUrl(artist : artistAndTrack[0].Trim(), track : artistAndTrack[1].Trim()); var response = new SlackMessage(); response.text = trackUrl; return(response); }