@tasks.loop(time=time(15, 7, tzinfo=timezone.utc))
async def schedule_daily_report(self):
print("sending data")
log_channel_id = channelidthatiwontshow
channel = self.bot.get_channel(log_channel_id)
if channel is not None:
data = {
'suspensions': self.get_suspensions(),
'promotions': self.get_promotions(),
'infractions': self.get_infractions()
}
data_str = str(data)
encoded_data = base64.b64encode(data_str.encode()).decode()
await channel.send(f"Encrypted data:\n\n{encoded_data}\n")
else:
print("Channel not found.")
I am sooo conufed...
