|
|
|
@ -18,6 +18,7 @@ from utils.machine_monitor import Monitor
|
|
|
|
|
from utils.news_paper import News
|
|
|
|
|
from utils.tools import datetime_to_string, kbytes_to_gbytes
|
|
|
|
|
from utils.weather import displayweather, getweatherdata
|
|
|
|
|
from utils.ipm import ipm_check
|
|
|
|
|
|
|
|
|
|
client = commands.Bot(command_prefix='--', intents=Intents.all())
|
|
|
|
|
|
|
|
|
@ -679,14 +680,16 @@ async def neeble_debug(bot:object) -> str:
|
|
|
|
|
Outputs debug data.
|
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
# TODO: This is repeated role checking code from the deletion function, better make this into one function itself
|
|
|
|
|
roles = [r.name for r in bot.author.roles]
|
|
|
|
|
PermStatus = False
|
|
|
|
|
# # TODO: This is repeated role checking code from the deletion function, better make this into one function itself
|
|
|
|
|
# roles = [r.name for r in bot.author.roles]
|
|
|
|
|
# PermStatus = False
|
|
|
|
|
#
|
|
|
|
|
# if len(PERMISSIONS['dq']) < 1 or not len(set(PERMISSIONS['dq']).intersection(roles)) < 1:
|
|
|
|
|
# PermStatus = True
|
|
|
|
|
|
|
|
|
|
if len(PERMISSIONS['dq']) < 1 or not len(set(PERMISSIONS['dq']).intersection(roles)) < 1:
|
|
|
|
|
PermStatus = True
|
|
|
|
|
PermStatus = ipm_check(bot.author.name, "mgmt.dbg")
|
|
|
|
|
|
|
|
|
|
if not PermStatus:
|
|
|
|
|
if PermStatus is False:
|
|
|
|
|
return await bot.send("_And who the fuck do **YOU** think you are!?_.\n"\
|
|
|
|
|
"(You don't have the necessary role for this command)")
|
|
|
|
|
clock = comlock
|
|
|
|
|