Move state back out of it's own lil module
This commit is contained in:
parent
c9446605bc
commit
964e1c8f84
10 changed files with 8 additions and 8 deletions
|
@ -5,7 +5,7 @@ import logging
|
||||||
import discord
|
import discord
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
import os
|
import os
|
||||||
from matchy.files.state import load_from_file
|
from matchy.state import load_from_file
|
||||||
import matchy.cogs.matchy
|
import matchy.cogs.matchy
|
||||||
import matchy.cogs.owner
|
import matchy.cogs.owner
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ from datetime import datetime, timedelta, time
|
||||||
|
|
||||||
import matchy.views.match as match
|
import matchy.views.match as match
|
||||||
import matchy.matching as matching
|
import matchy.matching as matching
|
||||||
from matchy.files.state import State, AuthScope
|
from matchy.state import State, AuthScope
|
||||||
import matchy.util as util
|
import matchy.util as util
|
||||||
|
|
||||||
logger = logging.getLogger("cog")
|
logger = logging.getLogger("cog")
|
||||||
|
|
|
@ -3,7 +3,7 @@ Owner bot cog
|
||||||
"""
|
"""
|
||||||
import logging
|
import logging
|
||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
from matchy.files.state import State, AuthScope
|
from matchy.state import State, AuthScope
|
||||||
|
|
||||||
logger = logging.getLogger("owner")
|
logger = logging.getLogger("owner")
|
||||||
logger.setLevel(logging.INFO)
|
logger.setLevel(logging.INFO)
|
||||||
|
|
|
@ -3,7 +3,7 @@ import logging
|
||||||
import discord
|
import discord
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from typing import Protocol, runtime_checkable
|
from typing import Protocol, runtime_checkable
|
||||||
from matchy.files.state import State, ts_to_datetime
|
from matchy.state import State, ts_to_datetime
|
||||||
import matchy.util as util
|
import matchy.util as util
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,7 @@ import logging
|
||||||
import discord
|
import discord
|
||||||
import re
|
import re
|
||||||
|
|
||||||
import matchy.files.state as state
|
import matchy.state as state
|
||||||
import matchy.matching as matching
|
import matchy.matching as matching
|
||||||
|
|
||||||
logger = logging.getLogger("match_button")
|
logger = logging.getLogger("match_button")
|
||||||
|
|
|
@ -5,7 +5,7 @@ import discord
|
||||||
import pytest
|
import pytest
|
||||||
import random
|
import random
|
||||||
import matchy.matching as matching
|
import matchy.matching as matching
|
||||||
import matchy.files.state as state
|
import matchy.state as state
|
||||||
import copy
|
import copy
|
||||||
import itertools
|
import itertools
|
||||||
from datetime import datetime, timedelta
|
from datetime import datetime, timedelta
|
||||||
|
|
|
@ -2,7 +2,7 @@ import discord
|
||||||
import discord.ext.commands as commands
|
import discord.ext.commands as commands
|
||||||
import pytest
|
import pytest
|
||||||
import pytest_asyncio
|
import pytest_asyncio
|
||||||
import matchy.files.state as state
|
import matchy.state as state
|
||||||
import discord.ext.test as dpytest
|
import discord.ext.test as dpytest
|
||||||
|
|
||||||
from matchy.cogs.owner import OwnerCog
|
from matchy.cogs.owner import OwnerCog
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
"""
|
"""
|
||||||
Test functions for the state module
|
Test functions for the state module
|
||||||
"""
|
"""
|
||||||
import matchy.files.state as state
|
import matchy.state as state
|
||||||
import tempfile
|
import tempfile
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue