v1.6.0 (#100)
parent
e7d96d84c3
commit
50a3a0cb1b
18
README.md
18
README.md
|
@ -1,5 +1,5 @@
|
|||
# MIUI Task
|
||||
一个适用于 小米社区 4.0 自动完成成长值任务的脚本
|
||||
一个适用于 社区 4.0 模拟网络功能请求的脚本
|
||||
|
||||
[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu) ![GitHub](https://img.shields.io/github/license/0-8-4/miui-auto-tasks)
|
||||
![Python](https://img.shields.io/badge/python-3.7+-blue) ![DockerHub](https://github.com/0-8-4/miui-auto-tasks/actions/workflows/docker-image.yml/badge.svg)
|
||||
|
@ -43,18 +43,10 @@
|
|||
- [x] 支持 多账号 配置
|
||||
- [x] 支持 Docker 部署
|
||||
- [x] 支持 腾讯云函数 部署
|
||||
- [x] 自动登录小米账号刷新社区 Cookie 实现自动化
|
||||
- [x] 选择性启用参与小米社区拔萝卜
|
||||
- [x] 选择性启用小米社区每日签到
|
||||
- [x] 选择性启用小米社区限时专题任务
|
||||
- [x] 自动完成以下小米社区成长值任务且不留下可见痕迹
|
||||
- “每日登录小米社区App” 成长值任务
|
||||
- “浏览帖子超过10秒” 成长值任务
|
||||
- “点赞他人帖子” 成长值任务
|
||||
- “浏览个人主页超过10秒” 成长值任务
|
||||
- “加入小米社区圈子” 成长值任务
|
||||
- [x] 支持 自动登录小米账号刷新社区 Cookie 以便于实现自动化
|
||||
- [x] 绝大多数功能均可在配置文件中自行开关启用
|
||||
|
||||
⚠ 请注意,修改配置文件开启完成限时专题任务后 MIUI Task 不会检测当前是否可完成限时专题任务而会直接发送请求,根据社区相关规则,启用完成限时专题任务、拔萝卜及签到等可能存在风险。您需要自行承担使用本脚本的后果
|
||||
⚠ 请注意,配置文件默认禁用了 MIUI Task 绝大多数模拟网络请求的功能能力,请注意修改配置文件按需启用。根据社区相关规则,模拟这些功能的网络请求可能存在一定风险。您需要自行承担使用本脚本的后果
|
||||
|
||||
|
||||
### **配置推送**:
|
||||
|
@ -136,7 +128,7 @@ ONEPUSH:
|
|||
#### **其他**:
|
||||
* 在使用本脚本时请临时关闭网络代理工具及广告拦截程序
|
||||
* 在服务器上使用前建议先使用服务器IP登录 `https://account.xiaomi.com`
|
||||
* 建议配合 Python3 及 Crontab 使用
|
||||
* 如需定时自动化建议配合 Python3 及 Crontab 使用
|
||||
* **欢迎提供有关的思路,提交BUG以及更多完成社区其他任务方式,我们会认真对待~**
|
||||
|
||||
|
||||
|
|
39
config.yaml
39
config.yaml
|
@ -1,26 +1,39 @@
|
|||
accounts:
|
||||
- uid: 100000
|
||||
# 小米账户ID 非小米账户用户名
|
||||
# 账户ID 非账户用户名或手机号
|
||||
password: Abcd.1234
|
||||
# 小米账户密码或其MD5哈希
|
||||
user-agent: 'Mozilla/5.0 (Android 11; Mobile; rv:95.0) Gecko/95.0 Firefox/95.0'
|
||||
# 登录小米社区时所用浏览器的 User-Agent
|
||||
# 账户密码或其MD5哈希
|
||||
user-agent: 'Mozilla/5.0 (Linux; Android 13) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Safari/537.36'
|
||||
# 登录社区时所用浏览器的 User-Agent
|
||||
# 可在此工具查看:https://tool.chinaz.com/useragent
|
||||
carrot-pull: false
|
||||
# 小米社区拔萝卜,可能存在封号风险
|
||||
|
||||
# 功能开关
|
||||
check-in: false
|
||||
# 小米社区成长值签到,可能存在封号风险
|
||||
# 本脚本默认完成登录社区和三次点赞及三次浏览十秒帖子的成长值任务
|
||||
# 社区成长值签到,启用功能意味着你愿意自行承担相关风险
|
||||
browse-user-page: false
|
||||
# 社区浏览个人主页10秒,启用功能意味着你愿意自行承担相关风险
|
||||
browse-post: false
|
||||
# 社区浏览帖子10秒,启用功能意味着你愿意自行承担相关风险
|
||||
thumb-up: false
|
||||
# 点赞帖子,启用功能意味着你愿意自行承担相关风险
|
||||
browse-specialpage: false
|
||||
# 小米社区在活动期间可能会出现限时的“浏览指定专题页”任务
|
||||
# 考虑到安全问题,建议在存在该限时活动手动打开,活动结束时关闭
|
||||
# 若有多个小米账户,按照以下模板进行修改,使用时删除前端 #注释
|
||||
# 社区在活动期间可能会出现限时的“浏览指定专题页”任务,启用功能意味着你愿意自行承担相关风险
|
||||
board-follow: false
|
||||
# 社区可能会出现限时的“加入圈子”任务,启用功能意味着你愿意自行承担相关风险
|
||||
carrot-pull: false
|
||||
# 社区拔萝卜,启用功能意味着你愿意自行承担相关风险
|
||||
|
||||
# 若有多个账户,按照以下模板进行修改,使用时删除前端 #注释
|
||||
# - uid: 100001
|
||||
# password: abc123
|
||||
# user-agent: 'Mozilla/5.0 (Android 11; Mobile; rv:95.0) Gecko/95.0 Firefox/95.0'
|
||||
# carrot-pull: false
|
||||
# check-in: false
|
||||
# browse-user-page: false
|
||||
# browse-post: false
|
||||
# thumb-up: false
|
||||
# browse-specialpage: false
|
||||
# board-follow: false
|
||||
# carrot-pull: false
|
||||
ONEPUSH:
|
||||
notifier: telegram
|
||||
params:
|
||||
|
@ -31,5 +44,5 @@ ONEPUSH:
|
|||
|
||||
logging: false
|
||||
# 归档日志到本地文件
|
||||
version: v1.5.3
|
||||
version: v1.6.0
|
||||
# config 文件版本号,debug用
|
||||
|
|
192
miuitask.py
192
miuitask.py
|
@ -1,12 +1,13 @@
|
|||
# -- coding:UTF-8 --
|
||||
import re
|
||||
import requests
|
||||
import time
|
||||
import json
|
||||
import hashlib
|
||||
import requests
|
||||
|
||||
from urllib import request
|
||||
from http import cookiejar
|
||||
from typing import Any
|
||||
|
||||
from utils.utils import system_info, get_config, w_log, s_log, check_config, format_config, random_sleep, \
|
||||
sleep_ten_sec_more, notify_me
|
||||
|
@ -53,8 +54,7 @@ class MIUITask:
|
|||
'timestamp': sign[1]
|
||||
}
|
||||
try:
|
||||
response = requests.get('https://api.vip.miui.com/mtop/planet/vip/content/announceThumbUp', headers=headers,
|
||||
params=data)
|
||||
response = requests.get('https://api.vip.miui.com/mtop/planet/vip/content/announceThumbUp', headers=headers,params=data)
|
||||
r_json = response.json()
|
||||
if r_json['code'] == 401:
|
||||
return w_log("点赞失败:Cookie无效")
|
||||
|
@ -70,9 +70,11 @@ class MIUITask:
|
|||
headers = {
|
||||
'cookie': str(self.cookie)
|
||||
}
|
||||
data = {
|
||||
'postId': '36625780'
|
||||
}
|
||||
try:
|
||||
response = requests.get('https://api.vip.miui.com/mtop/planet/vip/content/announceCancelThumbUp?postId=36625780',
|
||||
headers=headers)
|
||||
response = requests.get('https://api.vip.miui.com/mtop/planet/vip/content/announceCancelThumbUp', headers=headers,params=data)
|
||||
r_json = response.json()
|
||||
if r_json['code'] == 401:
|
||||
return w_log("取消点赞失败:Cookie无效")
|
||||
|
@ -181,11 +183,15 @@ class MIUITask:
|
|||
headers = {
|
||||
'cookie': str(self.cookie)
|
||||
}
|
||||
params = {
|
||||
'boardId': '558495',
|
||||
'miui_vip_ph': str(self.miui_vip_ph)
|
||||
}
|
||||
try:
|
||||
response = requests.get(
|
||||
response = requests.post(
|
||||
'https://api.vip.miui.com/api/community/board/follow?'
|
||||
'boardId=5462662&pathname=/mio/singleBoard&version=dev.1144',
|
||||
headers=headers)
|
||||
'&pathname=/mio/allboard&version=dev.20051',
|
||||
headers=headers,params=params)
|
||||
r_json = response.json()
|
||||
if r_json['status'] == 401:
|
||||
return w_log("加入小米圈子失败:Cookie无效")
|
||||
|
@ -201,9 +207,13 @@ class MIUITask:
|
|||
headers = {
|
||||
'cookie': str(self.cookie)
|
||||
}
|
||||
params = {
|
||||
'boardId': '558495',
|
||||
'miui_vip_ph': str(self.miui_vip_ph)
|
||||
}
|
||||
try:
|
||||
response = requests.get('https://api.vip.miui.com/api/community/board/unfollow?'
|
||||
'boardId=5462662&pathname=/mio/singleBoard&version=dev.1144', headers=headers)
|
||||
response = requests.post('https://api.vip.miui.com/api/community/board/unfollow?'
|
||||
'&pathname=/mio/allboard&version=dev.20051', headers=headers,params=params)
|
||||
r_json = response.json()
|
||||
if r_json['status'] == 401:
|
||||
return w_log("退出小米圈子失败:Cookie无效")
|
||||
|
@ -238,7 +248,7 @@ class MIUITask:
|
|||
w_log("社区拔萝卜出错")
|
||||
w_log(e)
|
||||
|
||||
# 社区4.0签到
|
||||
# 每日签到
|
||||
def check_in(self):
|
||||
headers = {
|
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',
|
||||
|
@ -253,15 +263,15 @@ class MIUITask:
|
|||
headers=headers,params=params)
|
||||
r_json = response.json()
|
||||
if r_json['status'] == 401:
|
||||
return w_log("社区成长值签到失败:Cookie无效")
|
||||
return w_log("每日签到失败:Cookie无效")
|
||||
elif r_json['status'] != 200:
|
||||
return w_log("社区成长值签到失败:" + str(r_json['message']))
|
||||
w_log("社区成长值签到结果:成长值+" + str(r_json['entity']))
|
||||
return w_log("每日签到失败:" + str(r_json['message']))
|
||||
w_log("每日签到结果:成长值+" + str(r_json['entity']))
|
||||
except Exception as e:
|
||||
w_log("社区成长值签到出错")
|
||||
w_log("每日签到出错")
|
||||
w_log(e)
|
||||
|
||||
# 登录社区App
|
||||
# 登录社区
|
||||
def login_app(self):
|
||||
headers = {
|
||||
'Content-Type': 'application/x-www-form-urlencoded;charset=utf-8',
|
||||
|
@ -274,12 +284,12 @@ class MIUITask:
|
|||
response = requests.get('https://api.vip.miui.com/mtop/planet/vip/app/init/start/infos', headers=headers,params=params)
|
||||
r_code = response.status_code
|
||||
if r_code == 401:
|
||||
return w_log("登录社区App失败:Cookie无效")
|
||||
return w_log("登录社区失败:Cookie无效")
|
||||
elif r_code != 200:
|
||||
return w_log("登录社区App失败")
|
||||
w_log("登录社区App成功")
|
||||
return w_log("登录社区失败")
|
||||
w_log("登录社区成功")
|
||||
except Exception as e:
|
||||
w_log("登录社区App出错")
|
||||
w_log("登录社区出错")
|
||||
w_log(e)
|
||||
|
||||
def mi_login(self):
|
||||
|
@ -349,7 +359,35 @@ class MIUITask:
|
|||
w_log(e)
|
||||
return False
|
||||
|
||||
def get_point(self) -> int:
|
||||
def check_daily_tasks(self):
|
||||
headers = {
|
||||
'cookie': str(self.cookie)
|
||||
}
|
||||
try:
|
||||
response = requests.get('https://api.vip.miui.com/mtop/planet/vip/member/getCheckinPageCakeList', headers=headers)
|
||||
r_json = response.json()
|
||||
if r_json['status'] != 200:
|
||||
w_log("获取每日任务状态失败:" + str(r_json['message']))
|
||||
return None
|
||||
|
||||
tasks = r_json['entity']
|
||||
task_status = {}
|
||||
for task in tasks:
|
||||
if task['head']['title'] == "每日任务":
|
||||
for daily_task in task['data']:
|
||||
task_status[daily_task['title']] = daily_task['showType']
|
||||
task_name = daily_task['title']
|
||||
task_completion_status = "完成" if daily_task['showType'] == 0 else "未完成"
|
||||
w_log("获取到信息: " + str(task_name) + ", " + str(task_completion_status))
|
||||
|
||||
return task_status
|
||||
|
||||
except Exception as e:
|
||||
w_log("获取信息出错")
|
||||
w_log(e)
|
||||
return None
|
||||
|
||||
def get_point(self) -> tuple[Any, Any]:
|
||||
"""
|
||||
这个方法带返回值的原因是,可以调用这个方法获取返回值,可根据这个方法定制自己的“消息提示功能”。
|
||||
如:Qmsg发送到QQ 或者 发送邮件提醒
|
||||
|
@ -363,13 +401,18 @@ class MIUITask:
|
|||
'miui_vip_ph': str(self.miui_vip_ph)
|
||||
}
|
||||
try:
|
||||
response = requests.get('https://api.vip.miui.com/mtop/planet/vip/member/getGrowUpPageData', headers=headers,params=params)
|
||||
response = requests.get('https://api.vip.miui.com/mtop/planet/vip/member/getGrowUpPageData', headers=headers, params=params)
|
||||
r_json = response.json()
|
||||
|
||||
your_point = re.findall(r"'title': '成长值'.*'title': '(\d+)'.*'title': '/'", str(r_json['entity']))[0]
|
||||
w_log('成功获取成长值,当前成长值:' + str(your_point))
|
||||
return your_point
|
||||
your_level = re.findall(r"'title': '(\d+段)', 'desc': '当前等级'", str(r_json['entity']))[0]
|
||||
|
||||
w_log('当前等级:' + str(your_level) + ', 当前成长值:' + str(your_point))
|
||||
|
||||
return your_point, your_level
|
||||
except Exception as e:
|
||||
w_log('成长值获取失败')
|
||||
w_log('成长值和等级获取失败')
|
||||
w_log(e)
|
||||
process_exception(e)
|
||||
|
||||
|
||||
|
@ -383,59 +426,76 @@ def process_exception(e: Exception):
|
|||
w_log('系统设置了代理,出现异常')
|
||||
|
||||
|
||||
def start(miui_task: MIUITask, check_in: bool, carrot_pull: bool, browse_specialpage: bool):
|
||||
def start(miui_task: MIUITask, check_in: bool, browse_post: bool, browse_user_page: bool, thumb_up: bool, browse_specialpage: bool, board_follow: bool, carrot_pull: bool):
|
||||
if miui_task.mi_login():
|
||||
w_log("本脚本支持社区拔萝卜及成长值签到,因该功能存在风险默认禁用")
|
||||
w_log("如您愿意承担一切可能的后果,可编辑配置文件手动打开该功能")
|
||||
w_log("本脚本用于模拟网络请求测试,仅供测试学习使用,禁止用于其他用途")
|
||||
w_log("本脚本默认不做任何操作,如您愿意承担一切可能的后果,可编辑配置文件手动打开需要的功能")
|
||||
w_log("为避免重复模拟请求,脚本将自动获取状态并决定是否继续模拟网络请求")
|
||||
miui_task.login_app()
|
||||
task_status = miui_task.check_daily_tasks()
|
||||
if task_status is None:
|
||||
w_log("无法获取状态,将跳过多数模拟请求功能")
|
||||
else:
|
||||
if "每日签到" in task_status and task_status.get("每日签到", 1) == 1 and check_in:
|
||||
w_log("模拟请求「每日签到」")
|
||||
random_sleep()
|
||||
miui_task.check_in()
|
||||
else:
|
||||
w_log("自动跳过模拟请求「每日签到」")
|
||||
|
||||
if "浏览帖子超过10秒" in task_status and task_status.get("浏览帖子超过10秒", 1) == 1 and browse_post:
|
||||
w_log("模拟请求「浏览帖子超过10秒」")
|
||||
sleep_ten_sec_more()
|
||||
miui_task.browse_post()
|
||||
else:
|
||||
w_log("自动跳过模拟请求「浏览帖子超过10秒」")
|
||||
|
||||
if "浏览个人/他人主页超过10秒" in task_status and task_status.get("浏览个人/他人主页超过10秒", 1) == 1 and browse_user_page:
|
||||
w_log("模拟请求「浏览个人/他人主页超过10秒」")
|
||||
sleep_ten_sec_more()
|
||||
miui_task.browse_user_page()
|
||||
else:
|
||||
w_log("自动跳过模拟请求「浏览个人/他人主页超过10秒」")
|
||||
|
||||
if "点赞他人帖子" in task_status and task_status.get("点赞他人帖子", 1) == 1 and thumb_up:
|
||||
w_log("模拟请求「点赞他人帖子」")
|
||||
random_sleep()
|
||||
miui_task.thumb_up()
|
||||
random_sleep()
|
||||
miui_task.cancel_thumb_up()
|
||||
else:
|
||||
w_log("自动跳过模拟请求「点赞他人帖子」")
|
||||
|
||||
if "浏览指定专题页" in task_status and task_status.get("浏览指定专题页", 1) == 1 and browse_specialpage:
|
||||
w_log("模拟请求「浏览指定专题页」")
|
||||
sleep_ten_sec_more()
|
||||
miui_task.browse_specialpage()
|
||||
else:
|
||||
w_log("自动跳过模拟请求「浏览指定专题页」")
|
||||
|
||||
if "加入小米社区圈子" in task_status and task_status.get("加入小米社区圈子", 1) == 1 and board_follow:
|
||||
w_log("模拟请求「加入小米社区圈子」")
|
||||
random_sleep()
|
||||
miui_task.board_follow()
|
||||
random_sleep()
|
||||
miui_task.board_unfollow()
|
||||
else:
|
||||
w_log("自动跳过模拟请求「加入小米社区圈子」")
|
||||
w_log("请注意,未在配置文件启用或不需要执行的功能请求将被自动跳过,且不会支持“灌水”的功能")
|
||||
if carrot_pull:
|
||||
w_log("风险功能提示:正在进行社区拔萝卜")
|
||||
w_log("模拟请求「社区拔萝卜」")
|
||||
random_sleep()
|
||||
miui_task.carrot_pull()
|
||||
if check_in:
|
||||
w_log("风险功能提示:正在进行成长值签到")
|
||||
random_sleep()
|
||||
miui_task.check_in()
|
||||
if browse_specialpage:
|
||||
w_log("风险功能提示:正在完成浏览专题页10s任务")
|
||||
sleep_ten_sec_more()
|
||||
miui_task.browse_specialpage()
|
||||
w_log("正在完成浏览帖子10s任务,第一次")
|
||||
sleep_ten_sec_more()
|
||||
miui_task.browse_post()
|
||||
w_log("正在完成浏览帖子10s任务,第二次")
|
||||
sleep_ten_sec_more()
|
||||
miui_task.browse_post()
|
||||
w_log("正在完成浏览帖子10s任务,第三次")
|
||||
sleep_ten_sec_more()
|
||||
miui_task.browse_post()
|
||||
w_log("正在完成点赞任务")
|
||||
miui_task.thumb_up()
|
||||
random_sleep()
|
||||
miui_task.cancel_thumb_up()
|
||||
random_sleep()
|
||||
miui_task.thumb_up()
|
||||
random_sleep()
|
||||
miui_task.cancel_thumb_up()
|
||||
random_sleep()
|
||||
miui_task.thumb_up()
|
||||
random_sleep()
|
||||
miui_task.cancel_thumb_up()
|
||||
random_sleep()
|
||||
miui_task.board_unfollow()
|
||||
random_sleep()
|
||||
miui_task.board_follow()
|
||||
random_sleep()
|
||||
miui_task.browse_user_page()
|
||||
random_sleep()
|
||||
miui_task.get_point()
|
||||
|
||||
|
||||
def main():
|
||||
w_log("MIUI-AUTO-TASK v1.5.3")
|
||||
w_log("MIUI-AUTO-TASK v1.6.0")
|
||||
w_log('---------- 系统信息 -------------')
|
||||
system_info()
|
||||
w_log('---------- 项目信息 -------------')
|
||||
w_log("这是一个免费且开源的项目,如果你是付费购买获得请务必退款")
|
||||
w_log("项目地址:https://github.com/0-8-4/miui-auto-tasks")
|
||||
w_log("欢迎 star,感谢東雲研究所中的大佬")
|
||||
w_log('---------- 配置检测 -------------')
|
||||
|
@ -452,7 +512,7 @@ def main():
|
|||
w_log('---------- EXECUTING -------------')
|
||||
start(
|
||||
MIUITask(i.get('uid'), i.get('password'), i.get('user-agent'), device_id=i.get('device-id')),
|
||||
i.get('check-in'), i.get('carrot-pull'), i.get('browse-specialpage'),
|
||||
i.get('check-in'), i.get('browse-post'), i.get('browse-user-page'), i.get('thumb-up'), i.get('browse-specialpage'), i.get('board-follow'), i.get('carrot-pull')
|
||||
)
|
||||
time.sleep(5)
|
||||
s_log(config.get('logging'))
|
||||
|
|
|
@ -12,7 +12,7 @@ from urllib.request import getproxies
|
|||
logs = ''
|
||||
message = ''
|
||||
config = {'account': []}
|
||||
CONFIG_VERSION_REQUIRE: str = 'v1.5.3'
|
||||
CONFIG_VERSION_REQUIRE: str = 'v1.6.0'
|
||||
|
||||
|
||||
def md5_crypto(passwd: str) -> str:
|
||||
|
@ -40,33 +40,8 @@ def get_config() -> dict:
|
|||
config_path_legacy = dotenv.find_dotenv(filename='config.env')
|
||||
config_path_yaml = dotenv.find_dotenv(filename='config.yaml')
|
||||
|
||||
# the old legacy config
|
||||
if config_path_legacy:
|
||||
w_log('正在使用 ' + config_path_legacy + ' 作为配置文件')
|
||||
legacy_config = dotenv.dotenv_values(config_path_legacy)
|
||||
config['account'].append({'uid': legacy_config.get('MI_ID')})
|
||||
config['account'][0]['password'] = legacy_config.get('MI_PASSWORD')
|
||||
config['account'][0]['user-agent'] = legacy_config.get('USER_AGENT')
|
||||
if legacy_config.get('SIGN_IN') and legacy_config.get('SIGN_IN').upper() in ('Y', 'YES'):
|
||||
config['account'][0]['check-in'] = True
|
||||
else:
|
||||
config['account'][0]['check-in'] = False
|
||||
if legacy_config.get('CARROT_PULL') and legacy_config.get('CARROT_PULL').upper() in ('Y', 'YES'):
|
||||
config['account'][0]['carrot-pull'] = True
|
||||
else:
|
||||
config['account'][0]['carrot-pull'] = False
|
||||
if legacy_config.get('BROWSE_SPECIALPAGE') and legacy_config.get('BROWSE_SPECIALPAGE').upper() in ('Y', 'YES'):
|
||||
config['account'][0]['browse-specialpage'] = True
|
||||
else:
|
||||
config['account'][0]['browse-specialpage'] = False
|
||||
if legacy_config.get('LOG_SAVE') and legacy_config.get('LOG_SAVE').upper() in ('Y', 'YES'):
|
||||
config['logging'] = True
|
||||
else:
|
||||
config['logging'] = False
|
||||
return config
|
||||
|
||||
# the new version yaml config
|
||||
elif config_path_yaml:
|
||||
# yaml config
|
||||
if config_path_yaml:
|
||||
w_log('正在加载 ' + config_path_yaml + ' 配置文件')
|
||||
with open(config_path_yaml, "rb") as stream:
|
||||
try:
|
||||
|
@ -119,10 +94,18 @@ def check_config(config: dict) -> bool:
|
|||
return False
|
||||
if not isinstance(i.get('check-in'), bool):
|
||||
return False
|
||||
if not isinstance(i.get('carrot-pull'), bool):
|
||||
if not isinstance(i.get('browse-user-page'), bool):
|
||||
return False
|
||||
if not isinstance(i.get('browse-post'), bool):
|
||||
return False
|
||||
if not isinstance(i.get('thumb-up'), bool):
|
||||
return False
|
||||
if not isinstance(i.get('browse-specialpage'), bool):
|
||||
return False
|
||||
if not isinstance(i.get('board-follow'), bool):
|
||||
return False
|
||||
if not isinstance(i.get('carrot-pull'), bool):
|
||||
return False
|
||||
else:
|
||||
return False
|
||||
if not isinstance(config.get('logging'), bool):
|
||||
|
|
Loading…
Reference in New Issue