Twitch Chatbot Javascript Sample

Here you find a simple Javascript chatbot that can help demonstrate how to interact with chat on Twitch. The project structure section will give you a quick overview of this code.

Structure

index.html Provides the user interface for the leaderboard and calls into the chatClient to connect to Twitch chat.

chatbot.js Provides all of the inner workings for the chat bot including connecting, sending user credentials, and joining the correct channel. The leaderboard rendering code is also inside of this file.

leaderboard.css Makes the leaderboard look...better than an unformatted table. Kappa.

License

Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with the License. A copy of the License is located at

http://aws.amazon.com/apache2.0/

or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.