chore: update to v0.2.4 and remove useless code
This commit is contained in:
parent
3bc4e19de1
commit
efac1cc33c
5 changed files with 5 additions and 53 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue