Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open

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

wants to merge 4 commits into from

Conversation

Zemchar
Copy link

@Zemchar Zemchar commented Jul 10, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Look into /ems
2 participants