Skip to content

文本处理命令

本页由 test/COMMANDS.txt 自动拆分生成。

共 40 组命令。

回显文本(/echo <string...>

bash
/echo <string...>
点击查看说明

回显文本。

Edge 翻译功能(/translate [content...=clipboard]

bash
/translate [content...=clipboard]
/translatecopy [content...=clipboard]
/translateto <lang> [content...=clipboard]
/translatetocopy <lang> [content...=clipboard]
/translateloop <times> [content...=clipboard]
/translateloopcopy <times> [content...=clipboard]
点击查看说明

Edge 翻译功能。translateto 可指定目标语言, translateloop 将会把文本按每一种语言轮流进行翻译,最后翻回原先的语言,共翻译 times 次。 如果结尾是copy,则会将结果复制到剪贴板。

opencc 离线翻译(/translateoffline <from> <to> [content...=clipboard]

bash
/translateoffline <from> <to> [content...=clipboard]
点击查看说明

opencc 离线翻译。 支持的语言缩写有:s简体中文,t繁体中文,hk香港,tw台湾繁体,jp日本汉字

生草机翻译(/memeizer [content...=clipboard]

bash
/memeizer [content...=clipboard]
点击查看说明

生草机翻译。相关设置请到生草机模块进行配置。

前者如果参数不填,则异步启动一个计算器(/calc [expr...]

bash
/calc [expr...]
/calculate <expr...>
/calccopy <expr...>
/getcalc <expr...>
点击查看说明

前者如果参数不填,则异步启动一个计算器。 否则,计算并输出数学表达式 expr 的值。支持四则运算、**乘方运算、三角函数、反三角函数、双曲三角函数、expr、sqrt、pow、random()、randint(a,b)、uniform(a,b) 注意这其实是调用 PowerShell 进行运算,并非客户端自身计算。

calculate 命令会输出转化后的PowerShell表达式并输出用时。 calccopy 命令如果成功,将会将结果写入剪贴板。 getcalc 命令如果成功,将会将结果以字符串形式写入it

从文本数据库获取文本(/textdatabase get <key>

bash
/textdatabase get <key>
/textdatabase query <key>
/textdatabase copy <key>
/textdatabase obtain <key>
/tdb get <key>
/tdb query <key>
/tdb copy <key>
/tdb obtain <key>
/pastebin get <key>
/pastebin query <key>
/pastebin copy <key>
/pastebin obtain <key>
点击查看说明

从文本数据库获取文本。key 为秘钥。其中 copy 会把结果存入剪贴板,obtain 会把结果存入 it 代词中。/pastebin 会使用某种客户端的算法加密你的key以减少冲突的可能性。

文本数据库中设置文本(/textdatabase set <key>

bash
/textdatabase set <key>
/textdatabase update <key>
/tdb set <key>
/tdb update <key>
/pastebin set <key>
/pastebin update <key>
点击查看说明

文本数据库中设置文本。key 为秘钥。/pastebin 会使用某种客户端的算法加密你的key以减少冲突的可能性。

文本数据库中清空文本(/textdatabase clear <key>

bash
/textdatabase clear <key>
/textdatabase delete <key>
/tdb clear <key>
/tdb delete <key>
/pastebin clear <key>
/pastebin delete <key>
点击查看说明

文本数据库中清空文本。key 为秘钥。/pastebin 会使用某种客户端的算法加密你的key以减少冲突的可能性。

根据内容生成二维码并打开(/qrcode [content...]

bash
/qrcode [content...]
点击查看说明

根据内容生成二维码并打开。如果不写参数,则读取剪贴板内容(必须是文本类型)。

为 it 赋值字符串(/string [content...]

bash
/string [content...]
点击查看说明

为 it 赋值字符串。

为 it 赋值字符串(/string2 [content...]

bash
/string2 [content...]
点击查看说明

为 it 赋值字符串。但会弹出一个高级输入框让你编辑。content 将作为输入框的初始内容。

为 it 赋值字符串(/string3 [content...]

bash
/string3 [content...]
点击查看说明

为 it 赋值字符串。但会弹出一个聊天框让你编辑。content 将作为输入框的初始内容。

复制字符串,但先弹出一个高级输入框让你编辑(/copystr [content...]

bash
/copystr [content...]
点击查看说明

复制字符串,但先弹出一个高级输入框让你编辑。content 作为输入框的初始内容。

字符串功能(/str <params...>

bash
/str <params...>
点击查看说明

字符串功能。params 为相关参数。

获取字符串长度与字符数(/str size [content=it...]

bash
/str size [content=it...]
点击查看说明

获取字符串长度与字符数。

字符串转小写(/str transform lower [content=it...]

bash
/str transform lower [content=it...]
点击查看说明

字符串转小写。

字符串转大写(/str transform upper [content=it...]

bash
/str transform upper [content=it...]
点击查看说明

字符串转大写。

字符串反转(/str transform reverse [content=it...]

bash
/str transform reverse [content=it...]
点击查看说明

字符串反转。注意基本单位为字符而不是字节。

交换字符串大小写(/str transform swapcase [content=it...]

bash
/str transform swapcase [content=it...]
点击查看说明

交换字符串大小写。

混写字符串大小写(/str transform annoycase [content=it...]

bash
/str transform annoycase [content=it...]
点击查看说明

混写字符串大小写。

移除子串(/str transform remove <substr> [content=it...]

bash
/str transform remove <substr> [content=it...]
点击查看说明

移除子串。

替换字符串(/str transform replace <old> <new> [content=it...]

bash
/str transform replace <old> <new> [content=it...]
点击查看说明

替换字符串。

分隔字符串(/str transform split <sep> [content=it...]

bash
/str transform split <sep> [content=it...]
点击查看说明

分隔字符串。

在字符串每个字符间添加字符(/str transform join <sep> [content=it...]

bash
/str transform join <sep> [content=it...]
点击查看说明

在字符串每个字符间添加字符。

删除字符串标点符号(/str transform delpunct [content=it...]

bash
/str transform delpunct [content=it...]
点击查看说明

删除字符串标点符号。

根据字符串标点符号换行(/str transform punctcutline [content=it...]

bash
/str transform punctcutline [content=it...]
点击查看说明

根据字符串标点符号换行。

将字符串的标点符号全部改为英文标点(/str transform toengpunct [content=it...]

bash
/str transform toengpunct [content=it...]
点击查看说明

将字符串的标点符号全部改为英文标点。

将字符串的标点符号全部改为中文标点(/str transform tochnpunct [content=it...]

bash
/str transform tochnpunct [content=it...]
点击查看说明

将字符串的标点符号全部改为中文标点。

使用 mode 模式混淆字符串(/str transform obfuscate <mode> [content=it...]

bash
/str transform obfuscate <mode> [content=it...]
点击查看说明

使用 mode 模式混淆字符串。

添加双引号(/str transform quote [content=it...]

bash
/str transform quote [content=it...]
点击查看说明

添加双引号。

移除首尾双引号(/str transform unquote [content=it...]

bash
/str transform unquote [content=it...]
点击查看说明

移除首尾双引号。

转义字符串(/str transform escape [content=it...]

bash
/str transform escape [content=it...]
点击查看说明

转义字符串。例如将换行符替换为\n(写成这样)。

反转义字符串(/str transform unescape [content=it...]

bash
/str transform unescape [content=it...]
点击查看说明

反转义字符串。

转义字符串(/str transform escapehtml [content=it...]

bash
/str transform escapehtml [content=it...]
点击查看说明

转义字符串。但是是 HTML 转义规则。

反转义字符串(/str transform unescapehtml [content=it...]

bash
/str transform unescapehtml [content=it...]
点击查看说明

反转义字符串。但是是 HTML 转义规则。

提取文件路径扩展名(/str transform extractext [content=it...]

bash
/str transform extractext [content=it...]
点击查看说明

提取文件路径扩展名。

去除文件路径扩展名(/str transform delext [content=it...]

bash
/str transform delext [content=it...]
点击查看说明

去除文件路径扩展名。

对字符串进行屏蔽词过滤(/str transform filter [content=it...]

bash
/str transform filter [content=it...]
点击查看说明

对字符串进行屏蔽词过滤。

中文分词(/str transform cut [content=it...]

bash
/str transform cut [content=it...]
点击查看说明

中文分词。使用在线API。

中文分词(/str transform cut_bili [content=it...]

bash
/str transform cut_bili [content=it...]
点击查看说明

中文分词。使用B站搜索推荐词。