Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -13,13 +13,13 @@ bot = commands.Bot(command_prefix='!', intents=intents)
|
|
13 |
|
14 |
welcome_list = []
|
15 |
welcome_messages = [
|
16 |
-
"Welcome to the community :hugging_croissant:",
|
17 |
"Good to have you with us! :hugging: Got any cool projects you feel like sharing? :eyes:",
|
18 |
"Welcome aboard π¦ β΅",
|
19 |
-
"Hello friends! :wave: Where are you folks from? :
|
20 |
"Glad you're here! Welcome! π",
|
21 |
-
"
|
22 |
-
"
|
23 |
]
|
24 |
welcome_messages_counter = 0
|
25 |
|
@@ -31,7 +31,7 @@ async def on_member_join(member):
|
|
31 |
welcome_list.append(member.mention)
|
32 |
if len(welcome_list) > 4:
|
33 |
channel = bot.get_channel(1100458786826747945)
|
34 |
-
message = f'{welcome_messages[welcome_messages_counter]}'
|
35 |
if welcome_messages_counter == 6:
|
36 |
welcome_messages_counter == -1
|
37 |
welcome_messages_counter = welcome_messages_counter + 1
|
|
|
13 |
|
14 |
welcome_list = []
|
15 |
welcome_messages = [
|
16 |
+
"Welcome to the community :hugging_croissant: ",
|
17 |
"Good to have you with us! :hugging: Got any cool projects you feel like sharing? :eyes:",
|
18 |
"Welcome aboard π¦ β΅",
|
19 |
+
"Hello friends! :wave: Where are you folks from? :globe_with_meridians: :hugging_earth: "
|
20 |
"Glad you're here! Welcome! π",
|
21 |
+
"Happy to have you with us! :blobcatlove: How much have you played around with ML/AI? :laptop:",
|
22 |
+
"New faces, new friends! Welcome! ππ"
|
23 |
]
|
24 |
welcome_messages_counter = 0
|
25 |
|
|
|
31 |
welcome_list.append(member.mention)
|
32 |
if len(welcome_list) > 4:
|
33 |
channel = bot.get_channel(1100458786826747945)
|
34 |
+
message = f'{welcome_messages[welcome_messages_counter]} {welcome_list[0]} {welcome_list[1]} {welcome_list[2]} {welcome_list[3]}'
|
35 |
if welcome_messages_counter == 6:
|
36 |
welcome_messages_counter == -1
|
37 |
welcome_messages_counter = welcome_messages_counter + 1
|