Skip to content
This repository was archived by the owner on Apr 13, 2025. It is now read-only.

Commit 2cc3bb6

Browse files
authored
Merge pull request #151 from codeoverflow-org/rename-twitch-chat
Rename twitch to twitch-chat
2 parents 00e8955 + 37cdb33 commit 2cc3bb6

File tree

7 files changed

+6
-6
lines changed

7 files changed

+6
-6
lines changed

nodecg-io-twitch/extension/index.ts renamed to nodecg-io-twitch-chat/extension/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export interface TwitchServiceConfig {
1010
export { TwitchServiceClient } from "./twitchClient";
1111

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

1616
class TwitchService extends ServiceBundle<TwitchServiceConfig, TwitchServiceClient> {

nodecg-io-twitch/package.json renamed to nodecg-io-twitch-chat/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "nodecg-io-twitch",
2+
"name": "nodecg-io-twitch-chat",
33
"version": "0.1.0",
44
"description": "Allows to connect to twitch with your account, send and receive messages and much more. It can be used to create Twitch-Bots.",
55
"homepage": "https://nodecg.io/samples/twitch",
File renamed without changes.
File renamed without changes.

samples/twitch-chat/extension/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { NodeCG } from "nodecg/types/server";
2-
import { TwitchServiceClient } from "nodecg-io-twitch";
2+
import { TwitchServiceClient } from "nodecg-io-twitch-chat";
33
import { requireService } from "nodecg-io-core/extension/serviceClientWrapper";
44

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

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

1111
// Hardcoded channels for testing purposes.
1212
// Note that this does need a # before the channel name and is case-insensitive.

samples/twitch-chat/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"nodecg": {
66
"compatibleRange": "^1.1.1",
77
"bundleDependencies": {
8-
"nodecg-io-twitch": "^0.1.0"
8+
"nodecg-io-twitch-chat": "^0.1.0"
99
}
1010
},
1111
"scripts": {
@@ -18,7 +18,7 @@
1818
"@types/node": "^14.14.13",
1919
"nodecg": "^1.7.4",
2020
"nodecg-io-core": "^0.1.0",
21-
"nodecg-io-twitch": "^0.1.0",
21+
"nodecg-io-twitch-chat": "^0.1.0",
2222
"typescript": "^4.1.3"
2323
}
2424
}

0 commit comments

Comments
 (0)