Skip to content

Commit

Permalink
updated poetry deps
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewj-brown committed May 7, 2023
1 parent 1670083 commit 730c5ea
Show file tree
Hide file tree
Showing 4 changed files with 160 additions and 20 deletions.
157 changes: 155 additions & 2 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ aio-mc-rcon = "^3.2.0"
pytest = "^7.3.1"
pytest-datafiles = "^3.0.0"
python-dotenv = "^1.0.0"
sqlalchemy-stubs = "^0.4"
types-requests = "^2.30.0.0"
types-beautifulsoup4 = "^4.12.0.4"
types-python-dateutil = "^2.8.19.12"
types-pytz = "^2023.3.0.0"

[tool.poetry.scripts]
botdev = "dev.cli:main"
Expand Down
10 changes: 0 additions & 10 deletions uqcsbot/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,23 +34,13 @@ async def setup_hook(self):
await self.web_server()

async def admin_alert(
<<<<<<< Updated upstream
self,
title: str,
colour: discord.Colour,
description: str = None,
footer: str = None,
fields: List[tuple] = None,
fields_inline: bool = True
=======
self,
title: str,
colour: discord.Colour,
description: str | None = None,
footer: str | None = None,
fields: List[tuple] | None = None,
fields_inline: bool = True,
>>>>>>> Stashed changes
):
""" Sends an alert to the admin channel for logging. """
admin_channel = discord.utils.get(self.uqcs_server.channels, name=ADMIN_ALERTS)
Expand Down
8 changes: 0 additions & 8 deletions uqcsbot/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,9 @@ def encode_text(cls, text: str) -> str:
return text.replace("&", "&amp;").replace("<", "&lt;").replace(">", "&gt;")

@classmethod
<<<<<<< Updated upstream
def from_cal_event(cls, cal_event, source: str = "UQCS", recurrence_dt: datetime = None):
=======
def from_cal_event(
cls, cal_event, source: str = "UQCS", recurrence_dt: datetime | None = None
):
>>>>>>> Stashed changes
"""
Converts an ical event to an Event
Expand Down Expand Up @@ -218,16 +214,12 @@ def _handle_calendar(self, calendar) -> List[Event]:

return events

<<<<<<< Updated upstream
async def send_events(self, channel: discord.abc.Messageable, interaction: discord.Interaction = None, *args):
=======
async def send_events(
self,
channel: discord.abc.Messageable,
interaction: discord.Interaction | None = None,
*args,
):
>>>>>>> Stashed changes
current_time = self._get_current_time()
event_filter = EventFilter.from_argument(args)
events = []
Expand Down

0 comments on commit 730c5ea

Please sign in to comment.