Move the cogs into a subdir

This commit is contained in:
Marc Di Luzio 2024-08-13 22:42:52 +01:00
parent 93337ebde9
commit d3cdec3965
6 changed files with 4 additions and 4 deletions

View file

@ -6,9 +6,9 @@ import discord
from discord.ext import commands from discord.ext import commands
import config import config
import state import state
from matchy_cog import MatchyCog from cogs.matchy_cog import MatchyCog
from owner_cog import OwnerCog from cogs.owner_cog import OwnerCog
import match_button import cogs.match_button as match_button
State = state.load_from_file() State = state.load_from_file()

View file

@ -21,7 +21,7 @@ def format_day(time: datetime) -> str:
return f"{day} {num}" return f"{day} {num}"
def format_list(list) -> str: def format_list(list: list) -> str:
"""Format a list into a human readable format of foo, bar and bob""" """Format a list into a human readable format of foo, bar and bob"""
if len(list) > 1: if len(list) > 1:
return f"{', '.join(list[:-1])} and {list[-1]}" return f"{', '.join(list[:-1])} and {list[-1]}"