Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Improve the stats output that TeX bot produces

未关闭
#578 5 条评论 1 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@fernwarwick 已经在做这个了。

开始于 2025年7月18日。

评估

这个 Issue 还没有评估数据。

描述

As it says on the tin. There are a few issues that I have noticed with the stats the bot produces that I think improving on could help the bot look somewhat cleaner on:

Removing redundancy
When a user uses the /stats self command there is some level of redundancy. If a user does not have many contributions they will end up with bars of height 0:

Image

Fixing this may also prevent some security issues - we can see an example of this in the above output, where despite not being on committee, the bot has shown me some committee channels that are available.

Make text less cramped
Here is an output from the /stats server command:

Image

As one can see the text is quite cramped. It also displays committee only channels, which server admins may not want users to see depending on the application of the bot. I would also like to fix the margins so that all the text fits in the generated image.

Improve the display of data
This is a broad term, but this time looking at the "most active roles" output in /stats server I would like to do a few things:

Image
  • Reorder the roles so it goes from most-contributed to least-contributed
  • Make the y axis scale by some reasonable multiple (ideally multiples of 10)
  • Subject to discussion, remove roles from the bar chart that contribute less than some proportion (say 5%) of server messages (or replacing it with an "other" option). This last suggestion should have the effect of making the chart far easier to read.
主要语言
Python
星标
1
派生
11
平均合并
2 天 11 小时
30 天内合并 PR
4

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

CSSUoB/TeX-Bot-Py-V2 的其他 Issue

查看 CSSUoB/TeX-Bot-Py-V2 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。