Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 23, 2023
1 parent fbc4ab8 commit 76d5176
Show file tree
Hide file tree
Showing 12 changed files with 7 additions and 11 deletions.
6 changes: 5 additions & 1 deletion Backend/crud/destiny/discordUsers.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ async def insert_profile(

# split the state
(discord_id, guild_id, channel_id) = state.split(":")
discord_id, guild_id, channel_id, = (
(
discord_id,
guild_id,
channel_id,
) = (
int(discord_id),
int(guild_id),
int(channel_id),
Expand Down
1 change: 1 addition & 0 deletions Backend/database/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ class ElevatorServers(Base):
################################################################
# Roles


# for activities
class RolesActivity(Base):
__tablename__ = "rolesActivity"
Expand Down
1 change: 0 additions & 1 deletion ElevatorBot/commands/a_destiny/roles/missing.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class RoleMissing(BaseModule):
)
@default_user_option()
async def missing(self, ctx: ElevatorInteractionContext, user: Member = None):

# get the roles missing and send that
roles = Roles(ctx=ctx, guild=ctx.guild, member=user or ctx.author)
await roles.get_missing()
Expand Down
1 change: 0 additions & 1 deletion ElevatorBot/commands/a_destiny/website.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@


class Website(BaseModule):

system_to_name = {1: "xb", 2: "ps", 3: "pc"}

@slash_command(
Expand Down
1 change: 0 additions & 1 deletion ElevatorBot/commands/b_miscellaneous/boosters.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class Boosters(BaseModule):
dm_permission=False,
)
async def boosters(self, ctx: ElevatorInteractionContext):

sorted_premium_subscribers: list[Member] = sorted(
ctx.guild.premium_subscribers, key=lambda m: m.premium_since, reverse=True
)
Expand Down
1 change: 0 additions & 1 deletion ElevatorBot/commands/b_miscellaneous/calculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
class CalculatorCommand(BaseModule):
@slash_command(name="calculator", description="Summons a handy calculator", dm_permission=False)
async def calculator(self, ctx: ElevatorInteractionContext):

calc = Calculator(ctx)
await calc.start()

Expand Down
1 change: 0 additions & 1 deletion ElevatorBot/commands/b_miscellaneous/funfact.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class FunFact(BaseModule):
dm_permission=False,
)
async def fun_fact(self, ctx: ElevatorInteractionContext):

url = "https://uselessfacts.jsph.pl/random.json?language=en"

async with aiohttp.ClientSession(json_serialize=lambda x: orjson.dumps(x).decode()) as session:
Expand Down
1 change: 0 additions & 1 deletion ElevatorBot/commands/b_miscellaneous/muteMe.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ class MuteMe(BaseModule):
)
@default_user_option()
async def mute_me(self, ctx: ElevatorInteractionContext, user: Member = None):

# no mentioning others here smiley face
if user:
await ctx.send("I saw what you did there, that doesn't work here mate")
Expand Down
1 change: 0 additions & 1 deletion ElevatorBot/networking/destiny/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@

@dataclasses.dataclass
class DestinyAccount(BaseBackendConnection):

discord_guild: Guild

async def set_transmog(self, character_id: int):
Expand Down
1 change: 0 additions & 1 deletion ElevatorBot/networking/destiny/clan.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@

@dataclasses.dataclass
class DestinyClan(BaseBackendConnection):

discord_guild: Guild

discord_member: Member = dataclasses.field(init=False, default=None)
Expand Down
1 change: 0 additions & 1 deletion ElevatorBot/networking/destiny/roles.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@

@dataclasses.dataclass
class DestinyRoles(BaseBackendConnection):

discord_guild: Optional[Guild]

async def get(self) -> EarnedRolesModel:
Expand Down
2 changes: 1 addition & 1 deletion ElevatorBot/static/emojis.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def __init__(self):
# !!!
# Either the moji id must be correct, or the emoji name on discord must be the same as in the class here
# !!!

# DESCEND [BL]

self.kinetic: CustomEmoji | int = 906180170875031562
Expand Down

0 comments on commit 76d5176

Please sign in to comment.