I'd like to send a message from a Discord bot whenever an API endpoint gets triggered.
It seems the only way to send messages is in response to discord events, for example using
@client.event
async def on_message(message):
I'd appreciate any pointers on how to send a discord bot message that's not triggered by an async Discord event (using discord.py preferably)
Thanks!
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…