mirror of
https://github.com/qwerinope/qweribot.git
synced 2025-12-19 08:41:39 +01:00
fixes, alerts/chatwidget websocket error handling, make chatterbot have the new bot badge
This commit is contained in:
@@ -42,9 +42,9 @@ for (const [name, item] of Array.from(items)) {
|
||||
export default commands;
|
||||
export { basecommands };
|
||||
|
||||
import { singleUserMode, chatterApi, chatterId, streamerId } from "main";
|
||||
import { chatterApi, chatterId, streamerId } from "main";
|
||||
|
||||
/** Helper function to send a message to the stream */
|
||||
export const sendMessage = async (message: string, replyParentMessageId?: string) => {
|
||||
singleUserMode ? await chatterApi.chat.sendChatMessage(streamerId, message, { replyParentMessageId }) : chatterApi.asUser(chatterId, async newapi => newapi.chat.sendChatMessage(streamerId, message, { replyParentMessageId }));
|
||||
await chatterApi.chat.sendChatMessageAsApp(chatterId, streamerId, message, { replyParentMessageId })
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user