1+ const { owners, trusted } = require ( "./grouping.json" ) ;
12module . exports = async ( client ) => {
2- let myID = 251091302303662080
3-
43 // Bot configs
54 client . config = {
65 "prefix" : "`" ,
7- "owner" : myID
6+ "owner" : "251091302303662080"
87 }
98 //Default prefix on start
109 client . prefix = client . config . prefix
@@ -15,24 +14,37 @@ module.exports = async (client) => {
1514 // Unique ids for interaction buttons
1615 client . customId = ( id ) => `${ id } |${ new Date ( ) . valueOf ( ) } ` ;
1716
18-
1917 // Bot Owners that can do Owner Commands
2018 client . owners = new client . discord . Collection ( ) ;
21- client . owners . set ( "emp" , myID )
22- // client.owners.set("Moist", "184157133187710977")
19+ // owners.forEach(owner => {
20+ // let key = Object.keys(owner)[0];
21+ // let value = Object.values(owner)[0];
22+ // client.owners.set(key, value)
23+ // })
24+ owners . forEach ( ( owner ) => {
25+ Object . entries ( owner ) . forEach ( ( [ key , value ] ) => {
26+ client . owners . set ( key , value )
27+ } )
28+ } )
29+
30+ client . trusted = new client . discord . Collection ( ) ;
31+ trusted . forEach ( ( trustee ) => {
32+ Object . entries ( trustee ) . forEach ( ( [ key , value ] ) => {
33+ client . trusted . set ( key , value )
34+ } )
35+ } )
36+
37+ // trusted.forEach(trustee => {
38+ // console.log(trustee);
39+ // let key, value = Object.entries(trustee);
40+ // client.trusted.set(key, value)
41+ // })
42+ // for (const [key, value] of Object.entries(trusted)) client.trusted.set(key, value);
43+ console . log ( client . trusted )
2344
2445 client . invis = "" ;
2546
26-
27-
28-
29- /**
30- * PROTOTYPES
31- */
32-
3347 String . prototype . capitalize = function ( ) {
3448 return this . charAt ( 0 ) . toUpperCase ( ) + this . slice ( 1 ) ;
3549 }
36-
37- // client.guilds.cache.every(async x => await x.members.fetch())
38- }
50+ }
0 commit comments