-
Notifications
You must be signed in to change notification settings - Fork 12
JATaber twitch notification #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
brennondenny
merged 19 commits into
reactivepixel:Release2
from
JATaber:JATaber_twitch_notification
May 21, 2018
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
9faaa0a
hopefully this goes to the correct spot this time
a60894e
setting up feature
71601c0
added a controller for the twitch Notifier
05c8d60
working on the controller for the adding of the streamer
be7ac2a
working on controller and found spelling error in another controller
5c0996b
stopped to get Client_ID from twitch
920bdaa
changing from automated to manual
2e06256
changing some variables around
a8227dc
finishing up command
88dd7aa
bot command printing to proper channel
245b8a0
fixed some wording for the announcement message
9a150aa
fixed channel Id to the Armada twitch challenel ID
b6d4633
making the channel finder more dynamic
637e0c3
removing previous feature from the project
f814132
removing previous feature from the project
9faa088
refactored a file name and made it to where a user can stream from tw…
fe2f51d
fixed a lint error
cddda06
Merge branch 'Release2' into JATaber_twitch_notification
7c7850c
Update roles.js
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next
Next commit
hopefully this goes to the correct spot this time
- Loading branch information
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| const BaseController = require('../baseController.js'); | ||
| const Command = require('../baseCommand.js'); | ||
|
|
||
| class TosController extends BaseController { | ||
| constructor(message) { | ||
| // Call BaseController constructor | ||
| super(message); | ||
| // Aliasing 'this' as controller to allow for binding in actions | ||
| const controller = this; | ||
| // Array of all commands, see baseCommand.js for prototype | ||
| this.commands = [ | ||
| new Command( | ||
| '!tos', | ||
| '!tos', | ||
| 'Resend Terms', | ||
| 'Send Terms Copy', | ||
| this.welcomeAction.bind(controller), | ||
| 'dm', | ||
| ), | ||
| ]; | ||
| } | ||
| // Sends the welcome message to the user | ||
| welcomeAction() { | ||
| const { message } = this; | ||
| return `Welcome ${message.author.username} to the server! Please read our Terms of Service. If you want to receive the terms again just type !tos`; | ||
| } | ||
| } | ||
| module.exports = TosController; |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove the old Welcome Feature, this should only include code for the live stream notification.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this I am removing it now