chatKing

chatKing

sheetung / chatKing
Plugin295 downloadsEvent Listener1entertainment

Generate group chat rank image

chatKing

A LangBot plugin for generating chat ranking leaderboards with images.

English|中文

Features

  • Generates ranking leaderboards based on chat activity
  • Supports customizable time ranges (e.g., 1-day, 2-day rankings)
  • Creates visual ranking images via API request
  • Falls back to text-based rankings if image generation fails
  • Easy configuration through plugin settings

Installation

Install via the LangBot plugin marketplace

Usage

Command Format

To generate a ranking leaderboard, send a message in the format:

[number]日发言榜

Examples:

  • 1日发言榜 - Generates a ranking for the current day
  • 7日发言榜 - Generates a ranking for the past 7 days

How It Works

  1. The plugin monitors group messages and records chat activity
  2. When a ranking command is received, it queries the database for chat statistics
  3. It sends a request to the configured API to generate a ranking image
  4. The generated image is sent back to the group
  5. If image generation fails, a text-based ranking is sent instead

Configuration

The plugin can be configured through the following settings:

SettingDescriptionDefault Value
api_urlAPI endpoint for generating ranking imagescontact author for free
access_tokenAccess token for the APIcontact author for free

Dependencies

  • requests - For making API requests
  • langbot-plugin - Base plugin framework

License

MIT

Use chatKing in Feishu/Lark bots, DingTalk bots, WeCom bots, WeChat bots, QQ bots, Slack bots, Discord bots, Telegram bots, LINE Bots, and Matrix Bots.

Host your bot on LangBot Cloud and connect this extension to the collaboration platforms your team already uses.

Open LangBot Cloud

Comments