Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Building a Discord Bot that uses the .json responses from the compendium, hitting a snag

Per the title, I am currently building a discord bot that will send a simple web request to the compendium for a given spell name, then use the json to build a response.  I was hoping I could use my own compendium access on my private server using a privately owned and controlled bot to give myself a bit of a DM tool, but I'm hitting an issue where some spells (like Ice Knife, Friends, Leomund's Tiny Hut) will not return json to my application.  The web request is getting a login demand from the app instead. But other spells (like Sleep, Fireball, Alarm) all work fine. Has anyone tried building anything like this?  Do I need to figure out how to log in from my application or something? Maybe I can set a cookie header from my browser? /stumped Thanks for any feedback you might have. V.
I'm 99.9% sure that the issue you are running into is SRD content (Sleep, Fireball, Alarm in the Basic Rules & SRD) versus paid content (Friends, Tiny Hut in the PHB; Ice Knife if the Elemental Evil Player's Companion). SRD content is free and available to all players, so it wouldn't require any kind of login/access to get the .json data. But that's as far as I can help you. :/ 
That's what I was figuring as well.  I wonder if I need to figure out a way to set some headers or populate with a cookie from my browser.  My browser obviously knows me, since I don't have to login every time I open it. I was really hoping this was something that others had encountered and knew a way to go about accessing content that I've paid to be able to access.