mirror of
https://github.com/kaaninchen/Gleiswechsel.git
synced 2026-07-21 19:52:47 +00:00
Rename state to handlers
This commit is contained in:
@@ -2,7 +2,7 @@ import discord
|
||||
import random
|
||||
from discord.ext import tasks
|
||||
from config import config
|
||||
from handlers import rename_vc
|
||||
from src.handlers import rename_vc
|
||||
from src.commands import setup_commands
|
||||
from src.embeds import build_error_embed
|
||||
from src.data.status import discord_status
|
||||
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
import discord
|
||||
from src.state import rename_vc
|
||||
from src.handlers import rename_vc
|
||||
from src.embeds import build_info_embed, build_error_embed
|
||||
|
||||
def setup_commands(bot: discord.Bot):
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
import random
|
||||
import discord
|
||||
from datetime import datetime
|
||||
import handlers as handlers
|
||||
import src.handlers as handlers
|
||||
from src.utils import operator_infos, format_via_list
|
||||
|
||||
def format_timestamp(timestr):
|
||||
|
||||
+1
-1
@@ -22,5 +22,5 @@ async def rename_vc(bot: discord.Bot) -> bool:
|
||||
|
||||
print(f"Info: {name} from {current['station']} \n via: {current['via']}")
|
||||
|
||||
await channel.edit(name=f"{config['formatting']}{name}")
|
||||
await channel.edit(name=f"{config['formatting']}{name}",)
|
||||
return True
|
||||
Reference in New Issue
Block a user