Sfoglia il codice sorgente

Added a role to the /unit command

BaumSplitter41 1 mese fa
parent
commit
74d234f270
2 ha cambiato i file con 4 aggiunte e 2 eliminazioni
  1. 3 1
      VPD_BOT/cogs/unit.py
  2. 1 1
      VPD_BOT/config.cfg

+ 3 - 1
VPD_BOT/cogs/unit.py

@@ -73,9 +73,11 @@ class unit(commands.Cog):
             unit_role = units[2]
         elif unit == "Air Support":
             unit_role = units[3]
+        elif unit == "SAR":
+            unit_role == units[4]
         elif unit == "Help":
             unit_role = None
-            help_text = "Available Units:\n- Detective\n- SWAT\n- Canine\n- Air Support"
+            help_text = "Available Units:\n- Detective\n- SWAT\n- Canine\n- Air Support\n - SAR"
             await ctx.respond(help_text, ephemeral=True)
             return
         else:

+ 1 - 1
VPD_BOT/config.cfg

@@ -42,7 +42,7 @@ ping_role_id = 1459945390571782245, 1459945659548565634, 1469776566882930690
 [Role Management]
 department1_command = 1451668309648084992
 department1_ranks = 1459935618371948743, 1459935662102020279, 1459935773108338921, 1459935923608223766, 1459945390571782245, 1459945659548565634, 1459936064612466861, 1459936186922700912, 1459936215766667448, 1459936269168541736, 1459936307974373427 
-department1_units = 1448793349627838556, 1450499400488058930, 1461039851762876584, 1461039891633803364
+department1_units = 1448793349627838556, 1450499400488058930, 1461039851762876584, 1461039891633803364, 1483362702876475412
 department1_head_unit = 1461050183000391680