Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Calling a list troubles
Post: RE: Calling a list troubles

That was what I had played with as well, similar idea. Still studying deeper into JSON syntax to see where I could be going wrong. TypeError: list indices must be integers or slices, not str I think...
giveen Homework 7 3,962 Jan-11-2019, 08:05 PM
    Thread: Calling a list troubles
Post: RE: Calling a list troubles

The code feeds back into a discord command. I know this works, as my previous version of the bot works fine, but the json file was a mess and needed to be completely rewritten. async def calc(ctx, qu...
giveen Homework 7 3,962 Jan-11-2019, 07:44 PM
    Thread: Calling a list troubles
Post: RE: Calling a list troubles

(Jan-11-2019, 07:21 PM)micseydel Wrote: What does your config look like?I posted a snippet above, but here is the full thing. https://pastebin.com/pKsuKzXZ
giveen Homework 7 3,962 Jan-11-2019, 07:26 PM
    Thread: Calling a list troubles
Post: Calling a list troubles

I'm struggling to get this list from a json file to call correctly, and I was hoping for help. I'm still really new to learning python. I always end up with "TypeError: list indices must be integers o...
giveen Homework 7 3,962 Jan-11-2019, 07:09 PM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020