Twitchat

Twitchat

增强Twitch直播互动的高级聊天管理工具

Twitchat是一款为Twitch直播设计的高级聊天管理工具,旨在弥补官方聊天功能的不足。它提供紧急按钮、自定义触发器、语音控制、文字转语音等功能,支持Stream Deck插件,可控制OBS和Spotify,创建投票和预测,管理抽奖活动。Twitchat致力于优化聊天室管理,增强主播与观众的互动体验,是提升Twitch直播质量的有力工具。

TwitchatTwitch直播聊天工具开发者Github开源项目
<div align="center"> <img src="https://shields.io/badge/vue-3-42b883?logo=Vue.js&labelColor=ffffff"> <img src="https://shields.io/badge/typescript-%3E=%204.5.4-3178c6?logo=TypeScript&labelColor=ffffff"> <img src="https://shields.io/badge/node-%3E=%2018.2.0-026e00?logo=node.js&labelColor=ffffff"> <img src="https://shields.io/badge/less-1d365d?logo=less&labelColor=ffffff&logoColor=000000"> <br> <br> <br> <br> </div> <div align="center"> <a href="https://twitchat.fr" target="_blank"> <img width="400" alt="twitchat" src="https://raw.githubusercontent.com/Durss/Twitchat/main/src_front/assets/logo.svg"> </a> <br> <br> - <a href="https://twitchat.fr" target="_blank">twitchat.fr</a> - <br> - <a href="https://discord.gg/fmqD2xUYvP" target="_blank">Join discord</a> - </div> <br> <br> A custom twitch chat that aims to fill gaps in the official Twitch chat for streamers. <br> The main goal is to follow your chat as best as possible. <br> <br>

For developpers, Twitchat exposes an API to receive events and control some features remotely.
📖 Read its documentation. <br> <br> <br>

Features

  • Enable an emergency button with custom actions to prevent from follow bots and doxxing
  • Create your own sub/follow/rewards/poll/... alerts and chat commands with the Trigger system that allows to control your OBS sources and filters as well as Spotify when an event occurs
  • Control Twitchat and create polls or predictions with your voice
  • Read your messages and alerts out loud thank to the include text-to-speech
  • Pin messages and find them back later
  • Display the first message of users seperatly so you don't forget to greet them
  • Show any message of your chat on your stream with a single click
  • Stream Deck™ plugin
  • Custom spoiler feature so viewers can hide message contents to the streamer
  • Alert command to make Twitchat shake, blink, emit sound and display a message over everything else
  • Edit your stream's info from Twitchat with possibility to create pressets
  • Create a timer or a countdown with a simple command and show it on your stream
  • Control spotify from chat commands (create your own song request system) and show currently playing track on your stream
  • Make it easier to follow a conversation between users
  • Remember where you stopped reading the chat by clicking any message
  • Track a user to make sure not to miss their messages
  • Create a raffle and pick random winners. An overlay is available to display a wheel that selects a winner.
  • Create a bingo in which users have to find a number or an emoji
  • Ask your viewers for suggestions with a dedicated command
  • See if a user is not following the channel
  • Display received whispers and answer them
  • Filter some messages (bots, commands, self, /me, etc...)
  • Customize messages display (remove badges, show minimalist badges, remove emotes)
  • Customize messages appearance by roles (viewers, mods, vips, subs)
  • Moderate messages (ban, timeout, delete message)
  • Allow/deny messages blocked by automod
  • Display when it's the first message ever of a user on the channel
  • Display mod notifications on chat (ex: "User XXX has been banned by YYY")
  • Display sub/bits/raid/reward/follow notifications
  • Display hype train status
  • Show the last stream info of a raider
  • Integrated activity feed to see subs/cheers/follows/raids/rewards history
  • Create/Delete polls
  • Create/Delete predictions
  • Emote selector
  • BTTV, FFZ and 7TV emotes supported
  • Message autocomplete nickname via "@", emotes via ":", commands via "/" or all via TAB key
  • Allow to search on all messages via command /search
  • Split view in half with chat on left and notifications/activity feed, new viewers, etc.. on the right
  • Filter out only specific commands
  • See live viewers count
  • Keep or remove deleted messages
  • See all your followings that are live to raid them easily
  • Supports boost trains
  • Supports /announce message feature
  • Allow your mods to control your OBS scenes or mute/unmute your mic from chat
  • Expose an API to control some stuff remotely
  • Chat suggestion feature: allow your viewers to give suggestions with a dedicated command and randomly pick one of them
  • Handles "low trust" feature (more info)
  • And many other things.... <br>
<br> <br> <br>

Project setup

Rename the credentials.default.json file within the credentials folder to credentials.json and fill in these values :

{ "server_port": 3018, "admin_ids": ["YOUR_TWITCH_USER_ID"], "csrf_key": "", "twitch_client_id": "", "twitch_client_secret": "", "twitch_redirect_uri": "http://localhost:8080/oauth", "twitch_scopes": [ "chat:read", "chat:edit", "moderator:manage:announcements", "moderator:manage:chat_messages", "moderator:manage:shoutouts", "whispers:read", "user:manage:whispers", "moderator:read:chatters", "channel:read:redemptions", "channel:manage:redemptions", "channel:manage:polls", "channel:manage:predictions", "moderator:manage:chat_settings", "channel:moderate", "moderation:read", "channel:manage:moderators", "channel:manage:vips", "channel:manage:raids", "channel:manage:broadcast", "channel:read:hype_train", "channel:edit:commercial", "channel:read:subscriptions", "user:read:emotes", "user:read:follows", "moderator:read:followers", "user:read:moderated_channels", "user:read:blocked_users", "user:manage:blocked_users", "user:edit:broadcast", "moderator:manage:banned_users", "moderator:manage:automod", "moderator:manage:shield_mode", "moderator:manage:unban_requests", "clips:edit", "channel:read:ads", "channel:manage:ads", "moderator:manage:blocked_terms" ], "spotify_client_id": "", "spotify_client_secret": "", "spotify_scopes": "user-read-currently-playing user-modify-playback-state playlist-read-private playlist-modify-public playlist-modify-private", "spotify_redirect_uri": "http://localhost:8080/spotify/auth", "patreon_client_id": "", "patreon_client_secret": "", "patreon_scopes": "identity identity.memberships", "patreon_redirect_uri": "http://localhost:8080/patreon/auth", "patreon_client_id_server": "", "patreon_client_secret_server": "", "patreon_redirect_uri_server": "http://localhost:3018/api/patreon/serverauth", "patreon_webhook_secret": "", "tenor_secret": "", "youtube_key": "path/to/key.json", "youtube_scopes": ["https://www.googleapis.com/auth/youtube.readonly", "https://www.googleapis.com/auth/youtube.force-ssl"], "google_key": "path/to/key.json", "paypal_client_id":"", "paypal_client_secret":"", "donors_remote_api_secret": "", "contact_mail": "", "discord_client_id":"", "discord_public_key":"", "discord_bot_token":"", "streamlabs_client_id":"", "streamlabs_client_secret":"", "streamlabs_redirect_uri":"", "streamelements_client_id":"", "streamelements_client_secret":"" }

Create a twitch application and fill in the client_id and client_secret values.
Write anything you want in the csrf_key field, it will be used to secure twitch authentication from CSRF attacks.
Configure the redirect URI of the twitch application to:\

http://localhost:8080/oauth

(adapt with the proper port and domain if deploying online)
Set the same value to the redirect_uri property of the credentials.json file.\

You can also create a spotify application and fill in the spotify spotify_client_id and spotify_client_secret <br> By default the server listens on port 3018, you can change it on credentials.json and src_front/utils/Config.ts.

<br> <br> <br>

Environment setup

This project has been coded with VSCode.
It is recommended to install these plugins:
TypeScript Vue Plugin: https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin

I18n-ally Plugin: https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally

<br> <br> <br>

Compile project

Install dependencies

npm install

Compiles and hot-reloads for development

npm run dev

Compiles and minifies for production

npm run build

Run server

node server/boostrap.js
<br> <br> <br>

Install server

All the following MUST be done on a seperate folder from the GIT project.
Compile the project and push the content of the server folder on your server root.
Next to this file, create a public folder and push the content of your local dist folder inside it.
Also add the credentials folder inside a data older at the root of the project.
Create an env.conf file, just write prod inside, and push it at the root of the project.
Install all the production dependencies and run the server.
Here is the expected file structure:
─ root
  ├─ node_modules/
  ├─ public/
  ├─ utils/
  ├─ data/
    ├─ credentials/
  ├─ controllers/
  ├─ bootstrap.js
  ├─ env.conf
<br> <br> <br>

Localization

Adding new language

Just create a new folder under the i18n folder with the ISO 639-1 code of the language.
Read the next section to know how to translate labels

Translating labels

To make localization as easy as possible, a dedicated interface has been made that lists all available categories and labels with the possibility to edit them.
Any update on this interface triggers a rebuild of the compiled file as well as an update on any twitchat page opened on the same browser.

The interface is only accessible to adminitrators and can be found here:
localhost:8080/labels
To get admin rights you must set your twitch user ID under the admin_ids array in the credentials.json file.\

Adding new labels

If you need to add new labels, you'll have to edit JSON sources.
All label files can be found under i18n folder.
They are splitted by language then by sections.
Any new file or folder structure can be added to this.
These are all merged into static/labels.json during the build process.

Files can have any name but all labels within it must be under a single property that will be the base path to use the label. The property name is usually the same as the file's name.
Example:

─ en\
  ├─ global.json\
  ├─ home.json/\
  ├─ triggers.json/\

global.json example:

{ "global":{ "hello":"World" } }

home.json example:

{ "home":{ "lorem":"ipsum dolor sit amet" } }

This will output this JSON file:

{ "en":{ "global":{ "hello":"World" }, "hello":{ "lorem":"ipsum dolor sit amet" } } }
<br> <br> <br>

Package Stream Deck™ plugin

Run the following command:

npm run streamdeck_package

The compiled plugin will be there

编辑推荐精选

讯飞智文

讯飞智文

一键生成PPT和Word,让学习生活更轻松

讯飞智文是一个利用 AI 技术的项目,能够帮助用户生成 PPT 以及各类文档。无论是商业领域的市场分析报告、年度目标制定,还是学生群体的职业生涯规划、实习避坑指南,亦或是活动策划、旅游攻略等内容,它都能提供支持,帮助用户精准表达,轻松呈现各种信息。

AI办公办公工具AI工具讯飞智文AI在线生成PPTAI撰写助手多语种文档生成AI自动配图热门
讯飞星火

讯飞星火

深度推理能力全新升级,全面对标OpenAI o1

科大讯飞的星火大模型,支持语言理解、知识问答和文本创作等多功能,适用于多种文件和业务场景,提升办公和日常生活的效率。讯飞星火是一个提供丰富智能服务的平台,涵盖科技资讯、图像创作、写作辅助、编程解答、科研文献解读等功能,能为不同需求的用户提供便捷高效的帮助,助力用户轻松获取信息、解决问题,满足多样化使用场景。

热门AI开发模型训练AI工具讯飞星火大模型智能问答内容创作多语种支持智慧生活
Spark-TTS

Spark-TTS

一种基于大语言模型的高效单流解耦语音令牌文本到语音合成模型

Spark-TTS 是一个基于 PyTorch 的开源文本到语音合成项目,由多个知名机构联合参与。该项目提供了高效的 LLM(大语言模型)驱动的语音合成方案,支持语音克隆和语音创建功能,可通过命令行界面(CLI)和 Web UI 两种方式使用。用户可以根据需求调整语音的性别、音高、速度等参数,生成高质量的语音。该项目适用于多种场景,如有声读物制作、智能语音助手开发等。

Trae

Trae

字节跳动发布的AI编程神器IDE

Trae是一种自适应的集成开发环境(IDE),通过自动化和多元协作改变开发流程。利用Trae,团队能够更快速、精确地编写和部署代码,从而提高编程效率和项目交付速度。Trae具备上下文感知和代码自动完成功能,是提升开发效率的理想工具。

AI工具TraeAI IDE协作生产力转型热门
咔片PPT

咔片PPT

AI助力,做PPT更简单!

咔片是一款轻量化在线演示设计工具,借助 AI 技术,实现从内容生成到智能设计的一站式 PPT 制作服务。支持多种文档格式导入生成 PPT,提供海量模板、智能美化、素材替换等功能,适用于销售、教师、学生等各类人群,能高效制作出高品质 PPT,满足不同场景演示需求。

讯飞绘文

讯飞绘文

选题、配图、成文,一站式创作,让内容运营更高效

讯飞绘文,一个AI集成平台,支持写作、选题、配图、排版和发布。高效生成适用于各类媒体的定制内容,加速品牌传播,提升内容营销效果。

热门AI辅助写作AI工具讯飞绘文内容运营AI创作个性化文章多平台分发AI助手
材料星

材料星

专业的AI公文写作平台,公文写作神器

AI 材料星,专业的 AI 公文写作辅助平台,为体制内工作人员提供高效的公文写作解决方案。拥有海量公文文库、9 大核心 AI 功能,支持 30 + 文稿类型生成,助力快速完成领导讲话、工作总结、述职报告等材料,提升办公效率,是体制打工人的得力写作神器。

openai-agents-python

openai-agents-python

OpenAI Agents SDK,助力开发者便捷使用 OpenAI 相关功能。

openai-agents-python 是 OpenAI 推出的一款强大 Python SDK,它为开发者提供了与 OpenAI 模型交互的高效工具,支持工具调用、结果处理、追踪等功能,涵盖多种应用场景,如研究助手、财务研究等,能显著提升开发效率,让开发者更轻松地利用 OpenAI 的技术优势。

Hunyuan3D-2

Hunyuan3D-2

高分辨率纹理 3D 资产生成

Hunyuan3D-2 是腾讯开发的用于 3D 资产生成的强大工具,支持从文本描述、单张图片或多视角图片生成 3D 模型,具备快速形状生成能力,可生成带纹理的高质量 3D 模型,适用于多个领域,为 3D 创作提供了高效解决方案。

3FS

3FS

一个具备存储、管理和客户端操作等多种功能的分布式文件系统相关项目。

3FS 是一个功能强大的分布式文件系统项目,涵盖了存储引擎、元数据管理、客户端工具等多个模块。它支持多种文件操作,如创建文件和目录、设置布局等,同时具备高效的事件循环、节点选择和协程池管理等特性。适用于需要大规模数据存储和管理的场景,能够提高系统的性能和可靠性,是分布式存储领域的优质解决方案。

下拉加载更多