adding Say command for clones

This commit is contained in:
adator
2024-09-01 16:39:49 +02:00
parent d0c17d69de
commit 351fd6edaf
2 changed files with 44 additions and 4 deletions

View File

@@ -192,6 +192,16 @@ class Connection:
if command == 'JOIN':
channel_to_join = str(response[4])
self.send2socket(f"JOIN {channel_to_join}")
if command == 'SAY':
clone_channel = str(response[4])
message = []
for i in range(5, len(response)):
message.append(response[i])
final_message = ' '.join(message)
self.send2socket(f"PRIVMSG {clone_channel} :{final_message}")
except UnicodeEncodeError:
for data in cmd: