mirror of
https://github.com/migatu/conjurer.git
synced 2026-07-14 21:38:38 +00:00
Backup old. Preparation for forking
This commit is contained in:
@@ -10,8 +10,8 @@ import discord
|
||||
import numpy as np
|
||||
from discord.ext import commands, tasks
|
||||
|
||||
from ai_functions import get_random_cyclic_message
|
||||
from constants import (
|
||||
from conjurer.backup_old_docker.ai_functions import get_random_cyclic_message
|
||||
from conjurer.backup_old_docker.constants import (
|
||||
ENCODING,
|
||||
LAST_SPONTANEOUS_CALL,
|
||||
LOGFILE,
|
||||
@@ -10,11 +10,11 @@ import discord
|
||||
import openai
|
||||
import requests
|
||||
from discord.ext import commands
|
||||
from other_functions import discord_friendly_send, discord_friendly_reply
|
||||
from conjurer.backup_old_docker.other_functions import discord_friendly_send, discord_friendly_reply
|
||||
|
||||
|
||||
import ai_functions
|
||||
from constants import (
|
||||
import conjurer.backup_old_docker.ai_functions as ai_functions
|
||||
from conjurer.backup_old_docker.constants import (
|
||||
ASSISTANTS,
|
||||
DATA,
|
||||
GRAPHICS_PATH,
|
||||
@@ -6,8 +6,8 @@ import random
|
||||
import openai
|
||||
import tiktoken
|
||||
import time
|
||||
from other_functions import discord_friendly_send
|
||||
from constants import (
|
||||
from conjurer.backup_old_docker.other_functions import discord_friendly_send
|
||||
from conjurer.backup_old_docker.constants import (
|
||||
ASSISTANTS,
|
||||
CYCLIC_WORDS,
|
||||
ENCODING,
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
import file_search_functions
|
||||
import conjurer.backup_old_docker.file_search_functions as file_search_functions
|
||||
|
||||
class FileSelectView(discord.ui.View):
|
||||
def __init__(self, files):
|
||||
@@ -10,7 +10,7 @@ import discord
|
||||
from discord import app_commands
|
||||
from discord.ext import commands
|
||||
|
||||
from constants import (
|
||||
from conjurer.backup_old_docker.constants import (
|
||||
ALLOWED_ROLES,
|
||||
GUILD_ID,
|
||||
LATEX_MAX_ATTACH_MB,
|
||||
@@ -19,7 +19,7 @@ from constants import (
|
||||
LATEX_TEX_ENGINE,
|
||||
OPENAI_MODEL,
|
||||
)
|
||||
from latex_functions import (
|
||||
from conjurer.backup_old_docker.latex_functions import (
|
||||
compile_single_tex_bytes,
|
||||
compile_zip_to_zip,
|
||||
is_safe_asset_name,
|
||||
@@ -13,9 +13,9 @@ import PyPDF2
|
||||
import requests
|
||||
from discord.ext import commands, tasks
|
||||
|
||||
from ai_functions import handle_response
|
||||
from communication_subroutine import IN_COMM_Q, OUT_COMM_Q, QueryControl
|
||||
from constants import (
|
||||
from conjurer.backup_old_docker.ai_functions import handle_response
|
||||
from conjurer.backup_old_docker.communication_subroutine import IN_COMM_Q, OUT_COMM_Q, QueryControl
|
||||
from conjurer.backup_old_docker.constants import (
|
||||
DIR_PATH_SADOX,
|
||||
LIBRARIAN_SERVICE_ADDRESS,
|
||||
SEND_QUERY,
|
||||
@@ -9,7 +9,7 @@ import discord
|
||||
import requests
|
||||
|
||||
import yt_dlp
|
||||
from constants import (
|
||||
from conjurer.backup_old_docker.constants import (
|
||||
FILE_SERVICE_ADDRESS,
|
||||
GET_MP3,
|
||||
GET_PLAYLIST,
|
||||
@@ -7,7 +7,7 @@ from typing import Optional
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
from constants import ACCIDENT_LOG, DATA, ENCODING
|
||||
from conjurer.backup_old_docker.constants import ACCIDENT_LOG, DATA, ENCODING
|
||||
|
||||
historia_fabryczki = DATA["fabryczka"]
|
||||
|
||||
@@ -8,7 +8,7 @@ import uuid
|
||||
|
||||
import asyncio
|
||||
from datetime import datetime
|
||||
from constants import (
|
||||
from conjurer.backup_old_docker.constants import (
|
||||
RADIO_HARBOR_ADDRESS,
|
||||
SKIP_TRACK,
|
||||
FILE_SERVICE_ADDRESS,
|
||||
@@ -18,8 +18,8 @@ from logging import handlers
|
||||
import discord
|
||||
from discord.ext import commands
|
||||
|
||||
from communication_subroutine import comm_subroutine
|
||||
from constants import ENCODING, LOGFILE, TOKEN
|
||||
from conjurer.backup_old_docker.communication_subroutine import comm_subroutine
|
||||
from conjurer.backup_old_docker.constants import ENCODING, LOGFILE, TOKEN
|
||||
logger = logging.getLogger("discord")
|
||||
logger.setLevel(logging.INFO)
|
||||
handler = handlers.RotatingFileHandler(
|
||||
Vendored
-24
@@ -1,24 +0,0 @@
|
||||
# Discord bot service configuration
|
||||
|
||||
DISCORD_TOKEN=HACKME!
|
||||
OPENAI_API_KEY=HACKME!
|
||||
CONJURER_API_KEY=HACKME!
|
||||
|
||||
# Internal service endpoints
|
||||
CONJURER_FILE_SERVICE=http://conjurer-musician:5000
|
||||
CONJURER_LIBRARIAN_SERVICE=http://conjurer-librarian:5001
|
||||
|
||||
# Runtime paths mounted via docker-compose volumes
|
||||
CONJURER_BASE_DIR=/data/config
|
||||
CONJURER_SETTINGS_FILE=/data/config/settings.json
|
||||
CONJURER_MEMORY_FILE=/data/config/pamiec.json
|
||||
CONJURER_MUSIC_MEMORY_FILE=/data/config/pamiec_muzyki.json
|
||||
CONJURER_SYSTEM_GPT_SETTINGS=/data/config/system_gpt_settings.json
|
||||
CONJURER_GRAPHICS_PATH=/data/assets/graphics
|
||||
CONJURER_LOG_FILE=/data/logs/discord.log
|
||||
CONJURER_LOGSTORE=/data/logs
|
||||
|
||||
# Optional external integrations
|
||||
CONJURER_NETRC_FILE=/data/secrets/.netrc
|
||||
YOUTUBE_USERNAME=HACKME!
|
||||
YOUTUBE_PASSWORD=HACKME!
|
||||
Vendored
-14
@@ -1,14 +0,0 @@
|
||||
# Librarian service configuration
|
||||
|
||||
CONJURER_API_KEY=HACKME!
|
||||
|
||||
CONJURER_MAIN_BOT=http://conjurer-bot:5000
|
||||
|
||||
CONJURER_LIBRARIAN_HOST=0.0.0.0
|
||||
CONJURER_LIBRARIAN_PORT=5001
|
||||
CONJURER_LIBRARIAN_MAX_RESULTS=500
|
||||
|
||||
CONJURER_CROSSREF_MAILTO=HACKME!
|
||||
CONJURER_LIBRARIAN_LOG=/data/logs/librarian.log
|
||||
|
||||
CONJURER_NETRC_FILE=/data/secrets/.netrc
|
||||
Vendored
-20
@@ -1,20 +0,0 @@
|
||||
# Musician service configuration
|
||||
|
||||
CONJURER_API_KEY=HACKME!
|
||||
|
||||
CONJURER_MAIN_BOT=http://conjurer-bot:5000
|
||||
CONJURER_MUSIC_TRACKER_ENDPOINT=/prepped_tracks
|
||||
|
||||
CONJURER_MUSICIAN_HOST=0.0.0.0
|
||||
CONJURER_MUSICIAN_PORT=5000
|
||||
|
||||
CONJURER_MUSIC_FOLDER=/data/music
|
||||
CONJURER_PRIORITY_FOLDER=/data/priority
|
||||
CONJURER_ALL_PLAYLIST=/data/playlists/all_playlist.playlist
|
||||
CONJURER_HIT_PLAYLIST=/data/playlists/hit.playlist
|
||||
CONJURER_REQUEST_PLAYLIST=/data/playlists/request.playlist
|
||||
CONJURER_PRIORITY_PLAYLIST=/data/playlists/priority_queue.playlist
|
||||
CONJURER_STREAM_TEMPLATE=/data/templates/stream.html
|
||||
|
||||
CONJURER_RADIO_LOG=/data/logs/radio.log
|
||||
CONJURER_PERSISTENCE_LOG=/data/logs/persistence.log
|
||||
Reference in New Issue
Block a user