config.py in src verschoben

This commit is contained in:
Kaaninchen
2026-07-17 18:59:12 +02:00
parent ffec60ecc2
commit f3ab8441ee
4 changed files with 5 additions and 6 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import discord
import random
import time
from discord.ext import tasks, commands
from config import config
from src.config import config
from src.handlers import rename_vc
from src.commands import setup_commands
from src.embeds import build_error_embed
View File
+3 -4
View File
@@ -1,6 +1,6 @@
import discord
import time
from config import config
from src.config import config
from src.utils import random_connection
current = None
@@ -10,12 +10,12 @@ async def rename_vc(bot: discord.Bot) -> bool:
guild = bot.get_guild(int(config["server"]))
if guild is None:
print(f"Guild {config['server']} not found! Is the bot a member?")
print(f"Es konnte kein Server mit der ID {config['server']} gefunden werden! Ist der Bot ein Member?")
return False
channel = guild.get_channel(int(config["vc"]))
if not isinstance(channel, discord.VoiceChannel):
print(f"Unable to find voice-Channel {config['vc']} on the server")
print(f"Es konnte kein VC mit der ID {config['vc']} auf dem Server gefunden werden")
return False
current = random_connection()
@@ -32,5 +32,4 @@ async def rename_vc(bot: discord.Bot) -> bool:
print(f"{current_time}: Wenn hier keine Nachricht mehr kommt bin ich im Cooldown")
await channel.edit(name=f"{config['formatting']}{train_name}",)
print(f"{current_time}: Name geändert!")
print("-----------------------------------------")
return True
+1 -1
View File
@@ -1,6 +1,6 @@
import requests
import random
from config import config
from src.config import config
from src.data.operators import OPERATORS
def random_connection():