Skip to content
Navigation Menu
Sign in
Appearance settings
Platform
AI CODE CREATION
GitHub Copilot
Write better code with AI
GitHub Copilot app
Direct agents from issue to merge
MCP Registry
Integrate external tools
DEVELOPER WORKFLOWS
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Code Quality
Enforce quality at merge
APPLICATION SECURITY
GitHub Advanced Security
Find and fix vulnerabilities
Code security
Secure your code as you build
Secret protection
Stop leaks before they start
EXPLORE
Why GitHub
Documentation
Blog
Changelog
Marketplace
View all features
Solutions
BY COMPANY SIZE
Enterprises
Small and medium teams
Startups
Nonprofits
BY USE CASE
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
BY INDUSTRY
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
EXPLORE BY TOPIC
AI
Software Development
DevOps
Security
View all topics
EXPLORE BY TYPE
Customer stories
Events & webinars
Ebooks & reports
Business insights
GitHub Skills
SUPPORT & SERVICES
Documentation
Customer support
Community forum
Trust center
Partners
View all resources
Open Source
COMMUNITY
GitHub Sponsors
Fund open source developers
PROGRAMS
Security Lab
Maintainer Community
GitHub Stars
Archive Program
REPOSITORIES
Topics
Trending
Collections
Enterprise
ENTERPRISE SOLUTIONS
Enterprise platform
AI-powered developer platform
AVAILABLE ADD-ONS
GitHub Advanced Security
Enterprise-grade security features
Copilot for Business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
Search
/
Sign in
Sign up
Appearance settings
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
Uh oh!
There was an error while loading.
Please reload this page
.
LCTT
/
LCBot
Public
Notifications
You must be signed in to change notification settings
Fork
117
Star
422
Code
Issues
30
Pull requests
0
Actions
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Wiki
Security and quality
Insights
Files
Expand file tree
master
Breadcrumbs
LCBot
/
config.py
Copy path
Blame
More file actions
Blame
More file actions
Latest commit
History
History
History
84 lines (68 loc) · 2.06 KB
master
Breadcrumbs
LCBot
/
config.py
Copy path
Top
File metadata and controls
Code
Blame
84 lines (68 loc) · 2.06 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
#!/usr/bin/env python3
# coding: utf-8
'''
定义管理员群的名称
在该群内的人都将被设为管理员,
管理员在被管理的群中享有高级管理权限,可进行如踢人等的操作
注:群名为部分匹配,请尽量输入全名以保证搜索到的群的唯一性
'''
admin_group_name = '机器人管理群'
'''
定义被管理群的群名前缀
所有以此为前缀的群都将设为被管理的群
注:前缀大小写敏感
如:设定为'Linux中国◆',则将自动搜索到
「Linux中国◆微信机器人群」「Linux中国◆LFS群」等以其为开头的群,
并将其设为被管理的群
'''
group_prefix = '机器人'
'''
定义非特定前缀的群
注:必须输入完整名称
'''
additional_groups = ('另一个机器人群', )
# 新人入群的欢迎语
welcome_text = '''🎉 欢迎 @{} 的加入!
😃 有问题请私聊我。
'''
invite_text = """欢迎您,我是「Linux 中国」微信群助手,
请输入如下关键字加入群:
- 运维 开发 安全 嵌入式 学生 找工作
- 运维密码 机器人
- DBA PHP Python Golang Docker LFS vim
进群四件事:
1、阅读群公告,
2、修改群名片,
3、做自我介绍,
4、发个总计一元、一百份的红包
请言行遵守群内规定,违规者将受到处罚,拉入黑名单。"""
'''
设置群组关键词和对应群名
* 关键词必须为小写,查询时会做相应的小写处理
关于随机加群功能:
针对同类的群有多个的场景,例如群名 LFS群1、LFS群2、LFS群3...
设置关键词字典如下:
keyword_of_group = {
"lfs":"LFS群",
}
机器人会以"LFS群"为群名搜索,搜索结果为同类群名的列表,
再从列表中随机选取一个发出加群邀请。
'''
keyword_of_group = {
"测试": "机器人测试群",
}
'''
地区群
'''
city_group = {
"北京": "机器人北京群",
}
keyword_of_group.update(city_group)
female_group = "机器人测试群"
alert_group = "机器人测试群"
turing_key = ''
# 以下为功能配置选项
'''
全局静默开关
'''
silence_mode = False
You can’t perform that action at this time.