1
- # Author: Loki
2
- # Discord: loki_101
3
-
4
-
5
1
import discord
6
2
import random
7
3
import logging
18
14
19
15
# Define map sets for different game modes
20
16
map_sets = {
21
- "Control" : ["Busan" , "Ilios" , "Lijang Tower" , "Nepal" , "Oasis" , "Antarctic Peninsula" ],
17
+ "Control" : ["Busan" , "Ilios" , "Lijang Tower" , "Nepal" , "Oasis" , "Antarctic Peninsula" , "Samoa" ],
22
18
"Escort" : ["Circuit Royal" , "Dorado" , "Havana" , "Junkertown" , "Rialto" , "Route 66" , "Shambali Monastery" , "Watchpoint Gibraltar" ],
23
19
"Flashpoint" : ["New Junk City" , "Suravasa" ],
24
20
"Hybrid" : ["Blizzard World" , "Eichenwalde" , "Hollywood" , "King's Row" , "Midtown" , "Numbani" , "Paraiso" ],
21
+ "Assault" : ["Hanamura" , "Horizon Lunar Colony" , "Paris" , "Temple of Anubis" , "Volskaya Industries" ],
25
22
"Push" : ["Colosseo" , "Esperanca" , "New Queen Street" ]
26
23
}
27
24
@@ -35,14 +32,15 @@ def __init__(self, user_id, ctx):
35
32
36
33
# Dropdown menu for category selection
37
34
@discord .ui .select (
38
- placeholder = "Select exactly 3 categories" ,
39
- min_values = 3 ,
40
- max_values = 3 ,
35
+ placeholder = "Select exactly 4 categories" ,
36
+ min_values = 4 ,
37
+ max_values = 4 ,
41
38
options = [
42
39
discord .SelectOption (label = "Control" ),
43
40
discord .SelectOption (label = "Escort" ),
44
41
discord .SelectOption (label = "Flashpoint" ),
45
42
discord .SelectOption (label = "Hybrid" ),
43
+ discord .SelectOption (label = "Assault" ),
46
44
discord .SelectOption (label = "Push" )
47
45
]
48
46
)
@@ -124,7 +122,7 @@ async def map_vote(ctx, captain1: discord.User, captain2: discord.User):
124
122
125
123
# Create dropdown for Team Captain 1
126
124
view1 = CategorySelect (captain1 .id , ctx )
127
- await ctx .respond (f"{ captain1 .mention } , please select 3 categories." , view = view1 )
125
+ await ctx .respond (f"{ captain1 .mention } , please select 4 categories." , view = view1 )
128
126
await view1 .wait ()
129
127
130
128
# Team Captain 1's selection
@@ -133,7 +131,7 @@ async def map_vote(ctx, captain1: discord.User, captain2: discord.User):
133
131
134
132
# Create dropdown for Team Captain 2
135
133
view2 = CategorySelect (captain2 .id , ctx )
136
- await ctx .send (f"{ captain2 .mention } , please select 3 categories." , view = view2 )
134
+ await ctx .send (f"{ captain2 .mention } , please select 4 categories." , view = view2 )
137
135
await view2 .wait ()
138
136
139
137
# Team Captain 2's selection
@@ -203,7 +201,7 @@ async def mapvote(ctx,
203
201
captain1 : discord .Option (discord .SlashCommandOptionType .user , description = "Team Captain 1" ),
204
202
captain2 : discord .Option (discord .SlashCommandOptionType .user , description = "Team Captain 2" )):
205
203
206
- required_role_id = CHANGE_ME # Staff role ID goes here, or @everyone role ID to disable
204
+ required_role_id = 458833002643062804
207
205
member = ctx .guild .get_member (ctx .author .id )
208
206
209
207
# Check if the user has the required role
@@ -218,5 +216,5 @@ async def mapvote(ctx,
218
216
logging .error (f"Exception in mapvote: { e } " )
219
217
await ctx .send ("An error occurred. Please try again." )
220
218
221
- # Run the bot
219
+ # Run the bot - your Discord Bot's token goes here
222
220
bot .run ("CHANGE_ME" )
0 commit comments