Skip to content

Commit

Permalink
Merge pull request #66 from ibmtjbot/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
jweisz authored Jan 19, 2021
2 parents 73802ae + 04c3776 commit 815e390
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions MIGRATING.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TJBotLib Migration Guide

## Migrating from 1.x to 2.x
There have been several significant changes to the 2.x release of TJBotLib that break compatability with the 1.x release. Please use this guide, the new [TJBot API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.0/), and the [updated recipes](https://github.com/ibmtjbot/tjbot/tree/master/recipes) in the `tjbot` repository, to help you migrate your recipes to the new 2.x API.
There have been several significant changes to the 2.x release of TJBotLib that break compatability with the 1.x release. Please use this guide, the new [TJBot API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.1/), and the [updated recipes](https://github.com/ibmtjbot/tjbot/tree/master/recipes) in the `tjbot` repository, to help you migrate your recipes to the new 2.x API.

### ES6 Module
TJBot is now packaged as an ES6 module, meaning it can be imported as follows:
Expand Down Expand Up @@ -62,4 +62,4 @@ There are a few new methods for translation, such as `tj.translatableLanguages()
There is a new configuration option, `TJBot.DEFAULT_CONFIG.shine.grbFormat`. If true, TJBot will send colors to the LED in GRB format; if false, TJBot will send colors to the LED in RGB format.

### Documentation enhancements
All TJBotLib code has been commented using JSDoc syntax. Please see the [API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.0/) for a complete documentation reference.
All TJBotLib code has been commented using JSDoc syntax. Please see the [API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.1/) for a complete documentation reference.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ The full list of capabilities can be accessed programatically via `TJBot.CAPABIL

## TJBot API

Please see [the API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.0/) for documentation of the TJBot API.
Please see [the API docs](https://ibmtjbot.github.io/docs/tjbot/2.0.1/) for documentation of the TJBot API.

> 💡 Please see the [Migration Guide](MIGRATING.md) for guidance on migrating your code to the latest version of the TJBot API.
Expand Down
7 changes: 4 additions & 3 deletions lib/tjbot.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class TJBot {
* TJBot library version
* @readonly
*/
static VERSION = 'v2.0.0';
static VERSION = 'v2.0.1';

/**
* TJBot capabilities
Expand Down Expand Up @@ -700,7 +700,7 @@ class TJBot {

try {
const body = await this._toneAnalyzer.tone(params);
winston.silly(`repsonse from _toneAnalyzer.tone(): ${body}`);
winston.silly(`response from _toneAnalyzer.tone(): ${body}`);
return body.result;
} catch (err) {
winston.error(`the ${TJBot.SERVICES.TONE_ANALYZER} service returned an error.`, err);
Expand Down Expand Up @@ -730,10 +730,11 @@ class TJBot {
// set up the session if needed
if (!this._assistantSessionId) {
try {
winston.silly(`creating assistant session, sessionId: ${this.configuration.converse.assistantId}`);
const body = await this._assistant.createSession({
assistantId: this.configuration.converse.assistantId,
});
winston.silly(`repsonse from _assistant.createSession(): ${body}`);
winston.silly(`response from _assistant.createSession(): ${body}`);

this._assistantSessionId = body.result.session_id;
} catch (err) {
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tjbot",
"version": "2.0.0",
"version": "2.0.1",
"description": "Node.js library for writing TJBot recipes",
"main": "index.js",
"type": "module",
Expand Down

0 comments on commit 815e390

Please sign in to comment.