TripSit / TripBot

The discord bot on TripSit.Me
22 stars 12 forks source link

Add /ems. Fixing #490 and #82 #811

Open Zemchar opened 1 month ago

Zemchar commented 1 month ago

This fixes #490 and #82. Implements /ems command, which takes in a (required) search string and returns an embed of all countries & their various emergency service numbers.

I had to compromise on data acquisition. The emergency numbers are automatically updated every 7 days, but the suicide hotline numbers are not. I could not see a way to quickly get hotline data without adding more packages, so I scraped the data from Open Counseling's list. This will have to be done manually for now, but could be fixed in a future update.

d.ems.ts is in the global scope, I figured that made the most sense.