<commit_before># SaltBot
[![Build Status](https://travis-ci.org/Jacobinski/SaltBot.svg?branch=master)](https://travis-ci.org/Jacobinski/SaltBot)

An automatic betting program for www.saltybet.com

## Usage
### Authentication
Create a file named **.env** in the same directory as login.py. Add your SaltyBet account's username and password to it in the following manner.
```
# Example Login Information for SaltBot
EMAIL = "<EMAIL>"
PASSWORD = "<PASSWORD>"
```
### Python Setup
This bot is programmed in Python 2.7, so it must be installed on your machine. Check to make sure it is installed.
```bash
$ python --version
Python 2.7.13
```
Use pip to install the requirements.txt
```bash
$ pip install -r requirements.txt
```
### Running the Bot
The current state of the bot is to place $500 on Red each round. To run the command, invoke the following command from the console.
```bash
$ python main.py
```<commit_msg>Update README.md for Python3<commit_after># SaltBot
[![Build Status](https://travis-ci.org/Jacobinski/SaltBot.svg?branch=master)](https://travis-ci.org/Jacobinski/SaltBot)

An automatic betting program for www.saltybet.com

## Usage
### Authentication
The user's email and password must be set as environment variables in order for Saltbot to use the account. This can be done from command line.
```bash
$ export SALTBOT_EMAIL = "<EMAIL>"
$ export SALTBOT_PASSWORD = "<PASSWORD>"
```
### Database Setup
Saltbot currently only supports Heroku Postgresql databases. These can be obtained through **data.heroku.com**, and the provided DATABASE_URL from Heroku serves as the environment variable.
```bash
$ export SALTBOT_DATABASE_URL = "postgres://USER:PASSWORD@HOST:PORT/DATABASE
```
### Python Setup
This bot is programmed in Python 3.6, so it must be installed on your machine. Check to make sure it is installed.
```bash
$ python --version
Python 3.6.0
```
Use pip3 to install the requirements.txt
```bash
$ pip3 install -r requirements.txt
```
### Running the Bot
The current state of the bot is to place $500 on Red each round. To run the command, invoke the following command from the console.
```bash
$ python3 main.py
```
{'fraction_non_alphanumeric': 0.11017740429505135, 'fraction_numerical': 0.00980392156862745, 'mean_word_length': 4.760752688172043, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 4, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '437399', 'n_tokens_mistral': 671, 'n_tokens_neox': 612, 'n_words': 265}