Skip to content

Commit

Permalink
cogs/utils ディレクトリを廃止
Browse files Browse the repository at this point in the history
  • Loading branch information
1ntegrale9 committed Oct 3, 2023
1 parent d0b155b commit bbaabc5
Show file tree
Hide file tree
Showing 11 changed files with 12 additions and 12 deletions.
Empty file added application/__init__.py
Empty file.
File renamed without changes.
2 changes: 1 addition & 1 deletion cogs/utils/game.py → application/game.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from typing import Optional
from cogs.utils.player import Player, Players
from application.player import Player, Players


class Game():
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion cogs/players.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from discord.ext import commands
from cogs.utils.player import Player
from application.player import Player


class PlayersCog(commands.Cog):
Expand Down
4 changes: 2 additions & 2 deletions cogs/status.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import random
from discord.ext import commands
from cogs.utils.roles import simple
from cogs.utils.errors import PermissionNotFound, NotGuildChannel
from application.roles import simple
from application.errors import PermissionNotFound, NotGuildChannel


class GameStatus(commands.Cog):
Expand Down
8 changes: 4 additions & 4 deletions cogs/vote.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import discord
from discord.ext import commands
from cogs.utils import errors
from cogs.utils.game import Game
from cogs.utils.player import Players
from cogs.utils.pagenator import Pagenator
from application import errors
from application.game import Game
from application.player import Players
from application.pagenator import Pagenator


class Vote(commands.Cog):
Expand Down
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import os
import traceback
from discord.ext import commands
from cogs.utils.game import Game
from cogs.utils.errors import PermissionNotFound, NotGuildChannel, NotDMChannel
from application.game import Game
from application.errors import PermissionNotFound, NotGuildChannel, NotDMChannel

bot = commands.Bot(command_prefix='/')
bot.game = Game()
Expand Down
4 changes: 2 additions & 2 deletions tests/test_game.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import pytest
from cogs.utils.game import Game
from cogs.utils.player import Player
from application.game import Game
from application.player import Player

player1 = Player(1)
player2 = Player(2)
Expand Down

0 comments on commit bbaabc5

Please sign in to comment.