alveusgg / alveusgg/chatbot

Check user ban status for commands

未关闭
#41 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
enhancement good first issue help wanted
主要语言
JavaScript
星标
16
派生
13
PR 合并指标
30 天内没有已合并 PR

描述

**Is your feature request related to a problem? Please describe.**

When a user is banned in AlveusSanctuary, they can still run commands (if they have permissions) in the AlveusGG chat, and via the API integration.

**Describe the solution you'd like**

In the Twitch connection class, maintain a set of banned users (https://twurple.js.org/reference/api/classes/HelixModerationApi.html#getBannedUsers) for the main channel that refreshes itself every x minutes. In the chat message handler, always check the user is not in the banned list before processing their message.

**Describe alternatives you've considered**

N/A

**Additional context**

N/A

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

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