danger-ahead / roBOT

Multi purpose discord bot. Performs moderations, quick searches. Serves facts.
https://discord.com/api/oauth2/authorize?client_id=843553315442130985&permissions=2148002880&scope=bot
MIT License
14 stars 23 forks source link

Bug in fetching definition containing single quote (') #1

Closed danger-ahead closed 3 years ago

danger-ahead commented 3 years ago

image where the actual output should be this: image

The error can be fixed by not using split()

The json where the issue can be found: https://api.dictionaryapi.dev/api/v2/entries/en_US/mountain (or any other definition text containing a single quote)

soham4abc commented 3 years ago

I can help to resolve this issue.. will you pls assign?

danger-ahead commented 3 years ago

issue resolved!

danger-ahead commented 3 years ago

not yet fixed

you can use any other dictionary api if you want. just make sure its completely open source :)