Skip to content

Commit 3edb618

Browse files
authored
Update active_threads_command.py
1 parent 44050f4 commit 3edb618

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

active_threads_command.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,15 @@ def update_instructions_string(self):
135135
> :{self.settings["up"]["emoji"]}: = {self.settings["up"]["description"]}
136136
> :{self.settings["dying"]["emoji"]}: = {self.settings["dying"]["description"]}
137137
> (nombre de messages écrits dans les 6 dernières heures)
138+
"""
138139

140+
def add_channel_and_threads_to_messages(self, channel_and_threads):
141+
self.complete_last_message('\n\n\n')
142+
self.complete_last_message(channel_and_threads["channel"].mention)
143+
144+
for thread in channel_and_threads["threads"]:
145+
self.add_thread_to_messages(thread)
146+
147+
def complete_last_message(self, string_to_add):
148+
last_message_length = len(self.messages[-1])
149+
string_to_add_length = len(string_to_add)

0 commit comments

Comments
 (0)