Skip to content

DimensionDev/XSpaceAutoJoinTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

安装

前置条件

  • Node.js 16+
  • npm
  1. 安装依赖
npm install
#
yarn install
  1. 初始化脚本
npm run setup

使用方法

  1. 第一次使用软件,请先运行start 打开浏览器,
  2. 登录twitter.com --> [设置--辅助功能、显示和语言] --> 语言 为简体中文,
  3. 设置chrome 麦克风权限/或 手动加入spaces,点击发言按钮,走一遍流程;

启动应用

npm start 

命令说明

应用程序支持以下命令:

  • start: 打开浏览器,打开 Twitter并自动登录
  • join xxx: 加入xxxx Space,xxx 最好是 房间人名,按spaces 列表顺序匹配
  • stopSay: 触发"停止说话"按钮点击事件
  • say: 触发"说话"按钮点击事件
  • exit: 关闭浏览器并退出程序

可以通过命令行直接输入,或通过HTTP API发送这些命令。

从远端接受命令执行程序【todo】

执行命令示例

curl -X POST http://localhost:3000/command \
  -H "Content-Type: application/json" \
  -d '{"command": "start"}'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published