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">© 2018 Microsoft</span></li>
<li><a id="uxp_ftr_link_legal" target="_blank" href="http://g.live.com/8seskydrive/tou">Terms</a></li>
<li><a id="uxp_ftr_link_privacy" target="_blank" href="http://go.microsoft.com/fwlink/p/?LinkId=253457">Privacy & cookies</a></li><li><a id="uxp_ftr_link_developers" target="_blank" href="http://g.live.com/8seskydrive/dev">Developers</a></li><li><a id="uxp_ftr_link_abuse" target="_blank" href="https://go.microsoft.com/fwlink/?LinkID=85433">Report abuse</a></li><li><a id="uxp_ftr_link_language" target="_self" href="?ru=https%3a%2f%2fonedrive.live.com%2fpagenotfounderror.aspx%3fresid%3dAD95F685E33D8E9B%211190%26authkey%3d%21AGONZcZruQXBQhE%26ithint%3dfile%252ctxt">English (United States)</a></li></ul>
</td>
</tr>
</table>
</div></div><script type="text/javascript">
<!-- Omitted lots of scripts -->
</body>
</html>
system
Closed
October 22, 2018, 11:55pm
3
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.