Adding a custom !song command using Snip, Winamp and OneDrive

I am currently trying to add a custom command to allow people to see what song is currently playing on Twitch. I am using Winamp and Snip which allows me to generate a .txt file that shows the song playing in plain text. I am using OneDrive to generate a webpage that will allow me to use the Fetch command to retrieve the text.

The issue I’m having is when I add the command, I receive a response back saying “responses must be 400 characters or less”

This is the command I’m adding.

!song

$(urlfetch https://1drv.ms/t/s!ApuOPeOF9pWtiSZjjWXGa7kFwUIR)

Any assistance would be greatly appreciated

That link you posted will return a HTML webpage that is far greater than 400 characters. This is incorrect as it should return a plain-text response.

Output
<!DOCTYPE html>
<html lang="en" dir="ltr" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" class=" fh  responsive " </span> <span>New OneNote notebook</span></a></li></ul></div></div></div><div id="c_base" class="c_base">
                <div class="c_main" id="c_content">

<!-- Omitted lots of scripts -->


<div id="infoPage">
     

 <div id="infoBox" >
    <div id="infoBoxContent">
    <h1 id="infoBoxTitle" >This item might not exist or is no longer available</h1>
    <div id="infoBoxMessage" >
            

  <div id="sdx_mb">
    
    This item might have been deleted, expired, or you might not have permission to view it. Contact the owner of this item for more information.

    
    
      <div id="buttonBarRow" class="clear" >
        

<div class="buttonBar" id="buttonBar"><input id="home" class="default" name="home" type="submit" onClick="try{$BSI.navigateTo('https://onedrive.live.com/', '_top');}catch(e){window.open('https://onedrive.live.com/', '_top');}return false;"  style="" value="Go to OneDrive" />
</div>

      </div>
    
  </div>


        
    </div>
    </div><div class="c_clr"> </div>
</div>
</div>


  <div id="sdx_error">
    
    <span id="PageNotFound"></span>

  </div>



</div><div id="m_wf">
<style type="text/css">
.fadeOnHoverTarget .fadeOnHover{visibility: hidden;}.fadeOnHoverTarget:hover .fadeOnHover{visibility: visible;}.NoDisplay{display: none !important;}</style>
<table id="uxp_ftr_control" cellpadding="0" cellspacing="0" class="t_fbgc">
<tr>
  <td id="uxp_ftr_left" class="t_lnksi">
	<ul>
    
        <li><span id="uxp_ftr_link_trademark">&copy; 2018 Microsoft</span></li>
            <li><a id="uxp_ftr_link_legal" target="_blank" href="http&#58;//g.live.com/8seskydrive/tou">Terms</a></li>
            <li><a id="uxp_ftr_link_privacy" target="_blank" href="http&#58;//go.microsoft.com/fwlink/p/&#63;LinkId&#61;253457">Privacy &#38; cookies</a></li><li><a id="uxp_ftr_link_developers" target="_blank" href="http&#58;//g.live.com/8seskydrive/dev">Developers</a></li><li><a id="uxp_ftr_link_abuse" target="_blank" href="https&#58;//go.microsoft.com/fwlink/&#63;LinkID&#61;85433">Report abuse</a></li><li><a id="uxp_ftr_link_language" target="_self" href="&#63;ru&#61;https&#37;3a&#37;2f&#37;2fonedrive.live.com&#37;2fpagenotfounderror.aspx&#37;3fresid&#37;3dAD95F685E33D8E9B&#37;211190&#37;26authkey&#37;3d&#37;21AGONZcZruQXBQhE&#37;26ithint&#37;3dfile&#37;252ctxt">English &#40;United States&#41;</a></li></ul>
    </td>
</tr>
</table>
</div></div><script type="text/javascript">

<!-- Omitted lots of scripts -->

</body>
</html>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.