Compare commits
No commits in common. "86d0075e5d96ba7d99195491fc9134c41098342a" and "472f67b3f60d572e081540d4b504a75298d97c4d" have entirely different histories.
86d0075e5d
...
472f67b3f6
2 changed files with 1 additions and 34 deletions
|
@ -285,14 +285,11 @@ async def match_groups_in_channel(channel: discord.channel, min: int):
|
||||||
strings.matched_up([m.mention for m in group]))
|
strings.matched_up([m.mention for m in group]))
|
||||||
# Set up a thread for this match if the bot has permissions to do so
|
# Set up a thread for this match if the bot has permissions to do so
|
||||||
if channel.permissions_for(channel.guild.me).create_public_threads:
|
if channel.permissions_for(channel.guild.me).create_public_threads:
|
||||||
thread = await channel.create_thread(
|
await channel.create_thread(
|
||||||
name=strings.thread_title([m.display_name for m in group]),
|
name=strings.thread_title([m.display_name for m in group]),
|
||||||
message=message,
|
message=message,
|
||||||
reason="Creating a matching thread")
|
reason="Creating a matching thread")
|
||||||
|
|
||||||
# Send a message with a suggested time to the channel
|
|
||||||
await thread.send(f"{strings.thread_message()} {strings.time_suggestion()}")
|
|
||||||
|
|
||||||
# Close off with a message
|
# Close off with a message
|
||||||
await channel.send(strings.matching_done())
|
await channel.send(strings.matching_done())
|
||||||
# Save the groups to the history
|
# Save the groups to the history
|
||||||
|
|
|
@ -184,36 +184,6 @@ def matched_up(ms): return [
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
@randomised
|
|
||||||
def thread_message(): return [
|
|
||||||
"Hey peeps :)",
|
|
||||||
"How is everyone?",
|
|
||||||
"Bork!",
|
|
||||||
"Hey kiddos :)",
|
|
||||||
"Ahoy!",
|
|
||||||
"Great to see y'all here.",
|
|
||||||
"Icebreaker! What's your favourite pokemon?",
|
|
||||||
"I'm hungry, would a lasagna count as a sandwich?",
|
|
||||||
"What's your favourite keyboard key?",
|
|
||||||
"I'm confused thinking... Is a train just a sideways elevator?",
|
|
||||||
"Humans are weird, why do you have moustaches above your eyes?"
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
@randomised
|
|
||||||
def time_suggestion(): return [
|
|
||||||
"Can I suggest a quick call on Wednesday?",
|
|
||||||
"Remember to organise a chat if you're up for it!",
|
|
||||||
"How about throwing something in the calendar for Friday?",
|
|
||||||
"Would 10am on Thursday work for people?",
|
|
||||||
"How about a call this afternoon?",
|
|
||||||
"Would a chat the start of a weekday work?",
|
|
||||||
"How's about organising a quick call sometime this week?",
|
|
||||||
"When's everyone available for a short hangout?",
|
|
||||||
"It's best to pick a time to drop in a call or meet up, if everyone is up for it!",
|
|
||||||
]
|
|
||||||
|
|
||||||
|
|
||||||
@randomised
|
@randomised
|
||||||
def thread_title(ms): return [
|
def thread_title(ms): return [
|
||||||
f"{format_list(ms)}",
|
f"{format_list(ms)}",
|
||||||
|
|
Loading…
Add table
Reference in a new issue