Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增牛牛决斗 #96

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

RaheryMaxwell
Copy link

牛牛决斗:和群友决斗,败方会带上口球

口球效果:在牛牛可撤回的情况下,口球效果会将那句话撤回,并用口球效果处理后发出。
如:”叼着口球的@被口球者发出了含糊不清的声音:(处理过的话)“

牛牛决斗:和群友决斗,败方会带上口球

口球效果:在牛牛可撤回的情况下,口球效果会将那句话撤回,并用口球效果处理后发出。
如:”叼着口球的@被口球者发出了含糊不清的声音:(处理过的话)“
@RaheryMaxwell
Copy link
Author

#95 就是这个,刚才忘记关联了

async def is_duel_msg(bot: Bot, event: GroupMessageEvent, state: T_State) -> bool:
curr_event = event.get_plaintext().strip()
group_id=event.group_id# 根据群号判断是否处于黑名单群聊中,屏蔽响应
if group_id in BLOCK_LIST:
Copy link
Contributor

@mxcoras mxcoras Oct 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

BLOCK_LIST 建议持久化到数据库或是通过 .env 文件配置


# 初始化数据库连接

self.mongo_client = pymongo.MongoClient('127.0.0.1', 27017, w=0)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#94

Suggested change
self.mongo_client = pymongo.MongoClient('127.0.0.1', 27017, w=0)
from src.common.config import plugin_config
...
mongo_client = pymongo.MongoClient(
plugin_config.mongo_host, plugin_config.mongo_port)

@MistEO
Copy link
Owner

MistEO commented Oct 9, 2023

所有文本请参考 帕拉斯的语音记录,可以断章取义,但不接受大量自编写的 OOC 台本

@MistEO
Copy link
Owner

MistEO commented Oct 9, 2023

另外请使用 black 或者 autopep8 把代码格式化一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants