From efac1cc33ccf807f3c2b1a176286db24af891c23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?c=C4=83t=C4=83lin?= Date: Thu, 19 Dec 2024 18:18:37 +0100 Subject: [PATCH] chore: update to v0.2.4 and remove useless code --- charts/huesoporro/Chart.yaml | 4 +-- charts/huesoporro/values.yaml | 2 +- pyproject.toml | 2 +- src/huesoporro/bot.py | 48 ----------------------------------- uv.lock | 2 +- 5 files changed, 5 insertions(+), 53 deletions(-) diff --git a/charts/huesoporro/Chart.yaml b/charts/huesoporro/Chart.yaml index 1c6576a..22ca75f 100644 --- a/charts/huesoporro/Chart.yaml +++ b/charts/huesoporro/Chart.yaml @@ -15,10 +15,10 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.3 +version: 0.2.4 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to # follow Semantic Versioning. They should reflect the version the application is using. # It is recommended to use it with quotes. -appVersion: "0.2.3" +appVersion: "0.2.4" diff --git a/charts/huesoporro/values.yaml b/charts/huesoporro/values.yaml index ae50d59..48b749a 100644 --- a/charts/huesoporro/values.yaml +++ b/charts/huesoporro/values.yaml @@ -11,7 +11,7 @@ image: # This sets the pull policy for images. pullPolicy: Always # Overrides the image tag whose default is the chart appVersion. - tag: "0.2.3" + tag: "0.2.4" # This is for the secretes for pulling an image from a private repository more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ imagePullSecrets: [] diff --git a/pyproject.toml b/pyproject.toml index 9333e7f..5b913bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "huesoporro" -version = "0.2.3" +version = "0.2.4" description = "Misc Twitch bots" readme = "README.md" authors = [ diff --git a/src/huesoporro/bot.py b/src/huesoporro/bot.py index fae650e..e6b3c36 100644 --- a/src/huesoporro/bot.py +++ b/src/huesoporro/bot.py @@ -114,54 +114,6 @@ class Bot(commands.Bot): self.generation_routine.cancel() -class SaveMessagesCog2(commands.Cog): - def __init__(self, bot): - self.bot = bot - self.store_svc = SentenceStorerSvc(db=MarkovDB(channel=bot.channel)) - self.hello_svc = HelloGeneratorSvc() - self.backoff_svc = BackoffService() - - @commands.Cog.event() - async def event_message(self, message): - content = message.content - if content.startswith("!"): - return - - if not message.author: - return - - await self.store_svc.run(content) - - if message.content in ["hola", "HOLA", "hiii", "ayo"]: - hello_message = self.hello_svc.run(message.author.name) - await message.channel.send(hello_message) - return - - if message.content == "Yes": - await message.channel.send("Indeed") - return - - if message.content.startswith("WHAT"): - await message.channel.send("WHAT Ramon") - return - - laughs_messages = [ - "om", - "KEK", - "LuL", - "LUL", - "OMEGALUL", - "kek", - "keking", - "KEKW", - "OMEGADANCEBUTFAST", - ] - - if message.content in laughs_messages: - await message.channel.send(random.choice(laughs_messages)) # noqa: S311 - return - - class MessageType(StrEnum): COMMAND = "COMMAND" HELLO = "HELLO" diff --git a/uv.lock b/uv.lock index 458a1a4..c6caf63 100644 --- a/uv.lock +++ b/uv.lock @@ -460,7 +460,7 @@ wheels = [ [[package]] name = "huesoporro" -version = "0.2.3" +version = "0.2.4" source = { virtual = "." } dependencies = [ { name = "aiosqlite" },