Custom slash command to use info.io to get IP information inside of Slack
- A custom slash command on a Slack team
- A web server running PHP5 with cURL enabled
- A valid SSL certificate for your web server (use https://letsencrypt.org/)
- Place the
ipinfo.php
script on a server running PHP5 with cURL and a valid SSL certificate. - Set up a new custom slash command on your Slack team: https://slack.com/apps/A0F82E8CA-slash-commands
- Under "Choose a command", enter whatever you want for the command. /ipinfo is easy to remember.
- Under "URL", enter the URL for the script on your server.
- Leave "Method" set to "Post".
- Decide whether you want this command to show in the autocomplete list for slash commands.
- If you do, enter a short description and usage hint.
- Update the
ipinfo.php
script with your slash command's token.
This is built off of the work of isitup-for-slack. Check out their stuff: https://github.com/mccreath/isitup-for-slack/
Programing might be science; but that's not what I do. I'm a hacker, not a programmer.