forked from Just-Some-Bots/MusicBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample_permissions.ini
148 lines (141 loc) · 5.61 KB
/
example_permissions.ini
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
; DON'T OPEN THIS FILE WITH NOTEPAD. If you don't have a preferred text editor, use notepad++ or any other modern text editor.
;
; If you edit this file, Save-As permissions.ini
;
;
; Basics:
; - Semicolons are comment characters, any line that starts with one is ignored.
; - Sections headers are permissions groups, they're the lines that have a word in [Brackets]. You can add more for more permissions groups.
; - Options with a semicolon before them will be ignored.
; - Add whatever permissions you want, but always have at least one.
; - Never have an options without a value, i.e. "CommandBlacklist = "
; - [Default] is a special section. Any user that doesn't get assigned to a group via role or UserList gets assigned to this group.
;
;
; Option info:
;
; [Groupname]
; This is the section header. The word is the name of the group, just name it something appropriate for its permissions.
;
; CommandWhitelist = command1 command2
; List of commands users are allowed to use, separated by spaces. Don't include the prefix, i.e. ! Overrides CommandBlacklist if set.
;
; CommandBlacklist = command1 command2
; List if commands users are not allowed to use. You don't need to use both
; whitelist and blacklist since blacklist gets overridden. Just pick one.
;
; IgnoreNonVoice = command1 command2
; List of commands that the user is required to be in the same voice channel as the bot to use.
; For example, if you don't want the user to be able to voteskip songs while not in the voice channel, add skip to this option.
;
; GrantToRoles = 111222333444555 999888777000111
; List of ids to automatically grant this group to. To get the id of a role, use the listids command.
;
; UserList = 21343341324 321432413214321
; List of user ids to grant this group to. This option overrides the role granted by the GrantToRoles option.
;
; MaxSongLength = 600
; Maximum length of a song in seconds. Note: This won't always work if the song data doesn't have duration listed.
; This doesn't happen often, but youtube, soundcloud, etc work fine though. This will be fixed in a future update.
; A value of 0 means unlimited.
;
; MaxSongs = 5
; Maximum number of songs a user is allowed to queue. A value of 0 means unlimited.
;
; MaxPlaylistLength = 10
; Maximum number of songs a playlist is allowed to have to be queued. A value of 0 means unlimited.
;
; MaxSearchItems = 10
; The maximum number of items that can be returned in a search.
;
; AllowPlaylists = yes
; Whether or not the user is allowed to queue entire playlists.
;
; InstaSkip = no
; Allows the user to skip a song without having to vote, like the owner.
;
; Remove = no
; Allows the user to remove any song from the queue at any point.
;
; SkipWhenAbsent = yes
; Tells the bot to automatically skip songs queued by people in this group who have left the voice channel after queueing.
; Will only skip once the song is about to play.
;
; BypassKaraokeMode = no
; Allows the user to queue songs even when karaoke mode is activated.
;
; Extractors = example1 example2
; Specify the name of youtube-dl extractors that people will be able to play using the bot. Seperated by spaces.
; This is to allow restriction of playing porn videos through the bot, as these are supported by yt-dl. Leave blank to allow all.
; For a list of possible extractors, see https://github.com/rg3/youtube-dl/tree/master/youtube_dl/extractor
;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; I've set some example groups, these should be fine. Just add your roles or users and you should be good to go.
;;;;;;;;;;;;;;;;;;;
;
; AND HEY.
; Before you ask any dumb "how do I do this" questions in the help server, you should probably read that big comment I put time
; into writing for this exact purpose. It tells you how to use every option. Your question is probably answered there.
;
;;;;;;;;;;;;;;;;;;;
; This is the fallback group for any users that don't get assigned to another group. Don't remove/rename this group.
; You cannot assign users or roles to this group. Those options are ignored.
[Default]
CommandWhitelist = play perms queue np skip search id help clean
; CommandBlacklist =
IgnoreNonVoice = play skip search
MaxSongLength = 1200
MaxSongs = 0
MaxSearchItems = 10
AllowPlaylists = yes
; MaxPlaylistLength = 20
InstaSkip = no
Remove = no
SkipWhenAbsent = no
BypassKaraokeMode = no
Extractors = generic youtube soundcloud
; This group has full permissions.
[MusicMaster]
; GrantToRoles =
; UserList =
MaxSongLength = 0
MaxSongs = 0
MaxPlaylistLength = 0
MaxSearchItems = 20
AllowPlaylists = yes
InstaSkip = yes
Remove = yes
SkipWhenAbsent = no
BypassKaraokeMode = yes
Extractors =
; This group can't use the blacklist and listids commands, but otherwise has full permissions.
[DJ]
CommandBlacklist = blacklist listids
; GrantToRoles =
; UserList =
MaxSongLength = 0
MaxSongs = 0
MaxPlaylistLength = 0
MaxSearchItems = 20
AllowPlaylists = yes
InstaSkip = yes
Remove = yes
SkipWhenAbsent = no
BypassKaraokeMode = yes
Extractors = generic youtube soundcloud
; This group can only use the listed commands, can only use play/skip when in the bot's voice channel,
; can't request songs longer than 3 and a half minutes, and can only request a maximum of 8 songs at a time.
[Limited]
CommandWhitelist = play queue np perms help skip
; CommandBlacklist =
IgnoreNonVoice = play skip
; GrantToRoles =
MaxSongLength = 210
MaxSongs = 8
MaxSearchItems = 10
AllowPlaylists = yes
InstaSkip = no
Remove = no
SkipWhenAbsent = yes
BypassKaraokeMode = no
Extractors = youtube