Socket
Socket
Sign inDemoInstall

tim-profanity-filter-plugin

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    tim-profanity-filter-plugin

Official Profanity Filter Plugin For Tencent Cloud Chat


Version published
Weekly downloads
718
increased by7%
Maintainers
1
Install size
57.8 kB
Created
Weekly downloads
 

Readme

Source

腾讯云即时通信 IM 本地审核插件。

下载

Web & 小程序 & uniapp

npm install @tencentcloud/chat --save
npm install tim-profanity-filter-plugin --save

### 集成

```javascript
import TencentCloudChat from '@tencentcloud/chat';
import TIMProfanityFilterPlugin from 'tim-profanity-filter-plugin';

let options = {
  SDKAppID: 0 // 接入时需要将 0 替换为您的云通信应用的 SDKAppID,类型为 Number
};
// 创建 SDK 实例,`TencentCloudChat.create()`方法对于同一个 `SDKAppID` 只会返回同一份实例
let chat = TencentCloudChat.create(options); // SDK 实例通常用 chat 表示

// 设置 SDK 日志输出级别,详细分级请参见 setLogLevel 接口的说明
chat.setLogLevel(0); // 普通级别,日志量较多,接入时建议使用
// chat.setLogLevel(1); // release级别,SDK 输出关键信息,生产环境时建议使用

// 注册腾讯云即时通信 IM 本地审核插件
chat.registerPlugin({'tim-profanity-filter-plugin': TIMProfanityFilterPlugin});
相关资源
  • 快速入门(Web&H5)
  • 快速入门(小程序)
  • 快速入门(uniapp)
  • SDK 更新日志
  • SDK 接口文档

FAQs

Last updated on 18 Dec 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc