removed unnecessary if statements
This commit is contained in:
parent
b14c704a52
commit
e5636d95ed
@ -141,10 +141,8 @@ class ollamarama:
|
|||||||
|
|
||||||
async def ai(self, channel, message, sender, x=False):
|
async def ai(self, channel, message, sender, x=False):
|
||||||
try:
|
try:
|
||||||
if x:
|
if x and message[2]:
|
||||||
if len(message) > 2:
|
|
||||||
name = message[1]
|
name = message[1]
|
||||||
if message[2]:
|
|
||||||
message = message[2:]
|
message = message[2:]
|
||||||
if channel in self.messages:
|
if channel in self.messages:
|
||||||
for user in self.messages[channel]:
|
for user in self.messages[channel]:
|
||||||
|
Loading…
Reference in New Issue
Block a user