Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
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
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export interface TwitchServiceConfig {
export { TwitchServiceClient } from "./twitchClient";

module.exports = (nodecg: NodeCG) => {
new TwitchService(nodecg, "twitch", __dirname, "../twitch-schema.json").register();
new TwitchService(nodecg, "twitch-chat", __dirname, "../twitch-schema.json").register();
};

class TwitchService extends ServiceBundle<TwitchServiceConfig, TwitchServiceClient> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nodecg-io-twitch",
"name": "nodecg-io-twitch-chat",
"version": "0.1.0",
"description": "Allows to connect to twitch with your account, send and receive messages and much more. It can be used to create Twitch-Bots.",
"homepage": "https://nodecg.io/samples/twitch",
Expand Down
4 changes: 2 additions & 2 deletions samples/twitch-chat/extension/index.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import { NodeCG } from "nodecg/types/server";
import { TwitchServiceClient } from "nodecg-io-twitch";
import { TwitchServiceClient } from "nodecg-io-twitch-chat";
import { requireService } from "nodecg-io-core/extension/serviceClientWrapper";

module.exports = function (nodecg: NodeCG) {
nodecg.log.info("Sample bundle for twitch started");

// Require the twitch service.
const twitch = requireService<TwitchServiceClient>(nodecg, "twitch");
const twitch = requireService<TwitchServiceClient>(nodecg, "twitch-chat");

// Hardcoded channels for testing purposes.
// Note that this does need a # before the channel name and is case-insensitive.
Expand Down
4 changes: 2 additions & 2 deletions samples/twitch-chat/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"nodecg": {
"compatibleRange": "^1.1.1",
"bundleDependencies": {
"nodecg-io-twitch": "^0.1.0"
"nodecg-io-twitch-chat": "^0.1.0"
}
},
"scripts": {
Expand All @@ -18,7 +18,7 @@
"@types/node": "^14.14.13",
"nodecg": "^1.7.4",
"nodecg-io-core": "^0.1.0",
"nodecg-io-twitch": "^0.1.0",
"nodecg-io-twitch-chat": "^0.1.0",
"typescript": "^4.1.3"
}
}