snoonetIRC / CloudBot

CloudBot - The simple, fast, expandable, open-source Python IRC Bot!
GNU General Public License v3.0
68 stars 52 forks source link

.u (Urban Dictionary) command gives inconsistent results #579

Open scjoiner opened 5 years ago

scjoiner commented 5 years ago

The .u command seems to be ignoring parts of the parameters it gets passed.

Examples: ".u alabama thunderstorm" returns the data for ".u thunderstorm" instead.

".u kentucky vet clinic" returns the data for ".u vet" instead.

n7st commented 5 years ago

Hi,

This appears to be an issue on the UrbanDictionary v0 API end (https://api.urbandictionary.com/v0/define?term=kentucky-vet-clinic, https://api.urbandictionary.com/v0/define?term=kentucky%20vet%20clinic). The CloudBot module itself is sending the full query.

'http://api.urbandictionary.com/v0/define'
{'term': 'kentucky vet clinic'}