Code Monkey home page Code Monkey logo

tm-slack-bot's Introduction

The Ticketmaster API Slack Bot

Setup and Installation

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

Usage

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:

Getting help

\

OR

\ help

Getting total amounts

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

Getting event details

Get event details for event ID vvG10Zf5X_03A9.

\ get event vvG10Zf5X_03A9

Get event details for event source ID 090050BF99912157.

\ get:source event 090050BF99912157

Sarching by keyword

Search for Adele events

\ search event Adele

License

MIT License; see LICENSE for further details.

tm-slack-bot's People

Contributors

ielshareef avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.