actually send the message to the user
This commit is contained in:
parent
b63e0e4a06
commit
9ffb646666
|
@ -270,7 +270,8 @@ async def check_chat():
|
||||||
await send_message("Not yet implemented")
|
await send_message("Not yet implemented")
|
||||||
|
|
||||||
elif "@automod reports" in x['text']:
|
elif "@automod reports" in x['text']:
|
||||||
await send_message(await get_reports())
|
reports = await get_reports()
|
||||||
|
await send_message(reports)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
await send_message("Invalid command given")
|
await send_message("Invalid command given")
|
||||||
|
|
|
@ -64,4 +64,4 @@ async def get_reports():
|
||||||
else:
|
else:
|
||||||
logger.info(f"An error occurred getting the reports for reason {response.status_code}")
|
logger.info(f"An error occurred getting the reports for reason {response.status_code}")
|
||||||
return False
|
return False
|
||||||
logger.info(reports_string[0:700])
|
return reports_string[0:700]
|
||||||
|
|
Loading…
Reference in New Issue