refactor: rename to openclaw

This commit is contained in:
Peter Steinberger
2026-01-30 03:15:10 +01:00
parent 4583f88626
commit 9a7160786a
2357 changed files with 16688 additions and 16788 deletions

View File

@@ -1,6 +1,6 @@
import { RefreshingAuthProvider, StaticAuthProvider } from "@twurple/auth";
import { ChatClient, LogLevel } from "@twurple/chat";
import type { MoltbotConfig } from "clawdbot/plugin-sdk";
import type { OpenClawConfig } from "openclaw/plugin-sdk";
import type { ChannelLogSink, TwitchAccountConfig, TwitchChatMessage } from "./types.js";
import { resolveTwitchToken } from "./token.js";
import { normalizeToken } from "./utils/twitch.js";
@@ -76,7 +76,7 @@ export class TwitchClientManager {
*/
async getClient(
account: TwitchAccountConfig,
cfg?: MoltbotConfig,
cfg?: OpenClawConfig,
accountId?: string,
): Promise<ChatClient> {
const key = this.getAccountKey(account);
@@ -92,7 +92,7 @@ export class TwitchClientManager {
if (!tokenResolution.token) {
this.logger.error(
`Missing Twitch token for account ${account.username} (set channels.twitch.accounts.${account.username}.token or CLAWDBOT_TWITCH_ACCESS_TOKEN for default)`,
`Missing Twitch token for account ${account.username} (set channels.twitch.accounts.${account.username}.token or OPENCLAW_TWITCH_ACCESS_TOKEN for default)`,
);
throw new Error("Missing Twitch token");
}
@@ -236,7 +236,7 @@ export class TwitchClientManager {
account: TwitchAccountConfig,
channel: string,
message: string,
cfg?: MoltbotConfig,
cfg?: OpenClawConfig,
accountId?: string,
): Promise<{ ok: boolean; error?: string; messageId?: string }> {
try {