I'm currently writing some code in Python and whenever I try to run the program I get this error.
Here is the code;
if month == time.strftime("%m") and day == time.strftime("%d"):
continue
elif hour == time.strftime("%H") and minute != time.strftime("%M"):
channelD["just_sent"] = False
with open("data.json", "w") as write_file:
json.dump(data, write_file)
elif hour == time.strftime("%H") and minute == time.strftime("%M"):
if just_sent = channelD["just_sent"]:
continue
else:
channel = bot.get_channel(i)
await bot.send_message(channel, content=channelD["message"])
print("24h message sent!")