From 5e56b1179fb6de001a11544629f9d5835eac489d Mon Sep 17 00:00:00 2001 From: Choco <94597336+ChocoMeow@users.noreply.github.com> Date: Tue, 21 Feb 2023 21:12:15 +0800 Subject: [PATCH] Rename folder --- cogs/admin.py | 2 +- cogs/basic.py | 2 +- cogs/playlist.py | 2 +- function.py | 2 +- {view => views}/__init__.py | 0 {view => views}/chapter.py | 0 {view => views}/controller.py | 0 {view => views}/debug.py | 0 {view => views}/help.py | 0 {view => views}/inbox.py | 0 {view => views}/link.py | 0 {view => views}/list.py | 0 {view => views}/lyrics.py | 0 {view => views}/playlist.py | 0 {view => views}/search.py | 0 voicelink/player.py | 2 +- 16 files changed, 5 insertions(+), 5 deletions(-) rename {view => views}/__init__.py (100%) rename {view => views}/chapter.py (100%) rename {view => views}/controller.py (100%) rename {view => views}/debug.py (100%) rename {view => views}/help.py (100%) rename {view => views}/inbox.py (100%) rename {view => views}/link.py (100%) rename {view => views}/list.py (100%) rename {view => views}/lyrics.py (100%) rename {view => views}/playlist.py (100%) rename {view => views}/search.py (100%) diff --git a/cogs/admin.py b/cogs/admin.py index 380c702..897c7e8 100644 --- a/cogs/admin.py +++ b/cogs/admin.py @@ -19,7 +19,7 @@ from function import ( get_aliases, cooldown_check ) -from view import DebugModal, HelpView +from views import DebugModal, HelpView class Admin(commands.Cog, name="settings"): diff --git a/cogs/basic.py b/cogs/basic.py index 8566373..105c3a9 100644 --- a/cogs/basic.py +++ b/cogs/basic.py @@ -17,7 +17,7 @@ from function import ( ) from addons import getLyrics -from view import SearchView, ListView, LinkView, LyricsView, ChapterView, HelpView +from views import SearchView, ListView, LinkView, LyricsView, ChapterView, HelpView from validators import url from random import shuffle diff --git a/cogs/playlist.py b/cogs/playlist.py index 519a008..ad20020 100644 --- a/cogs/playlist.py +++ b/cogs/playlist.py @@ -19,7 +19,7 @@ from function import ( ) from datetime import datetime -from view import PlaylistView, InboxView, HelpView +from views import PlaylistView, InboxView, HelpView def assign_playlistId(existed: list) -> str: diff --git a/function.py b/function.py index 4f82fa4..73a7828 100644 --- a/function.py +++ b/function.py @@ -130,7 +130,7 @@ async def requests_api(url: str): async def create_account(ctx: commands.Context): if not ctx.author: return - from view import CreateView + from views import CreateView view = CreateView() embed=discord.Embed(title="Do you want to create an account on Vocard?", color=embed_color) embed.description = f"> Plan: `Default` | `5` Playlist | `500` tracks in each playlist." diff --git a/view/__init__.py b/views/__init__.py similarity index 100% rename from view/__init__.py rename to views/__init__.py diff --git a/view/chapter.py b/views/chapter.py similarity index 100% rename from view/chapter.py rename to views/chapter.py diff --git a/view/controller.py b/views/controller.py similarity index 100% rename from view/controller.py rename to views/controller.py diff --git a/view/debug.py b/views/debug.py similarity index 100% rename from view/debug.py rename to views/debug.py diff --git a/view/help.py b/views/help.py similarity index 100% rename from view/help.py rename to views/help.py diff --git a/view/inbox.py b/views/inbox.py similarity index 100% rename from view/inbox.py rename to views/inbox.py diff --git a/view/link.py b/views/link.py similarity index 100% rename from view/link.py rename to views/link.py diff --git a/view/list.py b/views/list.py similarity index 100% rename from view/list.py rename to views/list.py diff --git a/view/lyrics.py b/views/lyrics.py similarity index 100% rename from view/lyrics.py rename to views/lyrics.py diff --git a/view/playlist.py b/views/playlist.py similarity index 100% rename from view/playlist.py rename to views/playlist.py diff --git a/view/search.py b/views/search.py similarity index 100% rename from view/search.py rename to views/search.py diff --git a/voicelink/player.py b/voicelink/player.py index a1a2120..c41d0b1 100644 --- a/voicelink/player.py +++ b/voicelink/player.py @@ -26,7 +26,7 @@ import function as func from math import ceil from asyncio import sleep -from view import InteractiveController +from views import InteractiveController from typing import ( Any, Dict,