File size: 1,076 Bytes
5a85051
5000e38
5a85051
 
5000e38
5a85051
 
 
 
 
 
 
 
 
 
 
 
5000e38
5a85051
5000e38
5a85051
5000e38
 
 
5a85051
5000e38
 
 
 
 
 
 
5a85051
5000e38
 
5a85051
5000e38
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import os
import threading
import discord
import requests
import gradio as gr
from discord.ext import commands

DISCORD_TOKEN = os.getenv("DISCORD_TOKEN")
HF_API_TOKEN = os.getenv("HF_API_TOKEN")
HF_TEXT_MODEL = os.getenv("HF_TEXT_MODEL")
HF_IMAGE_MODEL = os.getenv("HF_IMAGE_MODEL")

intents = discord.Intents.default()
bot = commands.Bot(command_prefix="/", intents=intents)

@bot.event
async def on_ready():
    print(f"🩸 CultCore online as {bot.user}")

@bot.command()
async def initiate(ctx):
    await ctx.send("⚫ Initiation complete. CultCore awakened.")

@bot.command()
async def status(ctx):
    await ctx.send("🩸 CultCore running inside Hugging Face Space.")

def run_bot():
    bot.run(DISCORD_TOKEN)

def dummy_ui():
    return "CultCore is alive."

# Запускаем Discord-бот в фоне
threading.Thread(target=run_bot).start()

# Пустой Gradio UI (чтобы Space не умер)
gr.Interface(
    fn=dummy_ui,
    inputs=[],
    outputs="text",
    title="CultCore Core",
    description="Black/Red techno cult AI is running."
).launch()