Before you're able to use the Ticketmaster API Slack Bot, you'll to set up a bot in your Slack. This will give you a Slack API Token, which you'll need in a bit.
To install the the bot, run the following:
npm install ticketmaster-slack-bot
cd node_modules/ticketmaster-slack-bot
Now you're in the root directory. You can copy the contents of this directory anywhere else you like. Before you can start using the bot, you'll need to define the following environment variables:
SLACK_API_TOKEN={your Slack API token} TICKETMASTER_API_KEY={you Ticketmaster API Key}
If you're running the bot locally, create a .env in the root directroy and the bot will automatically pick up the variables:
vi .env
SLACK_API_TOKEN={your Slack API token}
TICKETMASTER_API_KEY={you Ticketmaster API Key}
Now you can run the bot!
node index.js
You can communicate with the bot directly in Slack, or invite it into a channel. Here are a few things you can do with Slack:
\
OR
\ help
Total number of events in the entire Ticketmaster Marketplace!
\ count
Total number of events sourced by FrontGate Tickets. Here's all available sources.
\ count frontgate
Total number of events sourced by Ticketmaster for Canada and Mexico. Here's all available sources and countries.
\ count ticketmaster CA,MX
Get event details for event ID vvG10Zf5X_03A9.
\ get event vvG10Zf5X_03A9
Get event details for event source ID 090050BF99912157.
\ get:source event 090050BF99912157
Search for Adele events
\ search event Adele
MIT License; see LICENSE for further details.