Skip to content

Commit

Permalink
update for 2023 and bump python version
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay-Madden committed Dec 1, 2023
1 parent c13fc50 commit 05438c8
Show file tree
Hide file tree
Showing 5 changed files with 399 additions and 439 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.10-slim-buster
FROM python:3.12-slim-buster

WORKDIR /Bot
ADD . /Bot
Expand Down
4 changes: 3 additions & 1 deletion leaderboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@
from discord.ext import commands, tasks
import logging

from main import AoCLeaderboardBot

log = logging.getLogger("bot")

ICON_URL = "https://camo.githubusercontent.com/5dd06562878c98a85ffc0703941a73947b2c2cfafa7f1f3875e7de7aa39c01bb/68747470733a2f2f7062732e7477696d672e636f6d2f6d656469612f45467332316d30585941496a7134543f666f726d61743d6a7067266e616d653d6c61726765"


class LeaderboardCog(commands.Cog):
def __init__(self, bot: commands.Bot):
def __init__(self, bot: AoCLeaderboardBot):
self.bot = bot
self.update_leaderboard.start()
self.leaderboard_endpoint = bot.config["LeaderboardEndpoint"]
Expand Down
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
class AoCLeaderboardBot(commands.Bot):
def __init__(self, config, *args, **kwargs):
super().__init__(*args, **kwargs)
self.config = config
self.config: dict[str, str] = config
log.info("Leaderboard Cog loaded")

async def setup_hook(self):
Expand Down
Loading

0 comments on commit 05438c8

Please sign in to comment.