Badger Docs
Search…
SimpleRoleBot

Installation

  • Click on New Application then name the bot what you would like (however SimpleRoleBot makes the most sense)
  • Click on Bot on the side bar
  • Click on Add Bot
1
#############################
2
### SimpleRoleBot ###
3
### created by ###
4
### Badger ###
5
#############################
6
BotToken: ''
7
RoleConfiguration:
8
693833984173408328: # Staff Role
9
- '*' # All Permission for every role below their highest role
10
693901091678716006: # National Guard OIC
11
- '694065977398132738' # National Guard HC
12
- '694065982565515265' # National Guard FTO
13
- '694065982565515265' # National Guard Recruiter
14
- '694065988206985244' # Military Police
15
- '694065994850762794' # Civilian Contractor NG
16
- '693900886535307346' # National Guardsmen
17
694065977398132738: # National Guard HC
18
- '694065982565515265' # National Guard FTO
19
- '694065982565515265' # National Guard Recruiter
20
- '694065988206985244' # Military Police
21
- '694065994850762794' # Civilian Contractor NG
22
- '693900886535307346' # National Guardsmen
23
693856860750479371: # CHP Commissioner
24
- '694648106117103728' # CHP High Command
25
- '694648102300287187' # CHP Deputy Commissioner
26
- '694648103193804902' # CHP FTO Evaluation Specialist
27
- '694648104409890897' # CHP Patrol Administration
28
- '694648107018879008' # CHP Assistant Commissioner
29
- '694648108671434902' # CHP Chief
30
- '694648110437236766' # CHP Colonel
31
- '694648111418835076' # CHP Lieutenant Colonel
32
- '694648113520181297' # CHP Major
33
- '694648114438602804' # CHP Captain
34
- '694649104801988618' # CHP Lieutenant
35
- '694649105552638043' # CHP Staff Sergeant
36
- '694649106391629914' # CHP Supervisor
37
- '694649106894815252' # CHP Sergeant
38
- '694649107943260170' # CHP Corporal
39
- '694649108765343786' # CHP Patrol FTO
40
- '694649108778188871' # Trooper First Class
41
- '694649109922971669' # Trooper
42
- '694649111995220560' # Probationary Trooper
43
- '694649112544673850' # CHP Application Handler
44
- '694649758584930404' # CHP Recruitment Team
45
- '694678105503039519' # CHP Supervisor
46
- '693856967445446656' # CHP
47
694648106117103728: # CHP High Command
48
- '694648102300287187' # CHP Deputy Commissioner
49
- '694648103193804902' # CHP FTO Evaluation Specialist
50
- '694648104409890897' # CHP Patrol Administration
51
- '694648107018879008' # CHP Assistant Commissioner
52
- '694648108671434902' # CHP Chief
53
- '694648110437236766' # CHP Colonel
54
- '694648111418835076' # CHP Lieutenant Colonel
55
- '694648113520181297' # CHP Major
56
- '694648114438602804' # CHP Captain
57
- '694649104801988618' # CHP Lieutenant
58
- '694649105552638043' # CHP Staff Sergeant
59
- '694649106391629914' # CHP Supervisor
60
- '694649106894815252' # CHP Sergeant
61
- '694649107943260170' # CHP Corporal
62
- '694649108765343786' # CHP Patrol FTO
63
- '694649108778188871' # Trooper First Class
64
- '694649109922971669' # Trooper
65
- '694649111995220560' # Probationary Trooper
66
- '694649112544673850' # CHP Application Handler
67
- '694649758584930404' # CHP Recruitment Team
68
- '694678105503039519' # CHP Supervisor
69
- '693856967445446656' # CHP
70
693857216725516299: # Sheriff
71
- '694654347962876035' # SO High Command
72
- '694653003184996423' # Chief Deputy
73
- '694653005194199041' # Colonel
74
- '694653007698198630' # Major
75
- '694653017378521098' # Captain
76
- '694653009552211988' # Lieutenant
77
- '694653011569541140' # Sergeant
78
- '694653013259845723' # Corporal
79
- '694653015176773693' # Master Deputy
80
- '694653019253506078' # Senior Deputy
81
- '694653022525194372' # Deputy
82
- '694653021019439174' # Probationary Deputy
83
- '694735836456943666' # SO Awaiting Training
84
- '694654349309378620' # SO FTO
85
- '694654352052322384' # SO Application Handler
86
- '694654353763598336' # SO Supervisor
87
- '693857339672887367' # Sheriff Department
88
694654347962876035: # SO High Command
89
- '694653003184996423' # Chief Deputy
90
- '694653005194199041' # Colonel
91
- '694653007698198630' # Major
92
- '694653017378521098' # Captain
93
- '694653009552211988' # Lieutenant
94
- '694653011569541140' # Sergeant
95
- '694653013259845723' # Corporal
96
- '694653015176773693' # Master Deputy
97
- '694653019253506078' # Senior Deputy
98
- '694653022525194372' # Deputy
99
- '694653021019439174' # Probationary Deputy
100
- '694735836456943666' # SO Awaiting Training
101
- '694654349309378620' # SO FTO
102
- '694654352052322384' # SO Application Handler
103
- '694654353763598336' # SO Supervisor
104
- '693857339672887367' # Sheriff Department
105
693857132902088736: # LAPD Chief of Police
106
- '694650836550287471' # LAPD High Command
107
- '694649763156459550' # LAPD Assistant Chief of Police
108
- '694650813997383711' # LAPD Deputy Chief of Police
109
- '694650815893340271' # LAPD Commander
110
- '694650818472837149' # LAPD Captain
111
- '694650820532371528' # LAPD Lieutenant
112
- '694650822751027200' # LAPD Police Sergeant II
113
- '694650824931934248' # LAPD Police Sergeant
114
- '694650827435933727' # LAPD Corporal
115
- '694650829822623784' # LAPD Police Officer
116
- '694650832452321301' # LAPD Trainee
117
- '694650834285363200' # LAPD Supervisor
118
- '694650838852829268' # LAPD Training Officer
119
- '694650841230999553' # LAPD Application Handler
120
- '693857015663034429' # LAPD
121
694650836550287471: # LAPD High Command
122
- '694649763156459550' # LAPD Assistant Chief of Police
123
- '694650813997383711' # LAPD Deputy Chief of Police
124
- '694650815893340271' # LAPD Commander
125
- '694650818472837149' # LAPD Captain
126
- '694650820532371528' # LAPD Lieutenant
127
- '694650822751027200' # LAPD Police Sergeant II
128
- '694650824931934248' # LAPD Police Sergeant
129
- '694650827435933727' # LAPD Corporal
130
- '694650829822623784' # LAPD Police Officer
131
- '694650832452321301' # LAPD Trainee
132
- '694650834285363200' # LAPD Supervisor
133
- '694650838852829268' # LAPD Training Officer
134
- '694650841230999553' # LAPD Application Handler
135
- '693857015663034429' # LAPD
136
693899388858138685: # Head of Fire/EMS
137
- '694655531133960304' # Deputy Head of Fire/EMS
138
- '694655532740378644' # High Command Fire/EMS
139
- '694655533298483201' # MedEvac Team Leader
140
- '694655535018147941' # Fire Commissioner
141
- '694655536527966258' # Deputy Fire Commissioner
142
- '694655538188779601' # District Chief
143
- '694655539111657523' # Assistant District Chief
144
- '694655540802093097' # Captain
145
- '694655541703606283' # Lieutenant
146
- '694655543192715466' # Firefighter
147
- '694655544555864179' # Probationary Firefighter
148
- '694655545851904011' # Senior Paramedic
149
- '694657765888491601' # Paramedic
150
- '694657770879975545' # EMT
151
- '694657775552430193' # Probationary EMT
152
- '694658269062365187' # Fire/EMS FTO
153
- '694658273407795257' # Sr.Paramedic
154
- '694658277421613056' # Senior Firefighter
155
- '694658280454226161' # MedEvac
156
- '693899961800327309' # Fire/EMS Department
157
694655532740378644: # High Command Fire/EMS
158
- '694655531133960304' # Deputy Head of Fire/EMS
159
- '694655533298483201' # MedEvac Team Leader
160
- '694655535018147941' # Fire Commissioner
161
- '694655536527966258' # Deputy Fire Commissioner
162
- '694655538188779601' # District Chief
163
- '694655539111657523' # Assistant District Chief
164
- '694655540802093097' # Captain
165
- '694655541703606283' # Lieutenant
166
- '694655543192715466' # Firefighter
167
- '694655544555864179' # Probationary Firefighter
168
- '694655545851904011' # Senior Paramedic
169
- '694657765888491601' # Paramedic
170
- '694657770879975545' # EMT
171
- '694657775552430193' # Probationary EMT
172
- '694658269062365187' # Fire/EMS FTO
173
- '694658273407795257' # Sr.Paramedic
174
- '694658277421613056' # Senior Firefighter
175
- '694658280454226161' # MedEvac
176
- '693899961800327309' # Fire/EMS Department
177
693857605159747646: # FAA Director
178
- '693901064847622146' # FAA Deputy Director
179
- '693900243238125620' # FAA FTO
180
- '693900419432448040' # FAA Flight Instructor
181
- '694291765452079166' # FAA Mil-Grade
182
- '693900058659127357' # FAA Commercial
183
- '693899544513216563' # FAA Aircraft
184
- '693899765561294939' # FAA Rotorcraft
185
- '693857675888295976' # FAA Certified
186
- '693899292716302486' # FAA Recruit
187
- '693900790779215912' # FAA
188
- '693900832718061638' # ATC FTO
189
- '693900658473959496' # ATC
190
693900243238125620: # FAA FTO
191
- '693900419432448040' # FAA Flight Instructor
192
- '694291765452079166' # FAA Mil-Grade
193
- '693900058659127357' # FAA Commercial
194
- '693899544513216563' # FAA Aircraft
195
- '693899765561294939' # FAA Rotorcraft
196
- '693857675888295976' # FAA Certified
197
- '693899292716302486' # FAA Recruit
198
- '693900790779215912' # FAA
199
- '693900832718061638' # ATC FTO
200
- '693900658473959496' # ATC
201
- '693901064847622146' # FAA Deputy Director
Copied!
  • You now will want to place that token you copied and place it into the '' that comes after BotToken:
  • After doing this, save the config.yml file
  • Go back to the applications page of the discord developers site
  • Click on OAuth2
  • Do exactly as is done in the GIF on the OAuth2
  • Paste this link you just copied into your browser, then invite the bot to your discord server you'd like the bot on
  • You can invite this bot to as many servers as you'd like, however you will need to set up configurations for roles for each different server you add it to
  • After doing all of this, you will have the bot properly set up to run and work on your server.
  • All you need to do is click start_SimpleRoleBot.bat file to start up the bot

Configuring Permissions via RoleIDs in config.yml

  • You will now navigate to the config.yml file and open it
  • We now need to understand how the configuration works
1
#############################
2
### SimpleRoleBot ###
3
### created by ###
4
### Badger ###
5
#############################
6
BotToken: ''
7
RoleConfiguration:
8
693833984173408328: # Staff Role
9
- '*' # All Permission for every role below their highest role
10
693901091678716006: # National Guard OIC
11
- '694065977398132738' # National Guard HC
Copied!
  • The roles under RoleConfiguration: are known as the RoleID keys
  • The RoleID keys 693901091678716006 and 693901091678716006 are the ID of roles that you will set up permissions for for adding and removing roles from other users
  • All the RoleID values which can be displayed as '*' and '694065977398132738' are also IDs of roles within discord, however these are the IDs of roles that the RoleID key role will be able to add and remove from users
  • Note: 693901091678716006 is the ID of the role National Guard OIC within my discord server
  • Note: 693833984173408328 is the ID of the role Staff within my discord server
  • If you would like to give a role permissions to add/remove roles to users (so long as the role is below their highest role), you will want to give them the '*' permission under their RoleID key
Any further questions and/or concerns?
You may gather more support personally and from other members of the Badger Developer Community over here.
Last modified 1yr ago