Phaslack

Description

A tiny Slack client.

Details

Source
GitHub
Dialect
pharo (40% confidence)
License
MIT
Stars
5
Forks
3
Created
Oct. 19, 2017
Updated
June 28, 2024
Topics
pharo slack smalltalk

README excerpt

# Phaslack
A tiny Slack client for Pharo Smalltalk.

## Supported Smalltalk Version

Pharo Smalltalk 5.x - 12.x

## Installation

```smalltalk
Metacello new
    baseline: 'Phaslack';
    repository: 'github://kaminami/Phaslack/repository';
    load.
```

Local Reporsitory

```smalltalk
| pathToPackageDirectory |
"edit to match the path to your chosen package directory"
pathToPackageDirectory := './repository/' asFileReference asAbsolute fullName.
Metacello new
  baseline: 'Phaslack';
  repository: 'filetree://', pathToPackageDirectory;
  load.
```

# Examples

```smalltalk
| user token client |
user := 'phaslackbot'.
token := 'your_token'. 
"Test token generator: https://api.slack.com/docs/oauth-test-tokens"

client := PSlackClient user: user token: token.
client
    chatPostMessage: (thisContext printString , ' --> ' , DateAndTime now asString)
    channel: 'test'
```
← Back to results