From 75d5cda3f0aad6722e045e0956130fc941105fd1 Mon Sep 17 00:00:00 2001 From: SnakeBlanket Date: Sun, 31 Jul 2022 23:29:55 +0900 Subject: [PATCH] style(*): isort formatting --- cogs/listener.py | 4 ++-- cogs/marble/dice.py | 6 ++++-- cogs/marble/play.py | 8 ++++---- cogs/user.py | 3 ++- utils/database.py | 4 +++- utils/game.py | 3 ++- 6 files changed, 17 insertions(+), 11 deletions(-) diff --git a/cogs/listener.py b/cogs/listener.py index c8edef9..1a15304 100644 --- a/cogs/listener.py +++ b/cogs/listener.py @@ -1,12 +1,12 @@ +import asyncio import datetime import logging -import asyncio import discord from discord.ext import commands -from utils.embed import Embed from utils.database import UserDatabase +from utils.embed import Embed class Listener(commands.Cog): diff --git a/cogs/marble/dice.py b/cogs/marble/dice.py index 7d89b9f..b412490 100644 --- a/cogs/marble/dice.py +++ b/cogs/marble/dice.py @@ -1,8 +1,10 @@ +import random + import discord from discord.ext import commands -import random -from utils.respond import send_response + from utils.json_util import loadjson, savejson +from utils.respond import send_response class DiceCog(commands.Cog): diff --git a/cogs/marble/play.py b/cogs/marble/play.py index daad973..3df80fd 100644 --- a/cogs/marble/play.py +++ b/cogs/marble/play.py @@ -1,19 +1,19 @@ -import os import asyncio import datetime import logging +import os import shutil import discord from discord.commands import Option from discord.ext import commands -from utils.embed import Embed +from utils.basic_util import is_text_channel, is_thread from utils.database import UserDatabase +from utils.embed import Embed +from utils.game import marble_game from utils.json_util import loadjson, savejson from utils.respond import send_response -from utils.game import marble_game -from utils.basic_util import is_text_channel, is_thread class marble_play(commands.Cog): diff --git a/cogs/user.py b/cogs/user.py index 3ac1b7f..610718f 100644 --- a/cogs/user.py +++ b/cogs/user.py @@ -1,11 +1,12 @@ import datetime + import aiohttp import discord from discord.ext import commands import config -from utils.embed import Embed from utils.database import UserDatabase +from utils.embed import Embed class ConfirmButton(discord.ui.View): diff --git a/utils/database.py b/utils/database.py index 070e8da..143fff7 100644 --- a/utils/database.py +++ b/utils/database.py @@ -1,6 +1,8 @@ -import motor.motor_asyncio import asyncio import datetime + +import motor.motor_asyncio + import config client = motor.motor_asyncio.AsyncIOMotorClient(config.Setting.database.uri)[ diff --git a/utils/game.py b/utils/game.py index 88d2f1e..b86bde1 100644 --- a/utils/game.py +++ b/utils/game.py @@ -1,8 +1,9 @@ -import discord import datetime import json import logging +import discord + from utils.embed import Embed from utils.json_util import loadjson, savejson from utils.respond import send_response