Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
changing some variables around
  • Loading branch information
James Taber authored and James Taber committed May 17, 2018
commit 2e0625699bedd2f84014eaff3296bd45c0c74bef
7 changes: 3 additions & 4 deletions bot/controllers/twitchLive.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,15 @@ class StreamerLiveController extends BaseController {
'!twitchLive',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since your goal is to make the StreamerLiveController generic, consider changing the command too!live and add a service attribute, for example !live twitch myname mygame.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am going to implement this method making one command good for twitch or mixer

'!twitchLive <twitch_name>',
'Twitch Live',
'A quick easy way to ',
'A quick easy way to announce you are going live on Twitch.',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Grammar suggestion:

'A quick easy way...'
vs.
'A quick and easy way...'

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fixed the grammar issue.

this.addTwitchAction.bind(controller),
),
];
}
addTwitchAction() {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would naming this to something like "announceTwitchLive" be more appropriate?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider changing this to "streamerLiveAction" to better fit the overall functionality.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed the method name

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider changing this to "streamerLiveAction" to better fit the overall functionality.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed the method name.

const { message } = this;
const streamName = message.parsed[1];
const twitchClientID = '';
const nameList = {};
const twitchName = message.parsed[1];
const nameList = `https://www.twitch.tv/${twitchName}`;
}
}
module.exports = StreamerLiveController;