🚀 一键部署!真正的 AI 聊天机器人!支持ChatGPT、文心一言、讯飞星火、Bing、Bard、ChatGLM、POE,多账号,人设调教,虚拟女仆、图片渲染、语音发送 | 支持 QQ、Telegram、Discord、微信 等平台
GNU Affero General Public License v3.0
12.55k
stars
1.52k
forks
source link
bot私聊非管理不能用,群聊@和管理员私聊可用 #627
Closed
Emvdy closed 1 year ago
提交 issue 前,请先确认:
运行环境:
问题描述
log情况
[mirai]
qq=xxxx
manager_qq=xxxx
此处保持默认设置,无需修改
reverse_ws_port = 8554
[openai]
[[openai.accounts]]
api_key = "sk-xxxxx" proxy="http://172.17.0.1:32935"
[bing] [[bing.accounts]] cookie_content = '[{"domain":".bing.com","expirationDate":1712991135.807113,"hostOnly":false,"httpOnly":false,"name":"SnrOvr","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"X=rebateson"},{"domain":".bing.com","expirationDate":1715928573.508725,"hostOnly":false,"httpOnly":false,"name":"SRCHUSR","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"DOB=20230321&T=1681368558000"},{"domain":"www.bing.com","expirationDate":1681370377,"hostOnly":true,"httpOnly":false,"name":"ai_session","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"shbfHODICVf7U3bxUYOrI3|1681368577569|1681368577569"},{"domain":".bing.com","expirationDate":1681385716.871516,"hostOnly":false,"httpOnly":true,"name":"SUID","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"A"},{"domain":".bing.com","expirationDate":1715928736.526974,"hostOnly":false,"httpOnly":false,"name":"SRCHHPGUSR","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"BRW=XW&BRH=T&CW=1948&CH=1296&SCW=1933&SCH=3670&SRCHLANG=zh-Hans&PV=10.0.0&HV=1681368737&PRVCW=1948&PRVCH=1296&DPR=1.0&UTC=480&DM=0&EXLTT=31&BZA=0&cdxts=0"},{"domain":".bing.com","expirationDate":1715927719.793623,"hostOnly":false,"httpOnly":false,"name":"ANON","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"A=ACF4CB2272736D30F55C75F9FFFFFFFF&E=1ba9&W=1"},{"domain":".bing.com","expirationDate":1681455141,"hostOnly":false,"httpOnly":false,"name":"_clsk","path":"/","sameSite":null,"secure":false,"session":false,"storeId":null,"value":"qdyjyc|1681368741773|3|1|z.clarity.ms/collect"},{"domain":"www.bing.com","expirationDate":1712904577.467174,"hostOnly":true,"httpOnly":false,"name":"MicrosoftApplicationsTelemetryDeviceId","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"454a3ed4-900e-430c-bc81-bfda5f45b0a8"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"_SS","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"SID=3EBC0794E456635613971565E515627E&R=87&RB=87&GB=0&RG=0&RP=87"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"ipv6","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"hit=1681372176498&t=6"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"dsc","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"order=News"},{"domain":".bing.com","expirationDate":1682577319.793601,"hostOnly":false,"httpOnly":false,"name":"_U","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"16QGmcfIWDmVNltGR1NlCN18lpqISRhi7ieBWu7k3TyNINswFgkDliZ0esKnAhGh38bPGdvmplzOSsSLi43SJbFtzMc2CCIhIuqaoVgNwLtsKF2j8phBD2ejw_hYFwV0vFA1QQ4KMJ0P6vzfML_91Ny_bFQrYVg7YuA6U22Jrl5xJZzDvJv8-IYmy6ltrp_zNnSQb9lSi6aPtOaU1Uu5g5A"},{"domain":".bing.com","expirationDate":1713927226.385185,"hostOnly":false,"httpOnly":false,"name":"SRCHD","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"AF=NOFORM"},{"domain":".bing.com","expirationDate":1713063227.385169,"hostOnly":false,"httpOnly":true,"name":"_EDGE_V","path":"/","sameSite":null,"secure":true,"session":false,"storeId":null,"value":"1"},{"domain":".bing.com","expirationDate":1684753436.102876,"hostOnly":false,"httpOnly":false,"name":"NAP","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"V=1.9&E=1b4f&C=IEinCZMR0MekpzEPmNEDzwcK-x2lpx2TAfwX0YXsZGsiCH9Xj820ig&W=1"},{"domain":".bing.com","expirationDate":1712991135.807073,"hostOnly":false,"httpOnly":false,"name":"_RwBf","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"r=1&mta=0&rc=87&rb=87&gb=0&rg=0&pc=87&mtu=0&rbb=0.0&g=0&cid=&clo=0&v=13&l=2023-04-12T07:00:00.0000000Z&lft=0001-01-01T00:00:00.0000000&aof=0&o=0&p=bingcopilotwaitlist&c=MY00IA&t=5664&s=2023-03-21T02:50:07.7526977+00:00&ts=2023-04-13T06:52:17.4771040+00:00&rwred=0&wls=2&lka=0&lkt=0&TH=&e=vzOZrfLmGcLzzP0QHcIKS8EeVWiv8nKJkSPjCWHDh02mQVg854bin6SpYUy94aOGT_mRjg1zr6B_61O58F_Chg&A="},{"domain":".bing.com","expirationDate":1715928576.345085,"hostOnly":false,"httpOnly":false,"name":"_UR","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"QS=0&TQS=0"},{"domain":".bing.com","hostOnly":false,"httpOnly":true,"name":"_EDGE_S","path":"/","sameSite":null,"secure":false,"session":true,"storeId":null,"value":"SID=3EBC0794E456635613971565E515627E"},{"domain":"www.bing.com","expirationDate":1715064739.798751,"hostOnly":true,"httpOnly":true,"name":"MUIDB","path":"/","sameSite":null,"secure":false,"session":false,"storeId":null,"value":"29841C6E95B16A9309420C3494F26B9C"},{"domain":".bing.com","expirationDate":1715928579.846223,"hostOnly":false,"httpOnly":true,"name":"USRLOC","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"HS=1&ELOC=LAT=30.74632453918457|LON=103.9202651977539|N=%E9%83%AB%E9%83%BD%E5%8C%BA%EF%BC%8C%E5%9B%9B%E5%B7%9D%E7%9C%81|ELT=2|&CLOC=LAT=30.74632370772214|LON=103.92026754976057|A=733.4464586120832|TS=230412153525|SRC=W"},{"domain":".bing.com","expirationDate":1712904573,"hostOnly":false,"httpOnly":false,"name":"_clck","path":"/","sameSite":null,"secure":false,"session":false,"storeId":null,"value":"hho7px|1|faq|0"},{"domain":".bing.com","expirationDate":1715928576.549818,"hostOnly":false,"httpOnly":false,"name":"_HPVN","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"CS=eyJQbiI6eyJDbiI6NCwiU3QiOjAsIlFzIjowLCJQcm9kIjoiUCJ9LCJTYyI6eyJDbiI6NCwiU3QiOjAsIlFzIjowLCJQcm9kIjoiSCJ9LCJReiI6eyJDbiI6NCwiU3QiOjAsIlFzIjowLCJQcm9kIjoiVCJ9LCJBcCI6dHJ1ZSwiTXV0ZSI6dHJ1ZSwiTGFkIjoiMjAyMy0wNC0xM1QwMDowMDowMFoiLCJJb3RkIjowLCJHd2IiOjAsIkRmdCI6bnVsbCwiTXZzIjowLCJGbHQiOjAsIkltcCI6MTV9"},{"domain":".bing.com","expirationDate":1715858974.918162,"hostOnly":false,"httpOnly":false,"name":"ABDEF","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"V=13&ABDV=11&MRNB=1681298974917&MRB=0"},{"domain":".bing.com","expirationDate":1714991359.102256,"hostOnly":false,"httpOnly":false,"name":"MUID","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"29841C6E95B16A9309420C3494F26B9C"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"SNRHOP","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"I=&TS="},{"domain":".bing.com","expirationDate":1713927226.385193,"hostOnly":false,"httpOnly":false,"name":"SRCHUID","path":"/","sameSite":"no_restriction","secure":true,"session":false,"storeId":null,"value":"V=2&GUID=AFA6F9B7322A4BCBB77225FE8AF4707E&dmnchg=1"},{"domain":".bing.com","hostOnly":false,"httpOnly":false,"name":"WLS","path":"/","sameSite":"no_restriction","secure":true,"session":true,"storeId":null,"value":"C=9c3e9c48ad130ae9&N=%e8%b6%8a"}]' proxy="http://172.17.0.1:32935"
[text_to_image]
文字转图片
是否强制开启,设置后所有的消息强制以图片发送,减小风控概率
always = false
字体大小
font_size = 30
图片宽度
width = 700
字体
font_path = "fonts/sarasa-mono-sc-regular.ttf"
[备用模式]起始点 X
offset_x = 50
[备用模式]起始点 Y
offset_y = 50
[trigger]
切换模型的命令
switch_model = "切换模型 (.+)"
允许普通用户切换的模型
allowed_models = ["gpt-3.5-turbo", "gpt-3.5-turbo-0301", "text-davinci-002-render-sha", "text-davinci-002-render-paid"]
允许普通用户切换AI
allow_switching_ai = true
ignore_regex = ['.[\u4e00-\u9fa5].',]
重置会话的命令
reset_command = [ "开启新的会话",]
回滚会话的命令
rollback_command = [ "回滚会话",]
prefix_ai = { "chatgpt-api" = ["gpt"], "bing-c" = ["bing"] }
[response] default_ai = "chatgpt-api" mode = "mixed" buffer_delay = 0 quote = true max_queue_size = 4 queue_full = "抱歉 回复的人很多 建议等一会再发送信息" queued_notice_size = 3 queued_notice = "消息已收到 当前还有{queue_size}条消息要回复,请您稍等" timeout = 60.0 timeout_format = "我还在思考中,请再等一下~" max_timeout = 600 cancel_wait_too_long = "抱歉 过去了10分钟 我还是没能想出这个问题的最终答案 您可以尝试换个问法"