## Tools.slackify.Slackify


Send messages or milestones to a slack channel.


Usage

``` python
Tools.slackify.Slackify(
    slackconfig="slackconfig.cfg",
    cfg=True,
)
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) | Configure Slackify. |
| [list_channels()](#list_channels) | List all channels for your slack organization. |
| [list_users()](#list_users) | List all users for your slack organization. |
| [log2slack()](#log2slack) | Send a formatted text string to slack similar to logging. |
| [send_msg()](#send_msg) | Post a message to slack channel. |
| [upload_file()](#upload_file) | Upload files (text/pdf/docx/log/image) to a slack channel. |

------------------------------------------------------------------------


#### \_\_init\_\_()


Configure Slackify.


Usage

``` python
__init__(slackconfig="slackconfig.cfg", cfg=True)
```


##### Parameters


`slackconfig=``"slackconfig.cfg"`  
Path to config file.

`cfg=``True`  
Flag that is default True.


------------------------------------------------------------------------


#### list_channels()


List all channels for your slack organization.


Usage

``` python
list_channels()
```


------------------------------------------------------------------------


#### list_users()


List all users for your slack organization.


Usage

``` python
list_users()
```


------------------------------------------------------------------------


#### log2slack()


Send a formatted text string to slack similar to logging.


Usage

``` python
log2slack()
```


------------------------------------------------------------------------


#### send_msg()


Post a message to slack channel.


Usage

``` python
send_msg(channel, message)
```


Send a message to a user using \<<span class="citation" data-cites="username">@username</span>\>


##### Parameters


`channel`  
Name of the channel to send a message to.

`message`  
Message to send to a channel.


------------------------------------------------------------------------


#### upload_file()


Upload files (text/pdf/docx/log/image) to a slack channel.


Usage

``` python
upload_file(file, channel)
```


##### Parameters


`file`  
Path to a file to upload.

`channel`  
Name of the channel to upload the file to.
