<commit_before># The Ticketmaster API Slack Bot


## Setup and Installation

Before you're able to use the bot, you'll need to set up an envinronment variable with your Slack API Token:

```bashp
export SLACK_API_TOKEN=api-token
```

Also, make sure you store this variable in `/etc/environments`

If you're using Heroku, set your variable there as well:

```bashp
heroku config:set SLACK_API_TOKEN="api-token"
```

Download the codebase and install all dependencies

```bashp
npm install
```

Start the bot!

```bashp
npm start
```
<commit_msg>updating the README.md file<commit_after># 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](https://api.slack.com/bot-users) 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:

```bashp
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:

```bashp
vi .env
SLACK_API_TOKEN={your Slack API token}
TICKETMASTER_API_KEY={you Ticketmaster API Key}
```

Now you can run the bot!

```bashp
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](http://developer.ticketmaster.com/products-and-docs/apis/discovery/v2/#supported-sources).

```
\ count frontgate
```

Total number of events sourced by Ticketmaster for Canada and Mexico. Here's all [available sources](http://developer.ticketmaster.com/products-and-docs/apis/discovery/v2/#supported-sources) and [countries](http://developer.ticketmaster.com/products-and-docs/apis/discovery/v2/#supported-country-codes).

```
\ 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.
{'fraction_non_alphanumeric': 0.09970887918486172, 'fraction_numerical': 0.01564774381368268, 'mean_word_length': 4.57606490872211, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7068508', 'n_tokens_mistral': 929, 'n_tokens_neox': 836, 'n_words': 332}