chore: update to v0.2.4 and remove useless code

This commit is contained in:
cătălin 2024-12-19 18:18:37 +01:00
commit 24c52cafc5
No known key found for this signature in database
5 changed files with 5 additions and 53 deletions

View file

@ -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"

View file

@ -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: []

View file

@ -1,6 +1,6 @@
[project]
name = "huesoporro"
version = "0.2.3"
version = "0.2.4"
description = "Misc Twitch bots"
readme = "README.md"
authors = [

View file

@ -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"

2
uv.lock generated
View file

@ -460,7 +460,7 @@ wheels = [
[[package]]
name = "huesoporro"
version = "0.2.3"
version = "0.2.4"
source = { virtual = "." }
dependencies = [
{ name = "aiosqlite" },