-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmessages.py
55 lines (38 loc) · 3.13 KB
/
messages.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import inspect
from typing import Dict
import config
REGISTER_MESSAGE: str = inspect.cleandoc("""*Welcome to WiCHacks!*
*To Check-In*: Before you access our Discord server, we’ll need to verify your account. Please click the emoji below to get started.
*Notes:*
*Please make sure that you have a country on your WiCHacks application
*Please allow “Allow direct message from server members" to get a message from our bot
If you are a volunteer or mentor, please message in #check-in-desk for assistance """)
def setup_message(url: str):
return f"Click this link to setup authbot-wic: {url}"
def user_setup(name: str, auth_url: str) -> str:
return inspect.cleandoc(f"""Hi {name}! Welcome to WiCHacks. There's a few things I need to have you do in order to check you in.
First, open the following link to connect your WiCHacks registration to your Discord: {auth_url}
""")
MISSING_QUESTIONNAIRE = inspect.cleandoc(f"""Uh oh, it looks like we can't retrieve your questionnaire.
Make sure you are signed with the same account you applied to at {config.APPLY_URL}
Try clicking the 👩💻 in WiCHacks's Discord server again to restart the check-in process. If this happens again, contact an admin for help.""")
PENDING = inspect.cleandoc("""Uh oh, it looks like you haven't received an acceptance to WiCHacks.
If you do receive an acceptance just click the 👩💻 in WiCHacks's Discord server again, and I can get you set up!""")
ACCEPTED = RSVP_CONFIRMED = inspect.cleandoc("Awesome, you're all set to join! I've given you access to the channels and reformatted your name to match the event requirements.")
WAITLIST = LATE_WAITLIST = inspect.cleandoc("""Hang tight, it looks like you haven't received an acceptance to WiCHacks and you're on the waitlist.
If you do receive an acceptance just click the 👩💻 in WiCHacks's Discord server again, and I can get you set up!""")
DENIED = inspect.cleandoc("""Uh oh, it looks like you haven't received an acceptance to WiCHacks. We were overjoyed with the number of applicants we received, but unfortunately we can not accept everyone due to capacity.
We invite you to apply again next year. There are plenty of other hackathons this season, and it may not be too late to apply for those. Checkout https://mlh.io to find out more information.""")
RSVP_DENIED = inspect.cleandoc("""Uh oh, it looks like you told us you weren't coming. We've updated your RSVP to say you are here.
You're all set to join! I've given you access to the channels and reformatted your name to match the event requirements.""")
MISSING_INFORMATION = inspect.cleandoc(f"""Uh oh, it looks like you account is missing some information! Go here to the following link to fix the problem: {config.APPLY_URL}.
Once done, come back and click the 👩💻 in WiCHacks's Discord server again, and I can get you set up!""")
ACC_STATUS_MESSAGES: Dict[str, str] = {
"pending": PENDING,
"accepted": ACCEPTED,
"rsvp_confirmed": RSVP_CONFIRMED,
"waitlist": WAITLIST,
"late_waitlist": LATE_WAITLIST,
"denied": DENIED,
"rsvp_denied": RSVP_DENIED
}