Skip to content

Commit

Permalink
Bump version to v1.3.0
Browse files Browse the repository at this point in the history
- Replace channels.list API with conversation.list API.
  • Loading branch information
clvs7-gh committed Sep 7, 2020
1 parent 5049f74 commit 58c6c25
Show file tree
Hide file tree
Showing 9 changed files with 2,291 additions and 902 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run-basic-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '13', '12', '11', '10' ]
node: [ '14' '13', '12', '11', '10' ]
steps:
- uses: actions/checkout@v1
- name: Setup node
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_js:
- "11"
- "12"
- "13"
- "14"
before_script:
- npm i
script:
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile.example
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ RUN set -x && \
cd rec0bot/plugins/sindoi && \
# Build sindoi plugin
npm i && npm run build && \
rm -rf node_modules && npm i --production && \
npm prune --production && \
cd ../../ && \
# Build core
npm i && npm run build && \
rm -rf node_modules && npm i --production
npm prune --production

WORKDIR /app/rec0bot

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ A bot for Slack workspace. Works on Node.js.

Node.js >= v10. Not tested on other versions.

**Note : Currently Rec0-bot doesn't support Slack's new Events API. It requires HTTP access from internet (why do I need http server for just a bot?), so I'm not willing to support it for now.**

## How to use

Run `npm start` to start bot.
Expand Down
3,152 changes: 2,269 additions & 883 deletions package-lock.json

Large diffs are not rendered by default.

26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rec0-bot",
"version": "1.2.10",
"version": "1.3.0",
"description": "A bot for revolution of comm :)",
"main": "index.js",
"scripts": {
Expand All @@ -14,22 +14,22 @@
"author": "",
"license": "Apache-2.0",
"dependencies": {
"@slack/rtm-api": "^5.0.3",
"@slack/web-api": "^5.0.3",
"@slack/rtm-api": "^5.0.5",
"@slack/web-api": "^5.11.0",
"cron": "^1.8.2",
"lodash": "^4.17.19",
"log4js": "^6.2.0"
"lodash": "^4.17.20",
"log4js": "^6.3.0"
},
"devDependencies": {
"@types/cron": "^1.7.2",
"@types/jest": "^25.2.1",
"@types/lodash": "^4.14.149",
"@types/node": "^13.9.1",
"jest": "^25.3.0",
"ts-jest": "^25.3.1",
"tslint": "^6.1.0",
"ts-node": "^8.8.2",
"typescript": "^3.8.3"
"@types/jest": "^26.0.13",
"@types/lodash": "^4.14.161",
"@types/node": "^14.6.4",
"jest": "^26.4.2",
"ts-jest": "^26.3.0",
"tslint": "^6.1.3",
"ts-node": "^9.0.0",
"typescript": "^4.0.2"
},
"jest": {
"moduleFileExtensions": [
Expand Down
2 changes: 1 addition & 1 deletion src/environment/environment.dev.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as path from 'path';
import { Environment } from '../interface/environment.interface';

export const environmentDev: Environment = {
version: '1.2.10',
version: '1.3.0',
isProduction: false,
slack: {
token: (process.env.REC0_ENV_SLACK_TOKEN || '').trim(),
Expand Down
2 changes: 1 addition & 1 deletion src/environment/environment.prod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as path from 'path';
import { Environment } from '../interface/environment.interface';

export const environmentProd: Environment = {
version: '1.2.10',
version: '1.3.0',
isProduction: true,
slack: {
token: (process.env.REC0_ENV_SLACK_TOKEN || '').trim(),
Expand Down
2 changes: 1 addition & 1 deletion src/service/connector/slack-connector.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class SlackConnectorService extends EventEmitter implements Connector {
async getChannelList(): Promise<any[]> {
await this.waitForOnline();
// @ts-ignore
return (await this.webClient.channels.list()).channels || [];
return (await this.webClient.conversations.list()).channels || [];
}

async getChannelId(channelName: string): Promise<string> {
Expand Down

0 comments on commit 58c6c25

Please sign in to comment.