Merge pull request #29 from h1ddenpr0cess20/dev

removed unnecessary if statements
This commit is contained in:
Dustin 2024-08-25 21:28:07 -04:00 committed by GitHub
commit 8afe06fa09
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -141,10 +141,8 @@ class ollamarama:
async def ai(self, channel, message, sender, x=False):
try:
if x:
if len(message) > 2:
if x and message[2]:
name = message[1]
if message[2]:
message = message[2:]
if channel in self.messages:
for user in self.messages[channel]: