From b49c3784d52c38b1c53d76752077a539d8d64225 Mon Sep 17 00:00:00 2001 From: Juniper Date: Tue, 9 Jul 2024 20:28:15 -0500 Subject: [PATCH 1/3] Add /ems. Fixes #490 and #82 --- assets/data/ems_lines.json | 1 + assets/data/suicide_hotlines.json | 306 +++++++++++++++++++++++++++ src/discord/commands/global/d.ems.ts | 65 ++++++ src/global/commands/g.ems.ts | 46 ++++ 4 files changed, 418 insertions(+) create mode 100644 assets/data/ems_lines.json create mode 100644 assets/data/suicide_hotlines.json create mode 100644 src/discord/commands/global/d.ems.ts create mode 100644 src/global/commands/g.ems.ts diff --git a/assets/data/ems_lines.json b/assets/data/ems_lines.json new file mode 100644 index 000000000..87a8635ba --- /dev/null +++ b/assets/data/ems_lines.json @@ -0,0 +1 @@ +[{ "Country": { "Name": "Afghanistan", "ISOCode": "AF", "ISONumeric": "4" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Åland Islands", "ISOCode": "AX", "ISONumeric": "248" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Albania", "ISOCode": "AL", "ISONumeric": "8" }, "Ambulance": { "All": ["127"] }, "Fire": { "All": ["128"] }, "Police": { "All": ["129"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Algeria", "ISOCode": "DZ", "ISONumeric": "12" }, "Ambulance": { "All": ["21606666"] }, "Fire": { "All": ["14"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "00213983200058" }, { "Country": { "Name": "American Samoa", "ISOCode": "AS", "ISONumeric": "16" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Andorra", "ISOCode": "AD", "ISONumeric": "20" }, "Ambulance": { "All": ["118", "112"] }, "Fire": { "All": ["118", "112"] }, "Police": { "All": ["110"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Angola", "ISOCode": "AO", "ISONumeric": "24" }, "Ambulance": { "All": ["118"] }, "Fire": { "All": ["118"] }, "Police": { "All": ["110"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Anguilla", "ISOCode": "AI", "ISONumeric": "660" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "NoData": true, "Notes": "" }, { "Country": { "Name": "Antarctica", "ISOCode": "AQ", "ISONumeric": "10" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "NoData": true, "Notes": "" }, { "Country": { "Name": "Antigua and Barbuda", "ISOCode": "AG", "ISONumeric": "28" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999", "911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Argentina", "ISOCode": "AR", "ISONumeric": "32" }, "Ambulance": { "All": ["101"] }, "Fire": { "All": ["107"] }, "Police": { "All": ["101"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "135" }, { "Country": { "Name": "Armenia", "ISOCode": "AM", "ISONumeric": "51" }, "Ambulance": { "All": ["103"] }, "Fire": { "All": ["102"] }, "Police": { "All": ["101"] }, "Dispatch": { "All": ["911"] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "2538194" }, { "Country": { "Name": "Aruba", "ISOCode": "AW", "ISONumeric": "533" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Australia", "ISOCode": "AU", "ISONumeric": "36" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "Fixed": ["000"], "GSM": ["112"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "131114" }, { "Country": { "Name": "Austria", "ISOCode": "AT", "ISONumeric": "40" }, "Ambulance": { "All": ["144"] }, "Fire": { "All": ["133"] }, "Police": { "All": ["133"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Azerbaijan", "ISOCode": "AZ", "ISONumeric": "31" }, "Ambulance": { "All": ["103"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["102"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Bahamas", "ISOCode": "BS", "ISONumeric": "44" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "3222763" }, { "Country": { "Name": "Bahrain", "ISOCode": "BH", "ISONumeric": "48" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Bangladesh", "ISOCode": "BD", "ISONumeric": "50" }, "Ambulance": { "All": ["199"] }, "Fire": { "All": ["9555555"] }, "Police": { "All": ["865513"] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Barbados", "ISOCode": "BB", "ISONumeric": "52" }, "Ambulance": { "All": ["511"] }, "Fire": { "All": ["311"] }, "Police": { "All": ["211"] }, "Dispatch": { "All": [] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Belarus", "ISOCode": "BY", "ISONumeric": "112" }, "Ambulance": { "All": ["103"] }, "Fire": { "All": ["101", "112"] }, "Police": { "All": ["102"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Belgium", "ISOCode": "BE", "ISONumeric": "56" }, "Ambulance": { "All": ["103"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["102"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Belize", "ISOCode": "BZ", "ISONumeric": "84" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Benin", "ISOCode": "BJ", "ISONumeric": "204" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": "" }, { "Country": { "Name": "Bermuda", "ISOCode": "BM", "ISONumeric": "60" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Bhutan", "ISOCode": "BT", "ISONumeric": "64" }, "Ambulance": { "All": ["110"] }, "Fire": { "All": ["112"] }, "Police": { "All": ["113"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Bolivia, Plurinational State of", "ISOCode": "BO", "ISONumeric": "68" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Bonaire, Sint Eustatius and Saba", "ISOCode": "BQ", "ISONumeric": "535" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Bosnia and Herzegovina", "ISOCode": "BA", "ISONumeric": "70" }, "Ambulance": { "All": ["124"] }, "Fire": { "All": ["123"] }, "Police": { "All": ["122"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Botswana", "ISOCode": "BW", "ISONumeric": "72" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["997", " 911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Bouvet Island", "ISOCode": "BV", "ISONumeric": "74" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "NoData": true, "Notes": "Uninhabited" }, { "Country": { "Name": "Brazil", "ISOCode": "BR", "ISONumeric": "76" }, "Ambulance": { "All": ["192"] }, "Fire": { "All": ["193"] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "British Indian Ocean Territory", "ISOCode": "IO", "ISONumeric": "86" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Brunei Darussalam", "ISOCode": "BN", "ISONumeric": "96" }, "Ambulance": { "All": ["991"] }, "Fire": { "All": ["995"] }, "Police": { "All": ["993"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Bulgaria", "ISOCode": "BG", "ISONumeric": "100" }, "Ambulance": { "All": ["150"] }, "Fire": { "All": ["160"] }, "Police": { "All": ["166"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "0035924917223" }, { "Country": { "Name": "Burkina Faso", "ISOCode": "BF", "ISONumeric": "854" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Burundi", "ISOCode": "BI", "ISONumeric": "108" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Cabo Verde", "ISOCode": "CV", "ISONumeric": "132" }, "Ambulance": { "All": ["130"] }, "Fire": { "All": ["131"] }, "Police": { "All": ["132"] }, "Dispatch": { "All": [""] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Cambodia", "ISOCode": "KH", "ISONumeric": "116" }, "Ambulance": { "All": ["119"] }, "Fire": { "All": ["118"] }, "Police": { "All": ["117"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Cameroon", "ISOCode": "CM", "ISONumeric": "120" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Canada", "ISOCode": "CA", "ISONumeric": "124" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"], "GSM": ["112"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "18334564566" }, { "Country": { "Name": "Cayman Islands", "ISOCode": "KY", "ISONumeric": "136" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Central African Republic", "ISOCode": "CF", "ISONumeric": "140" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Chad", "ISOCode": "TD", "ISONumeric": "148" }, "Ambulance": { "All": [null] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Chile", "ISOCode": "CL", "ISONumeric": "152" }, "Ambulance": { "All": ["131"] }, "Fire": { "All": ["132"] }, "Police": { "All": ["133"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "China", "ISOCode": "CN", "ISONumeric": "156" }, "Ambulance": { "All": ["120"] }, "Fire": { "All": ["119"] }, "Police": { "All": ["110"] }, "Traffic": { "All": ["122"] }, "Dispatch": { "All": [""] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "8008101117" }, { "Country": { "Name": "Christmas Island", "ISOCode": "CX", "ISONumeric": "162" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "NoData": true, "Notes": "" }, { "Country": { "Name": "Cocos (Keeling) Islands", "ISOCode": "CC", "ISONumeric": "166" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Colombia", "ISOCode": "CO", "ISONumeric": "170" }, "Ambulance": { "All": ["125"] }, "Fire": { "All": ["119"] }, "Police": { "All": ["112"] }, "Dispatch": { "All": ["123"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Comoros", "ISOCode": "KM", "ISONumeric": "174" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Congo", "ISOCode": "CG", "ISONumeric": "178" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Congo, the Democratic Republic of the", "ISOCode": "CD", "ISONumeric": "180" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Cook Islands", "ISOCode": "CK", "ISONumeric": "184" }, "Ambulance": { "All": ["998"] }, "Fire": { "All": ["996"] }, "Police": { "All": ["999"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Costa Rica", "ISOCode": "CR", "ISONumeric": "188" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "5062535439" }, { "Country": { "Name": "Côte d'Ivoire", "ISOCode": "CI", "ISONumeric": "384" }, "Ambulance": { "All": [null] }, "Fire": { "All": ["180"] }, "Police": { "All": ["110", "111", "170"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Croatia", "ISOCode": "HR", "ISONumeric": "191" }, "Ambulance": { "All": ["194"] }, "Fire": { "All": ["193"] }, "Police": { "All": ["192"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Cuba", "ISOCode": "CU", "ISONumeric": "192" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["26811"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Curaçao", "ISOCode": "CW", "ISONumeric": "531" }, "Ambulance": { "All": ["112"] }, "Fire": { "All": ["114"] }, "Police": { "All": ["444444"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Cyprus", "ISOCode": "CY", "ISONumeric": "196" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["199"] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "80007773" }, { "Country": { "Name": "Czech Republic", "ISOCode": "CZ", "ISONumeric": "203" }, "Ambulance": { "All": ["155"] }, "Fire": { "All": ["150"] }, "Police": { "All": ["158"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Denmark", "ISOCode": "DK", "ISONumeric": "208" }, "Ambulance": { "All": [""] }, "Fire": { "All": [""] }, "Police": { "All": ["114"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "4570201201" }, { "Country": { "Name": "Djibouti", "ISOCode": "DJ", "ISONumeric": "262" }, "Ambulance": { "All": ["351351"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Dominica", "ISOCode": "DM", "ISONumeric": "212" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Dominican Republic", "ISOCode": "DO", "ISONumeric": "214" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "8095623500" }, { "Country": { "Name": "Ecuador", "ISOCode": "EC", "ISONumeric": "218" }, "Ambulance": { "All": ["131"] }, "Fire": { "All": [null] }, "Police": { "All": ["101"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Egypt", "ISOCode": "EG", "ISONumeric": "818" }, "Ambulance": { "All": ["123"] }, "Fire": { "All": ["180"] }, "Police": { "All": ["122"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "131114" }, { "Country": { "Name": "El Salvador", "ISOCode": "SV", "ISONumeric": "222" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "126" }, { "Country": { "Name": "Equatorial Guinea", "ISOCode": "GQ", "ISONumeric": "226" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Eritrea", "ISOCode": "ER", "ISONumeric": "232" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Estonia", "ISOCode": "EE", "ISONumeric": "233" }, "Ambulance": { "All": ["112"] }, "Fire": { "All": ["112"] }, "Police": { "All": ["110"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "3726558088" }, { "Country": { "Name": "Ethiopia", "ISOCode": "ET", "ISONumeric": "231" }, "Ambulance": { "All": ["92"] }, "Fire": { "All": ["93"] }, "Police": { "All": ["91"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Falkland Islands (Malvinas)", "ISOCode": "FK", "ISONumeric": "238" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Faroe Islands", "ISOCode": "FO", "ISONumeric": "234" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Fiji", "ISOCode": "FJ", "ISONumeric": "242" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Finland", "ISOCode": "FI", "ISONumeric": "246" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "010195202" }, { "Country": { "Name": "France", "ISOCode": "FR", "ISONumeric": "250" }, "Ambulance": { "All": ["15"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "0145394000" }, { "Country": { "Name": "French Guiana", "ISOCode": "GF", "ISONumeric": "254" }, "Ambulance": { "All": ["15"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": ["112"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "French Polynesia", "ISOCode": "PF", "ISONumeric": "258" }, "Ambulance": { "All": ["15"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "French Southern Territories", "ISOCode": "TF", "ISONumeric": "260" }, "Ambulance": { "All": ["No Permanent Population"] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Gabon", "ISOCode": "GA", "ISONumeric": "266" }, "Ambulance": { "All": ["1300‐1399"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["1730"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Gambia", "ISOCode": "GM", "ISONumeric": "270" }, "Ambulance": { "All": ["16"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Georgia", "ISOCode": "GE", "ISONumeric": "268" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Germany", "ISOCode": "DE", "ISONumeric": "276" }, "Ambulance": { "All": [""] }, "Fire": { "All": [""] }, "Police": { "All": ["110"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "08001110111" }, { "Country": { "Name": "Ghana", "ISOCode": "GH", "ISONumeric": "288" }, "Ambulance": { "All": ["776111-5"] }, "Fire": { "All": ["192"] }, "Police": { "All": ["999", "171"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "233244471279" }, { "Country": { "Name": "Gibraltar", "ISOCode": "GI", "ISONumeric": "292" }, "Ambulance": { "All": [null] }, "Fire": { "All": ["190"] }, "Police": { "All": ["199"] }, "Dispatch": { "All": ["999"] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Greece", "ISOCode": "GR", "ISONumeric": "300" }, "Ambulance": { "All": ["166"] }, "Fire": { "All": ["199"] }, "Police": { "All": ["100"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Greenland", "ISOCode": "GL", "ISONumeric": "304" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Grenada", "ISOCode": "GD", "ISONumeric": "308" }, "Ambulance": { "All": ["434"] }, "Fire": { "All": ["112"] }, "Police": { "All": ["911"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Guadeloupe", "ISOCode": "GP", "ISONumeric": "312" }, "Ambulance": { "All": ["18"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Guam", "ISOCode": "GU", "ISONumeric": "316" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Guatemala", "ISOCode": "GT", "ISONumeric": "320" }, "Ambulance": { "All": ["123"] }, "Fire": { "All": ["123"] }, "Police": { "All": ["110"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "53925953" }, { "Country": { "Name": "Guernsey", "ISOCode": "GG", "ISONumeric": "831" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Guinea", "ISOCode": "GN", "ISONumeric": "324" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Guinea-Bissau", "ISOCode": "GW", "ISONumeric": "624" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Guyana", "ISOCode": "GY", "ISONumeric": "328" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "2230001" }, { "Country": { "Name": "Haiti", "ISOCode": "HT", "ISONumeric": "332" }, "Ambulance": { "All": ["118"] }, "Fire": { "All": [null] }, "Police": { "All": ["114"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Heard Island and McDonald Islands", "ISOCode": "HM", "ISONumeric": "334" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "NoData": true, "Notes": "" }, { "Country": { "Name": "Holy See", "ISOCode": "VA", "ISONumeric": "336" }, "Ambulance": { "All": ["118"] }, "Fire": { "All": ["115"] }, "Police": { "All": ["113"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Honduras", "ISOCode": "HN", "ISONumeric": "340" }, "Ambulance": { "All": ["195", " 37 8654"] }, "Fire": { "All": ["198"] }, "Police": { "All": ["119"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Hong Kong", "ISOCode": "HK", "ISONumeric": "344" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"], "GSM": ["112"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "85223820000" }, { "Country": { "Name": "Hungary", "ISOCode": "HU", "ISONumeric": "348" }, "Ambulance": { "All": ["104"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["107"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "116123" }, { "Country": { "Name": "Iceland", "ISOCode": "IS", "ISONumeric": "352" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "India", "ISOCode": "IN", "ISONumeric": "356" }, "Ambulance": { "All": ["102"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["101"] }, "Traffic": { "All": ["103"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "8888817666" }, { "Country": { "Name": "Indonesia", "ISOCode": "ID", "ISONumeric": "360" }, "Ambulance": { "All": ["118"] }, "Fire": { "All": ["113"] }, "Police": { "All": ["110"], "GSM": ["112"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "18002738255" }, { "Country": { "Name": "Iran, Islamic Republic of", "ISOCode": "IR", "ISONumeric": "364" }, "Ambulance": { "All": ["115"] }, "Fire": { "All": ["123"] }, "Police": { "All": ["110"], "GSM": ["112"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Iraq", "ISOCode": "IQ", "ISONumeric": "368" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Ireland", "ISOCode": "IE", "ISONumeric": "372" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "4408457909090" }, { "Country": { "Name": "Isle of Man", "ISOCode": "IM", "ISONumeric": "833" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Israel", "ISOCode": "IL", "ISONumeric": "376" }, "Ambulance": { "All": ["101"] }, "Fire": { "All": ["102"] }, "Police": { "All": ["100"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "1201" }, { "Country": { "Name": "Italy", "ISOCode": "IT", "ISONumeric": "380" }, "Ambulance": { "All": ["118"] }, "Fire": { "All": ["115"] }, "Police": { "All": ["113"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "800860022" }, { "Country": { "Name": "Jamaica", "ISOCode": "JM", "ISONumeric": "388" }, "Ambulance": { "All": ["110"] }, "Fire": { "All": ["110"] }, "Police": { "All": ["119"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "18884295273" }, { "Country": { "Name": "Japan", "ISOCode": "JP", "ISONumeric": "392" }, "Ambulance": { "All": ["119"] }, "Fire": { "All": ["119"] }, "Police": { "All": ["110"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "810352869090" }, { "Country": { "Name": "Jersey", "ISOCode": "JE", "ISONumeric": "832" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Jordan", "ISOCode": "JO", "ISONumeric": "400" }, "Ambulance": { "All": ["199"] }, "Fire": { "All": ["199"] }, "Police": { "All": ["191"] }, "Traffic": { "All": ["190"] }, "Dispatch": { "All": ["911"] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "110" }, { "Country": { "Name": "Kazakhstan", "ISOCode": "KZ", "ISONumeric": "398" }, "Ambulance": { "All": ["103"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["102"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Kenya", "ISOCode": "KE", "ISONumeric": "404" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "722178177" }, { "Country": { "Name": "Kiribati", "ISOCode": "KI", "ISONumeric": "296" }, "Ambulance": { "All": ["994"] }, "Fire": { "All": ["993"] }, "Police": { "All": ["992"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Korea, Democratic People's Republic of", "ISOCode": "KP", "ISONumeric": "408" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Korea, Republic of", "ISOCode": "KR", "ISONumeric": "410" }, "Ambulance": { "All": ["119"] }, "Fire": { "All": ["119"] }, "Police": { "All": ["112"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Kuwait", "ISOCode": "KW", "ISONumeric": "414" }, "Ambulance": { "All": ["777"] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "94069304" }, { "Country": { "Name": "Kyrgyzstan", "ISOCode": "KG", "ISONumeric": "417" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["103"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Lao People's Democratic Republic", "ISOCode": "LA", "ISONumeric": "418" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": "" }, { "Country": { "Name": "Latvia", "ISOCode": "LV", "ISONumeric": "428" }, "Ambulance": { "All": ["113"] }, "Fire": { "All": [""] }, "Police": { "All": ["110"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "37167222922" }, { "Country": { "Name": "Lebanon", "ISOCode": "LB", "ISONumeric": "422" }, "Ambulance": { "All": ["113"] }, "Fire": { "All": [null] }, "Police": { "All": ["110", "112"] }, "Dispatch": { "All": [""] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "1564" }, { "Country": { "Name": "Lesotho", "ISOCode": "LS", "ISONumeric": "426" }, "Ambulance": { "All": ["121"] }, "Fire": { "All": ["122"] }, "Police": { "All": ["123", " 124"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Liberia", "ISOCode": "LR", "ISONumeric": "430" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "GSM": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "6534308" }, { "Country": { "Name": "Libya", "ISOCode": "LY", "ISONumeric": "434" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["193"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Liechtenstein", "ISOCode": "LI", "ISONumeric": "438" }, "Ambulance": { "All": ["144"] }, "Fire": { "All": ["118"] }, "Police": { "All": ["112", "117"] }, "Dispatch": { "All": [""] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Lithuania", "ISOCode": "LT", "ISONumeric": "440" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "880028888" }, { "Country": { "Name": "Luxembourg", "ISOCode": "LU", "ISONumeric": "442" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": ["113"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "352454545" }, { "Country": { "Name": "Macao", "ISOCode": "MO", "ISONumeric": "446" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Macedonia, the former Yugoslav Republic of", "ISOCode": "MK", "ISONumeric": "807" }, "Ambulance": { "All": ["194"] }, "Fire": { "All": ["193"] }, "Police": { "All": ["192"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Madagascar", "ISOCode": "MG", "ISONumeric": "450" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Malawi", "ISOCode": "MW", "ISONumeric": "454" }, "Ambulance": { "All": ["998"] }, "Fire": { "All": ["999"] }, "Police": { "All": ["997"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Malaysia", "ISOCode": "MY", "ISONumeric": "458" }, "Ambulance": { "All": ["999"], "GSM": ["112"] }, "Fire": { "All": ["994"] }, "Police": { "All": ["999"], "GSM": ["112"] }, "Dispatch": { "All": [""] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "062842500" }, { "Country": { "Name": "Maldives", "ISOCode": "MV", "ISONumeric": "462" }, "Ambulance": { "All": ["102"] }, "Fire": { "All": ["999"] }, "Police": { "All": ["119"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Mali", "ISOCode": "ML", "ISONumeric": "466" }, "Ambulance": { "All": ["15"] }, "Fire": { "All": ["17"] }, "Police": { "All": ["18"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Malta", "ISOCode": "MT", "ISONumeric": "470" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "179" }, { "Country": { "Name": "Marshall Islands", "ISOCode": "MH", "ISONumeric": "584" }, "Ambulance": { "All": ["625 4111"] }, "Fire": { "All": [null] }, "Police": { "All": ["625 8666"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Martinique", "ISOCode": "MQ", "ISONumeric": "474" }, "Ambulance": { "All": ["15"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Mauritania", "ISOCode": "MR", "ISONumeric": "478" }, "Ambulance": { "All": [null] }, "Fire": { "All": ["118"] }, "Police": { "All": ["117"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Mauritius", "ISOCode": "MU", "ISONumeric": "480" }, "Ambulance": { "All": ["114"] }, "Fire": { "All": ["115"] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "2308009393" }, { "Country": { "Name": "Mayotte", "ISOCode": "YT", "ISONumeric": "175" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Mexico", "ISOCode": "MX", "ISONumeric": "484" }, "Ambulance": { "All": ["065"] }, "Fire": { "All": ["068"] }, "Police": { "All": ["060"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "5255102550" }, { "Country": { "Name": "Micronesia, Federated States of", "ISOCode": "FM", "ISONumeric": "583" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Moldova, Republic of", "ISOCode": "MD", "ISONumeric": "498" }, "Ambulance": { "All": ["903"] }, "Fire": { "All": ["901"] }, "Police": { "All": ["902"], "GSM": ["112"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Monaco", "ISOCode": "MC", "ISONumeric": "492" }, "Ambulance": { "All": ["15"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Mongolia", "ISOCode": "MN", "ISONumeric": "496" }, "Ambulance": { "All": ["103"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["102"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Montenegro", "ISOCode": "ME", "ISONumeric": "499" }, "Ambulance": { "All": ["124"] }, "Fire": { "All": ["123"] }, "Police": { "All": ["122"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Montserrat", "ISOCode": "MS", "ISONumeric": "500" }, "Ambulance": { "All": ["911"] }, "Fire": { "All": [null] }, "Police": { "All": ["999"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Morocco", "ISOCode": "MA", "ISONumeric": "504" }, "Ambulance": { "All": ["15"] }, "Fire": { "All": ["15"] }, "Police": { "All": ["19"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Mozambique", "ISOCode": "MZ", "ISONumeric": "508" }, "Ambulance": { "All": ["117"] }, "Fire": { "All": ["198"] }, "Police": { "All": ["119"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Myanmar", "ISOCode": "MM", "ISONumeric": "104" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Namibia", "ISOCode": "NA", "ISONumeric": "516" }, "Ambulance": { "All": ["2032276"] }, "Fire": { "All": ["2032270"] }, "Police": { "All": ["1011"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Nauru", "ISOCode": "NR", "ISONumeric": "520" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Nepal", "ISOCode": "NP", "ISONumeric": "524" }, "Ambulance": { "All": ["102"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["110", "112"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Netherlands", "ISOCode": "NL", "ISONumeric": "528" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "9000113" }, { "Country": { "Name": "New Caledonia", "ISOCode": "NC", "ISONumeric": "540" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "NoData": true }, { "Country": { "Name": "New Zealand", "ISOCode": "NZ", "ISONumeric": "554" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["111"] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "1737" }, { "Country": { "Name": "Nicaragua", "ISOCode": "NI", "ISONumeric": "558" }, "Ambulance": { "All": ["128"] }, "Fire": { "All": ["115", "911"] }, "Police": { "All": ["118"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Niger", "ISOCode": "NE", "ISONumeric": "562" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Nigeria", "ISOCode": "NG", "ISONumeric": "566" }, "Ambulance": { "All": ["199"] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "2348092106493" }, { "Country": { "Name": "Niue", "ISOCode": "NU", "ISONumeric": "570" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Norfolk Island", "ISOCode": "NF", "ISONumeric": "574" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Northern Mariana Islands", "ISOCode": "MP", "ISONumeric": "580" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Norway", "ISOCode": "NO", "ISONumeric": "578" }, "Ambulance": { "All": ["113"] }, "Fire": { "All": ["110"] }, "Police": { "All": ["112"] }, "Dispatch": { "All": [""] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "4781533300" }, { "Country": { "Name": "Oman", "ISOCode": "OM", "ISONumeric": "512" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Pakistan", "ISOCode": "PK", "ISONumeric": "586" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["15"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Palau", "ISOCode": "PW", "ISONumeric": "585" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Palestine, State of", "ISOCode": "PS", "ISONumeric": "275" }, "Ambulance": { "All": ["101"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["100"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Panama", "ISOCode": "PA", "ISONumeric": "591" }, "Ambulance": { "All": [""] }, "Fire": { "All": ["103"] }, "Police": { "All": ["104"] }, "Dispatch": { "All": ["911"] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Papua New Guinea", "ISOCode": "PG", "ISONumeric": "598" }, "Ambulance": { "All": [null] }, "Fire": { "All": ["110"] }, "Police": { "All": ["000"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Paraguay", "ISOCode": "PY", "ISONumeric": "600" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["00"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Peru", "ISOCode": "PE", "ISONumeric": "604" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["011", " 5114"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "3813695" }, { "Country": { "Name": "Philippines", "ISOCode": "PH", "ISONumeric": "608" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["116", "117"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "028969191" }, { "Country": { "Name": "Pitcairn", "ISOCode": "PN", "ISONumeric": "612" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "NoData": true, "Notes": "" }, { "Country": { "Name": "Poland", "ISOCode": "PL", "ISONumeric": "616" }, "Ambulance": { "All": ["999"] }, "Fire": { "All": ["998"] }, "Police": { "All": ["997"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "5270000" }, { "Country": { "Name": "Portugal", "ISOCode": "PT", "ISONumeric": "620" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "218540740" }, { "Country": { "Name": "Puerto Rico", "ISOCode": "PR", "ISONumeric": "630" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Qatar", "ISOCode": "QA", "ISONumeric": "634" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Réunion", "ISOCode": "RE", "ISONumeric": "638" }, "Ambulance": { "All": ["112", "15"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Romania", "ISOCode": "RO", "ISONumeric": "642" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "0800801200" }, { "Country": { "Name": "Russian Federation", "ISOCode": "RU", "ISONumeric": "643" }, "Ambulance": { "All": ["103"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["102"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Rwanda", "ISOCode": "RW", "ISONumeric": "646" }, "Ambulance": { "All": ["912"] }, "Fire": { "All": ["112"] }, "Police": { "All": ["112"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Saint Barthélemy", "ISOCode": "BL", "ISONumeric": "652" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Saint Helena, Ascension and Tristan da Cunha", "ISOCode": "SH", "ISONumeric": "654" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Saint Kitts and Nevis", "ISOCode": "KN", "ISONumeric": "659" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Saint Lucia", "ISOCode": "LC", "ISONumeric": "662" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999", "911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Saint Martin (French part)", "ISOCode": "MF", "ISONumeric": "663" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Saint Pierre and Miquelon", "ISOCode": "PM", "ISONumeric": "666" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Saint Vincent and the Grenadines", "ISOCode": "VC", "ISONumeric": "670" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999", "911"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "97844561044" }, { "Country": { "Name": "Samoa", "ISOCode": "WS", "ISONumeric": "882" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "San Marino", "ISOCode": "SM", "ISONumeric": "674" }, "Ambulance": { "All": ["118"] }, "Fire": { "All": ["115"] }, "Police": { "All": ["112", "113"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Sao Tome and Principe", "ISOCode": "ST", "ISONumeric": "678" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Saudi Arabia", "ISOCode": "SA", "ISONumeric": "682" }, "Ambulance": { "All": ["997"] }, "Fire": { "All": ["998"] }, "Police": { "All": ["999"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Senegal", "ISOCode": "SN", "ISONumeric": "686" }, "Ambulance": { "All": ["15"] }, "Fire": { "All": ["18"] }, "Police": { "All": ["17"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": false }, { "Country": { "Name": "Serbia", "ISOCode": "RS", "ISONumeric": "688" }, "Ambulance": { "All": ["194"] }, "Fire": { "All": ["193"] }, "Police": { "All": ["192"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "381216623393" }, { "Country": { "Name": "Seychelles", "ISOCode": "SC", "ISONumeric": "690" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Sierra Leone", "ISOCode": "SL", "ISONumeric": "694" }, "Ambulance": { "All": ["999"] }, "Fire": { "All": ["019"] }, "Police": { "All": ["999"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Singapore", "ISOCode": "SG", "ISONumeric": "702" }, "Ambulance": { "All": ["995"] }, "Fire": { "All": ["995"] }, "Police": { "All": ["999"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "18002214444" }, { "Country": { "Name": "Sint Maarten (Dutch part)", "ISOCode": "SX", "ISONumeric": "534" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Slovakia", "ISOCode": "SK", "ISONumeric": "703" }, "Ambulance": { "All": ["155"] }, "Fire": { "All": ["150"] }, "Police": { "All": ["158"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Slovenia", "ISOCode": "SI", "ISONumeric": "705" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": ["113"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Solomon Islands", "ISOCode": "SB", "ISONumeric": "90" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Somalia", "ISOCode": "SO", "ISONumeric": "706" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "South Africa", "ISOCode": "ZA", "ISONumeric": "710" }, "Ambulance": { "All": ["10177"] }, "Fire": { "All": ["10177"] }, "Police": { "All": ["10111"] }, "Dispatch": { "All": [null], "GSM": ["112"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "0514445691" }, { "Country": { "Name": "South Georgia and the South Sandwich Islands", "ISOCode": "GS", "ISONumeric": "239" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "South Sudan", "ISOCode": "SS", "ISONumeric": "728" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Spain", "ISOCode": "ES", "ISONumeric": "724" }, "Ambulance": { "All": ["061"] }, "Fire": { "All": ["080"] }, "Police": { "All": ["091"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "914590050" }, { "Country": { "Name": "Sri Lanka", "ISOCode": "LK", "ISONumeric": "144" }, "Ambulance": { "All": ["110"] }, "Fire": { "All": ["110"] }, "Police": { "All": ["112", "119"] }, "Dispatch": { "All": [""] }, "Member_112": false, "LocalOnly": false, "Notes": null, "Suicide": "0110572222662" }, { "Country": { "Name": "Sudan", "ISOCode": "SD", "ISONumeric": "729" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false, "Suicide": "24911555253" }, { "Country": { "Name": "Suriname", "ISOCode": "SR", "ISONumeric": "740" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Svalbard and Jan Mayen", "ISOCode": "SJ", "ISONumeric": "744" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Swaziland", "ISOCode": "SZ", "ISONumeric": "748" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": true, "Notes": false }, { "Country": { "Name": "Sweden", "ISOCode": "SE", "ISONumeric": "752" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "46317112400" }, { "Country": { "Name": "Switzerland", "ISOCode": "CH", "ISONumeric": "756" }, "Ambulance": { "All": ["144"] }, "Fire": { "All": ["118"] }, "Police": { "All": ["117"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "143" }, { "Country": { "Name": "Syrian Arab Republic", "ISOCode": "SY", "ISONumeric": "760" }, "Ambulance": { "All": ["110"] }, "Fire": { "All": ["113"] }, "Police": { "All": ["112"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Taiwan, Province of China", "ISOCode": "TW", "ISONumeric": "158" }, "Ambulance": { "All": ["119"] }, "Fire": { "All": ["119"] }, "Police": { "All": ["110"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Tajikistan", "ISOCode": "TJ", "ISONumeric": "762" }, "Ambulance": { "All": ["03"] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Tanzania, United Republic of", "ISOCode": "TZ", "ISONumeric": "834" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["112", "999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Thailand", "ISOCode": "TH", "ISONumeric": "764" }, "Ambulance": { "All": ["191"] }, "Fire": { "All": ["199"] }, "Police": { "All": ["191"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "027136793" }, { "Country": { "Name": "Timor-Leste", "ISOCode": "TL", "ISONumeric": "626" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": false }, { "Country": { "Name": "Togo", "ISOCode": "TG", "ISONumeric": "768" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": ["101"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Tokelau", "ISOCode": "TK", "ISONumeric": "772" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Tonga", "ISOCode": "TO", "ISONumeric": "776" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "23000" }, { "Country": { "Name": "Trinidad and Tobago", "ISOCode": "TT", "ISONumeric": "780" }, "Ambulance": { "All": ["990"] }, "Fire": { "All": ["990"] }, "Police": { "All": ["999"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "8686452800" }, { "Country": { "Name": "Tunisia", "ISOCode": "TN", "ISONumeric": "788" }, "Ambulance": { "All": ["190"] }, "Fire": { "All": ["198"] }, "Police": { "All": ["197"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Turkey", "ISOCode": "TR", "ISONumeric": "792" }, "Ambulance": { "All": ["112"] }, "Fire": { "All": ["110"] }, "Police": { "All": ["155"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Turkmenistan", "ISOCode": "TM", "ISONumeric": "795" }, "Ambulance": { "All": ["03"] }, "Fire": { "All": ["01"] }, "Police": { "All": ["02"] }, "Dispatch": { "All": [] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Turks and Caicos Islands", "ISOCode": "TC", "ISONumeric": "796" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999", " 911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Tuvalu", "ISOCode": "TV", "ISONumeric": "798" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Uganda", "ISOCode": "UG", "ISONumeric": "800" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "GSM": ["112"], "Fixed": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "0800212121" }, { "Country": { "Name": "Ukraine", "ISOCode": "UA", "ISONumeric": "804" }, "Ambulance": { "All": ["103"] }, "Fire": { "All": ["101"] }, "Police": { "All": ["102"] }, "Dispatch": { "All": [null] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "United Arab Emirates", "ISOCode": "AE", "ISONumeric": "784" }, "Ambulance": { "All": ["998"] }, "Fire": { "All": ["997"] }, "Police": { "All": ["999"] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "", "Suicide": "80046342" }, { "Country": { "Name": "United Kingdom of Great Britain and Northern Ireland", "ISOCode": "GB", "ISONumeric": "826" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "United States Minor Outlying Islands", "ISOCode": "UM", "ISONumeric": "581" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "United States of America", "ISOCode": "US", "ISONumeric": "840" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "988" }, { "Country": { "Name": "Uruguay", "ISOCode": "UY", "ISONumeric": "858" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999", "911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Uzbekistan", "ISOCode": "UZ", "ISONumeric": "860" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["03"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Vanuatu", "ISOCode": "VU", "ISONumeric": "548" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [""] }, "Member_112": true, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Venezuela, Bolivarian Republic of", "ISOCode": "VE", "ISONumeric": "862" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["171"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Viet Nam", "ISOCode": "VN", "ISONumeric": "704" }, "Ambulance": { "All": ["05"] }, "Fire": { "All": ["08"] }, "Police": { "All": ["03"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Virgin Islands, British", "ISOCode": "VG", "ISONumeric": "92" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Virgin Islands, U.S.", "ISOCode": "VI", "ISONumeric": "850" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["911"] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Wallis and Futuna", "ISOCode": "WF", "ISONumeric": "876" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Western Sahara", "ISOCode": "EH", "ISONumeric": "732" }, "Ambulance": { "All": ["150"] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Yemen", "ISOCode": "YE", "ISONumeric": "887" }, "Ambulance": { "All": ["191"] }, "Fire": { "All": ["191"] }, "Police": { "All": ["194"] }, "Dispatch": { "All": [null] }, "Member_112": false, "LocalOnly": false, "Notes": "" }, { "Country": { "Name": "Zambia", "ISOCode": "ZM", "ISONumeric": "894" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "260960264040" }, { "Country": { "Name": "Zimbabwe", "ISOCode": "ZW", "ISONumeric": "716" }, "Ambulance": { "All": [null] }, "Fire": { "All": [null] }, "Police": { "All": [null] }, "Dispatch": { "All": ["999"] }, "Member_112": false, "LocalOnly": false, "Notes": "", "Suicide": "08012333333" }] diff --git a/assets/data/suicide_hotlines.json b/assets/data/suicide_hotlines.json new file mode 100644 index 000000000..063fcee39 --- /dev/null +++ b/assets/data/suicide_hotlines.json @@ -0,0 +1,306 @@ +[ + { + "Country": "United States of America", + "Hotline": "988" + }, + { + "Country": "Algeria", + "Hotline": "00213983200058" + }, + { + "Country": "Argentina", + "Hotline": "135" + }, + { + "Country": "Armenia", + "Hotline": "2538194" + }, + { + "Country": "Australia", + "Hotline": "131114" + }, + { + "Country": "Bahamas", + "Hotline": "3222763" + }, + { + "Country": "Bolivia", + "Hotline": "3911270" + }, + { + "Country": "Bosnia & Herzegovina", + "Hotline": "080050305" + }, + { + "Country": "Bulgaria", + "Hotline": "0035924917223" + }, + { + "Country": "Canada", + "Hotline": "18334564566" + }, + { + "Country": "China", + "Hotline": "8008101117" + }, + { + "Country": "Costa Rica", + "Hotline": "5062535439" + }, + { + "Country": "Cyprus", + "Hotline": "80007773" + }, + { + "Country": "Denmark", + "Hotline": "4570201201" + }, + { + "Country": "Dominican Republic", + "Hotline": "8095623500" + }, + { + "Country": "Egypt", + "Hotline": "131114" + }, + { + "Country": "El Salvador", + "Hotline": "126" + }, + { + "Country": "Estonia", + "Hotline": "3726558088" + }, + { + "Country": "Finland", + "Hotline": "010195202" + }, + { + "Country": "France", + "Hotline": "0145394000" + }, + { + "Country": "Germany", + "Hotline": "08001110111" + }, + { + "Country": "Ghana", + "Hotline": "233244471279" + }, + { + "Country": "Guatemala", + "Hotline": "53925953" + }, + { + "Country": "Guyana", + "Hotline": "2230001" + }, + { + "Country": "Holland", + "Hotline": "09000767" + }, + { + "Country": "Hong Kong", + "Hotline": "85223820000" + }, + { + "Country": "Hungary", + "Hotline": "116123" + }, + { + "Country": "India", + "Hotline": "8888817666" + }, + { + "Country": "Indonesia", + "Hotline": "18002738255" + }, + { + "Country": "Iran", + "Hotline": "1480" + }, + { + "Country": "Ireland", + "Hotline": "4408457909090" + }, + { + "Country": "Israel", + "Hotline": "1201" + }, + { + "Country": "Italy", + "Hotline": "800860022" + }, + { + "Country": "Jamaica", + "Hotline": "18884295273" + }, + { + "Country": "Japan", + "Hotline": "810352869090" + }, + { + "Country": "Jordan", + "Hotline": "110" + }, + { + "Country": "Kenya", + "Hotline": "722178177" + }, + { + "Country": "Kuwait", + "Hotline": "94069304" + }, + { + "Country": "Latvia", + "Hotline": "37167222922" + }, + { + "Country": "Lebanon", + "Hotline": "1564" + }, + { + "Country": "Liberia", + "Hotline": "6534308" + }, + { + "Country": "Lithuania", + "Hotline": "880028888" + }, + { + "Country": "Luxembourg", + "Hotline": "352454545" + }, + { + "Country": "Malaysia", + "Hotline": "062842500" + }, + { + "Country": "Malta", + "Hotline": "179" + }, + { + "Country": "Mauritius", + "Hotline": "2308009393" + }, + { + "Country": "Mexico", + "Hotline": "5255102550" + }, + { + "Country": "Netherlands", + "Hotline": "9000113" + }, + { + "Country": "New Zealand", + "Hotline": "1737" + }, + { + "Country": "Nigeria", + "Hotline": "2348092106493" + }, + { + "Country": "Norway", + "Hotline": "4781533300" + }, + { + "Country": "Peru", + "Hotline": "3813695" + }, + { + "Country": "Philippines", + "Hotline": "028969191" + }, + { + "Country": "Poland", + "Hotline": "5270000" + }, + { + "Country": "Portugal", + "Hotline": "218540740" + }, + { + "Country": "Romania", + "Hotline": "0800801200" + }, + { + "Country": "Russia", + "Hotline": "0078202577577" + }, + { + "Country": "Saint Vincent and the Grenadines", + "Hotline": "97844561044" + }, + { + "Country": "São Tomé and Príncipe", + "Hotline": "2392221222" + }, + { + "Country": "Serbia", + "Hotline": "381216623393" + }, + { + "Country": "Singapore", + "Hotline": "18002214444" + }, + { + "Country": "Spain", + "Hotline": "914590050" + }, + { + "Country": "South Africa", + "Hotline": "0514445691" + }, + { + "Country": "South Korea", + "Hotline": "027158600" + }, + { + "Country": "Sri Lanka", + "Hotline": "0110572222662" + }, + { + "Country": "Sudan", + "Hotline": "24911555253" + }, + { + "Country": "Sweden", + "Hotline": "46317112400" + }, + { + "Country": "Switzerland", + "Hotline": "143" + }, + { + "Country": "Thailand", + "Hotline": "027136793" + }, + { + "Country": "Tonga", + "Hotline": "23000" + }, + { + "Country": "Trinidad and Tobago", + "Hotline": "8686452800" + }, + { + "Country": "Uganda", + "Hotline": "0800212121" + }, + { + "Country": "United Arab Emirates", + "Hotline": "80046342" + }, + { + "Country": "United Kingdom", + "Hotline": "08006895652" + }, + { + "Country": "Zambia", + "Hotline": "260960264040" + }, + { + "Country": "Zimbabwe", + "Hotline": "08012333333" + } +] diff --git a/src/discord/commands/global/d.ems.ts b/src/discord/commands/global/d.ems.ts new file mode 100644 index 000000000..ded7cfe28 --- /dev/null +++ b/src/discord/commands/global/d.ems.ts @@ -0,0 +1,65 @@ +import { + ActionRowBuilder, + ModalBuilder, + TextInputBuilder, + Colors, + SlashCommandBuilder, + ModalSubmitInteraction, InteractionReplyOptions, +} from 'discord.js'; +import { + TextInputStyle, +} from 'discord-api-types/v10'; +import { SlashCommand } from '../../@types/commandDef'; +import { embedTemplate } from '../../utils/embedTemplate'; +import { globalTemplate } from '../../../global/commands/_g.template'; +import commandContext from '../../utils/context'; +import { ems } from '../../../global/commands/g.ems'; + +export const emsCommand : SlashCommand = { + data: new SlashCommandBuilder().setName('ems') + .setDescription('Gets list of EMS Lines for the provided countries matching the query') + .addStringOption(option => option.setName('country_search').setDescription('The string to search for country name').setRequired(true)) + .addBooleanOption(option => option.setName('ephemeral') + .setDescription('Set to "True" to show the response only to you')), + async execute(interaction) { + await interaction.deferReply({ ephemeral: (interaction.options.getBoolean('ephemeral') === true) }); + const data = await ems(interaction.options.getString('country_search') || ''); + if (data.length === 0) { + await interaction.editReply(':x: No Countries Found'); + return true; + } + const fields = data.slice(0, 25).map(dataEntry => { + let valueStr = dataEntry.LocalOnly + ? 'Local numbers only' + : `${dataEntry.Suicide ? `Suicide Hotline: \`${dataEntry.Suicide}\`` : ''}` + + `${dataEntry.Ambulance.All && dataEntry.Ambulance.All[0] != null && dataEntry.Ambulance.All[0] != '' ? `Ambulance: ${dataEntry.Ambulance.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` + + `${dataEntry.Ambulance.GSM || dataEntry.Ambulance.Fixed ? `Ambulance GSM: ${dataEntry.Ambulance.GSM ? dataEntry.Ambulance.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nAmbulance Landline: ${dataEntry.Ambulance.Fixed ? dataEntry.Ambulance.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}` + + `${dataEntry.Police.All && dataEntry.Police.All[0] != null && dataEntry.Police.All[0] != '' ? `\nPolice: ${dataEntry.Police.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` + + `${dataEntry.Police.GSM || dataEntry.Police.Fixed ? `\nPolice GSM: ${dataEntry.Police.GSM ? dataEntry.Police.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nPolice Landline: ${dataEntry.Police.Fixed ? dataEntry.Police.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}` + + `${dataEntry.Fire.All && dataEntry.Fire.All[0] != null && dataEntry.Fire.All[0] != '' ? `\nFire: ${dataEntry.Fire.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` + + `${dataEntry.Fire.GSM || dataEntry.Fire.Fixed ? `\nFire GSM: ${dataEntry.Fire.GSM ? dataEntry.Fire.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nFire Landline: ${dataEntry.Fire.Fixed ? dataEntry.Fire.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}` + + `${dataEntry.Dispatch.All && dataEntry.Dispatch.All[0] != null && dataEntry.Dispatch.All[0] != '' && dataEntry.Dispatch.All[0].length > 0 ? `\nGeneral Dispatch: ${dataEntry.Dispatch.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` + + `${dataEntry.Dispatch.GSM || dataEntry.Dispatch.Fixed ? `\nDispatch GSM: ${dataEntry.Dispatch.GSM ? dataEntry.Dispatch.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nDispatch Landline: ${dataEntry.Dispatch.Fixed ? dataEntry.Dispatch.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}`; + valueStr = valueStr.substring(0, 1024); // trim for discord + if (!valueStr.trim()) { + if (dataEntry.Member_112 === true) { + valueStr = '`112` Standard Compliant. Use `112`'; + } else { + valueStr = 'No data available'; + } + } + return { + name: `**${dataEntry.Country.Name.substring(0, 256)}**`, // Limit name length + value: valueStr, + inline: true, + }; + }); + const embed = embedTemplate().setFields(fields).setTitle(`EMS Numbers for countries matching: ${interaction.options.getString('country_search') || ''}`)/* .setDescription('\n**DONT HESITATE TO CALL EMS IF YOU OR SOMEONE YOU KNOW IS IN DANGER**') */; + if (data.length > 25) { + embed.setFooter({ text: 'Results clipped (25 Max). Narrow your search! • Dose Responsibly' }); + } + await interaction.editReply({ embeds: [embed] }); + return true; + }, +}; +export default emsCommand; diff --git a/src/global/commands/g.ems.ts b/src/global/commands/g.ems.ts new file mode 100644 index 000000000..5fd52b841 --- /dev/null +++ b/src/global/commands/g.ems.ts @@ -0,0 +1,46 @@ +import axios from 'axios'; +import fs from 'fs'; +import EMSLINES from '../../../assets/data/ems_lines.json'; +import SUICIDELINES from '../../../assets/data/suicide_hotlines.json'; + +const F = f(__filename); +export default ems; +let lastRefresh : Date; + +export async function ems(search : string):Promise { + // cache whole dataset + const data : any[] = []; + if (lastRefresh === undefined || (new Date().getTime() - lastRefresh.getTime()) / (1000 * 3600 * 24) >= 5) { + const fetched = await axios.get('https://emergencynumberapi.com/api/data/all').then(response => response.data); + for (const country of Object.values(fetched)) { + // @ts-ignore + for (const line of SUICIDELINES) { + // @ts-ignore + if (line.Country.toLowerCase() === country.Country.Name.toLowerCase()) { + // @ts-ignore + country.Suicide = line.Hotline; + break; + } + } + } + fs.writeFile('assets/data/ems_lines.json', JSON.stringify(fetched), 'utf8', err => { if (err) throw err; }); + lastRefresh = new Date(); + log.debug('EMS', 'Refreshed EMS Lines'); + } + const comparators : Set = new Set(search.split(' ')); // tokenize for unique + // Search for all countries who's names match the given input. each space is considered as another token + for (const country of Object.values(EMSLINES)) { + let matches = 0; + const names = country.Country.Name.toLowerCase().split(' '); + for (const comp of comparators) { + if (names.some(name => name.startsWith(comp.toLowerCase()))) { + matches++; + } + } + if (matches >= comparators.size / 2) { + data.push(country); + } + } + + return data; +} From 43814eef9cfa9aa4a8717a9942fdd024fa9c8c6d Mon Sep 17 00:00:00 2001 From: Juniper Date: Tue, 9 Jul 2024 20:31:28 -0500 Subject: [PATCH 2/3] No more eslint anger (less anyway) --- src/discord/commands/global/d.ems.ts | 16 +++------------- src/global/commands/g.ems.ts | 13 ++++++------- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/discord/commands/global/d.ems.ts b/src/discord/commands/global/d.ems.ts index ded7cfe28..e0c172a2d 100644 --- a/src/discord/commands/global/d.ems.ts +++ b/src/discord/commands/global/d.ems.ts @@ -1,18 +1,8 @@ import { - ActionRowBuilder, - ModalBuilder, - TextInputBuilder, - Colors, SlashCommandBuilder, - ModalSubmitInteraction, InteractionReplyOptions, } from 'discord.js'; -import { - TextInputStyle, -} from 'discord-api-types/v10'; import { SlashCommand } from '../../@types/commandDef'; import { embedTemplate } from '../../utils/embedTemplate'; -import { globalTemplate } from '../../../global/commands/_g.template'; -import commandContext from '../../utils/context'; import { ems } from '../../../global/commands/g.ems'; export const emsCommand : SlashCommand = { @@ -29,9 +19,9 @@ export const emsCommand : SlashCommand = { return true; } const fields = data.slice(0, 25).map(dataEntry => { - let valueStr = dataEntry.LocalOnly - ? 'Local numbers only' - : `${dataEntry.Suicide ? `Suicide Hotline: \`${dataEntry.Suicide}\`` : ''}` + let valueStr = dataEntry.LocalOnly + ? 'Local numbers only' + : `${dataEntry.Suicide ? `Suicide Hotline: \`${dataEntry.Suicide}\`` : ''}` + `${dataEntry.Ambulance.All && dataEntry.Ambulance.All[0] != null && dataEntry.Ambulance.All[0] != '' ? `Ambulance: ${dataEntry.Ambulance.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` + `${dataEntry.Ambulance.GSM || dataEntry.Ambulance.Fixed ? `Ambulance GSM: ${dataEntry.Ambulance.GSM ? dataEntry.Ambulance.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nAmbulance Landline: ${dataEntry.Ambulance.Fixed ? dataEntry.Ambulance.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}` + `${dataEntry.Police.All && dataEntry.Police.All[0] != null && dataEntry.Police.All[0] != '' ? `\nPolice: ${dataEntry.Police.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` diff --git a/src/global/commands/g.ems.ts b/src/global/commands/g.ems.ts index 5fd52b841..f1d9811ad 100644 --- a/src/global/commands/g.ems.ts +++ b/src/global/commands/g.ems.ts @@ -3,7 +3,6 @@ import fs from 'fs'; import EMSLINES from '../../../assets/data/ems_lines.json'; import SUICIDELINES from '../../../assets/data/suicide_hotlines.json'; -const F = f(__filename); export default ems; let lastRefresh : Date; @@ -14,14 +13,14 @@ export async function ems(search : string):Promise { const fetched = await axios.get('https://emergencynumberapi.com/api/data/all').then(response => response.data); for (const country of Object.values(fetched)) { // @ts-ignore - for (const line of SUICIDELINES) { + for (const line of SUICIDELINES) { + // @ts-ignore + if (line.Country.toLowerCase() === country.Country.Name.toLowerCase()) { // @ts-ignore - if (line.Country.toLowerCase() === country.Country.Name.toLowerCase()) { - // @ts-ignore - country.Suicide = line.Hotline; - break; - } + country.Suicide = line.Hotline; + break; } + } } fs.writeFile('assets/data/ems_lines.json', JSON.stringify(fetched), 'utf8', err => { if (err) throw err; }); lastRefresh = new Date(); From 7ca22dd2c5e8d3bc4fdb78591b314433d21f6d43 Mon Sep 17 00:00:00 2001 From: Juniper Date: Tue, 9 Jul 2024 21:07:00 -0500 Subject: [PATCH 3/3] Fix some minor formatting issues and make 112 compliance more clear --- src/discord/commands/global/d.ems.ts | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/src/discord/commands/global/d.ems.ts b/src/discord/commands/global/d.ems.ts index e0c172a2d..8ae5d9911 100644 --- a/src/discord/commands/global/d.ems.ts +++ b/src/discord/commands/global/d.ems.ts @@ -18,25 +18,23 @@ export const emsCommand : SlashCommand = { await interaction.editReply(':x: No Countries Found'); return true; } - const fields = data.slice(0, 25).map(dataEntry => { + const fields = data.slice(0, 24).map(dataEntry => { let valueStr = dataEntry.LocalOnly ? 'Local numbers only' : `${dataEntry.Suicide ? `Suicide Hotline: \`${dataEntry.Suicide}\`` : ''}` - + `${dataEntry.Ambulance.All && dataEntry.Ambulance.All[0] != null && dataEntry.Ambulance.All[0] != '' ? `Ambulance: ${dataEntry.Ambulance.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` - + `${dataEntry.Ambulance.GSM || dataEntry.Ambulance.Fixed ? `Ambulance GSM: ${dataEntry.Ambulance.GSM ? dataEntry.Ambulance.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nAmbulance Landline: ${dataEntry.Ambulance.Fixed ? dataEntry.Ambulance.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}` + + `${dataEntry.Ambulance.All && dataEntry.Ambulance.All[0] != null && dataEntry.Ambulance.All[0] != '' ? `\nAmbulance: ${dataEntry.Ambulance.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` + + `${dataEntry.Ambulance.GSM || dataEntry.Ambulance.Fixed ? `\nAmbulance GSM: ${dataEntry.Ambulance.GSM ? dataEntry.Ambulance.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nAmbulance Landline: ${dataEntry.Ambulance.Fixed ? dataEntry.Ambulance.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}` + `${dataEntry.Police.All && dataEntry.Police.All[0] != null && dataEntry.Police.All[0] != '' ? `\nPolice: ${dataEntry.Police.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` + `${dataEntry.Police.GSM || dataEntry.Police.Fixed ? `\nPolice GSM: ${dataEntry.Police.GSM ? dataEntry.Police.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nPolice Landline: ${dataEntry.Police.Fixed ? dataEntry.Police.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}` + `${dataEntry.Fire.All && dataEntry.Fire.All[0] != null && dataEntry.Fire.All[0] != '' ? `\nFire: ${dataEntry.Fire.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` + `${dataEntry.Fire.GSM || dataEntry.Fire.Fixed ? `\nFire GSM: ${dataEntry.Fire.GSM ? dataEntry.Fire.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nFire Landline: ${dataEntry.Fire.Fixed ? dataEntry.Fire.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}` + `${dataEntry.Dispatch.All && dataEntry.Dispatch.All[0] != null && dataEntry.Dispatch.All[0] != '' && dataEntry.Dispatch.All[0].length > 0 ? `\nGeneral Dispatch: ${dataEntry.Dispatch.All.map((num: string) => `\`${num}\``).join(', ')}` : ''}` - + `${dataEntry.Dispatch.GSM || dataEntry.Dispatch.Fixed ? `\nDispatch GSM: ${dataEntry.Dispatch.GSM ? dataEntry.Dispatch.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nDispatch Landline: ${dataEntry.Dispatch.Fixed ? dataEntry.Dispatch.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}`; + + `${dataEntry.Dispatch.GSM || dataEntry.Dispatch.Fixed ? `\nDispatch GSM: ${dataEntry.Dispatch.GSM ? dataEntry.Dispatch.GSM.map((num: string) => `\`${num}\``).join(', ') : ''}\nDispatch Landline: ${dataEntry.Dispatch.Fixed ? dataEntry.Dispatch.Fixed.map((num: string) => `\`${num}\``).join(', ') : ''}` : ''}` + + `${dataEntry.Member_112 ? `\nDispatch Alias: \`112\` ` : ''}`; valueStr = valueStr.substring(0, 1024); // trim for discord if (!valueStr.trim()) { - if (dataEntry.Member_112 === true) { - valueStr = '`112` Standard Compliant. Use `112`'; - } else { valueStr = 'No data available'; - } + } return { name: `**${dataEntry.Country.Name.substring(0, 256)}**`, // Limit name length @@ -45,8 +43,8 @@ export const emsCommand : SlashCommand = { }; }); const embed = embedTemplate().setFields(fields).setTitle(`EMS Numbers for countries matching: ${interaction.options.getString('country_search') || ''}`)/* .setDescription('\n**DONT HESITATE TO CALL EMS IF YOU OR SOMEONE YOU KNOW IS IN DANGER**') */; - if (data.length > 25) { - embed.setFooter({ text: 'Results clipped (25 Max). Narrow your search! • Dose Responsibly' }); + if (data.length > 24) { + embed.setFooter({ text: 'Results clipped (24 Max). Narrow your search! • Dose Responsibly' }); } await interaction.editReply({ embeds: [embed] }); return true;