Spaces:
Sleeping
Sleeping
File size: 381 Bytes
6888345 |
1 2 3 4 5 6 7 8 9 10 11 |
from discord_webhook import DiscordWebhook
import os
from dotenv import load_dotenv
load_dotenv() # take environment variables from .env.
def make_discord_trace_text(text_message):
webhook = DiscordWebhook(url=os.environ["DISCORD_HOOK"],
username="Somebody opened RAG_UI",
content=text_message)
webhook.execute() |