Skip to content

Commit

Permalink
Remove dockerignore & old compose, and format code
Browse files Browse the repository at this point in the history
  • Loading branch information
novanai committed Jan 15, 2025
1 parent 754a252 commit 60bbf5a
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 32 deletions.
5 changes: 0 additions & 5 deletions .dockerignore

This file was deleted.

24 changes: 0 additions & 24 deletions docker-compose.yaml

This file was deleted.

4 changes: 3 additions & 1 deletion src/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,12 @@
Base = declarative_base()
Session = async_sessionmaker(bind=engine)


async def init_db() -> None:
async with engine.begin() as conn:
await conn.run_sync(Base.metadata.create_all)


# TODO: add reprs?

class StarboardSettings(Base):
Expand All @@ -23,7 +25,7 @@ class StarboardSettings(Base):
guild = Column(BigInteger, nullable=False, primary_key=True)
channel = Column(BigInteger, nullable=True)
threshold = Column(SmallInteger, nullable=False, default=3)


class Starboard(Base):
__tablename__ = "starboard"
Expand Down
4 changes: 3 additions & 1 deletion src/extensions/boosts.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def build_boost_message(
assert message_type in BOOST_MESSAGE_TYPES

base_message = f"{booster_user.display_name} just boosted the server"
multiple_boosts_message = f" **{number_of_boosts}** times" if number_of_boosts else ""
multiple_boosts_message = (
f" **{number_of_boosts}** times" if number_of_boosts else ""
)

message = base_message + multiple_boosts_message + "!"

Expand Down
5 changes: 4 additions & 1 deletion src/extensions/user_roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,10 @@ async def remove_role(
int(role),
reason=f"{ctx.author} removed role.",
)
await ctx.respond(f"Done! Removed {role_mention(role)} from your roles.", flags=hikari.MessageFlag.EPHEMERAL)
await ctx.respond(
f"Done! Removed {role_mention(role)} from your roles.",
flags=hikari.MessageFlag.EPHEMERAL,
)


@role.set_error_handler
Expand Down

0 comments on commit 60bbf5a

Please sign in to comment.