Skip to content

Commit d7876b3

Browse files
committed
Secure The Config
1 parent cee127b commit d7876b3

File tree

5 files changed

+153
-2
lines changed

5 files changed

+153
-2
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@ node_modules
22
.git
33
test
44
.vscode
5-
.config.s.json
5+
.config.s.json
6+
config.json

README.ar.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
```bash
4343
npm install
4444
```
45+
#### **Rename `src/config.example.json` to `src/config.json`**
46+
4547
3. Add your Tokens to `src/config.json`
4648
```json
4749
{

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@
4242
```bash
4343
npm install
4444
```
45+
#### **Rename `src/config.example.json` to `src/config.json`**
46+
4547
3. Add your Tokens to `src/config.json`
4648
```json
4749
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "quranbot",
3-
"version": "1.0.1",
3+
"version": "1.0.0",
44
"main": "src/shard.js",
55
"author": "@Arth | @omar",
66
"contributors": [

src/config.example.json

Lines changed: 146 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,146 @@
1+
{
2+
"settings": {
3+
"nodes": [
4+
{
5+
"identifier": "MindServer",
6+
"host": "lava1.horizxon.studio",
7+
"port": 80,
8+
"password": "horizxon.studio",
9+
"secure": false
10+
}
11+
],
12+
"BOT_TOKEN": "",
13+
"TEST_BOT_TOKEN": "",
14+
"Mongo_DB": "",
15+
"Prefix": "/",
16+
"Basic_Lang": "AR",
17+
"Status": "DND",
18+
"Type": "PLAYING",
19+
"Activity": "/help",
20+
"Owner_ID": [],
21+
"Basis_permissions": [
22+
"MANAGE_GUILD",
23+
"MANAGE_MESSAGES",
24+
"MANAGE_WEBHOOKS",
25+
"SEND_MESSAGES",
26+
"VIEW_CHANNEL",
27+
"PRIORITY_SPEAKER",
28+
"CONNECT",
29+
"SPEAK",
30+
"MUTE_MEMBERS",
31+
"DEAFEN_MEMBERS",
32+
"MOVE_MEMBERS",
33+
"EMBED_LINKS",
34+
"ATTACH_FILES",
35+
"READ_MESSAGE_HISTORY"
36+
]
37+
},
38+
"colors": {
39+
"Primary": "9bda4d",
40+
"Warn": "ecad2d",
41+
"Error": "f91c37",
42+
"Dev": "0389fb"
43+
},
44+
"Links": {
45+
"server": "https://discord.gg/3rZjSyS",
46+
"invite": "https://discord.com/api/oauth2/authorize?client_id=<BOTID>&permissions=138042273056&scope=bot%20applications.commands",
47+
"website": ""
48+
},
49+
"emojis": {
50+
"error": "<:error:818207506530697236>",
51+
"True": "<:cool:818211436424855572>",
52+
"warn": "<:warn:818211442867306546>",
53+
"info": "<:info:818211440069574716>",
54+
"menu": "<:menu:818211363113402408>",
55+
"tips": "<:tips:818216712243118130>",
56+
"chevron": "<:chevron:818255260802875486>",
57+
"data": "<:data:818267628812238858>",
58+
"hashtag": "<:Hachtag:818418955471028254>",
59+
"dev": "<:dev:818420335065038858>",
60+
"off": "<:off:818221212261679174>",
61+
"on": "<:on:818221224655847475>",
62+
"wave": "<:wave:820012984935383090>",
63+
"points": "<:points:827703709563748362>",
64+
"settings_id": {
65+
"error": "818207506530697236",
66+
"True": "818211436424855572",
67+
"warn": "818211442867306546",
68+
"info": "818211440069574716",
69+
"menu": "818211363113402408",
70+
"tips": "818216712243118130",
71+
"chevron": "818255260802875486",
72+
"data": "818267628812238858",
73+
"hashtag": "818418955471028254",
74+
"dev": "818420335065038858",
75+
"wave": "820012984935383090"
76+
},
77+
"audio": {
78+
"backward": "<:backward:818215091584368650>",
79+
"forward": "<:forward:818215094089023498>",
80+
"pause": "<:pauseresume:818215095787061360>",
81+
"play": "<:play:818216718346223636>",
82+
"stop": "<:stop:818219872391397396>",
83+
"skip": "<:skip:818215099247362098> ",
84+
"loop": "<:loop:818216721788698674>",
85+
"off": "<:off:818221212261679174>",
86+
"on": "<:on:818221224655847475>",
87+
"vol_up": "<:vol_up:818283453433774090>",
88+
"vol_down": "<:vol_down:818283447780114442>",
89+
"clear": "<:Delete:818285019944583218>",
90+
"Shufel": "<:Shufel:826014148127096852>"
91+
},
92+
"audio_id": {
93+
"backward": "818215091584368650",
94+
"forward": "818215094089023498",
95+
"pause": "818215095787061360",
96+
"play": "818216718346223636",
97+
"stop": "818219872391397396",
98+
"skip": "818215099247362098",
99+
"loop": "818216721788698674",
100+
"off": "818221212261679174",
101+
"on": "818221224655847475",
102+
"vol_up": "818283453433774090",
103+
"vol_down": "818283447780114442",
104+
"clear": "818285019944583218",
105+
"Shufel": "826014148127096852"
106+
},
107+
"num": {
108+
"zero": "<:0_:827693326924382208>",
109+
"one": "<:1_:818211466862788608>",
110+
"tow": "<:2_:818211478275358750>",
111+
"three": "<:3_:818211496672493578>",
112+
"four": "<:4_:818211508788920380>",
113+
"five": "<:5_:818211555258269706>",
114+
"six": "<:6_:818211557640503346>",
115+
"seven": "<:7_:818211600661217280>",
116+
"eight": "<:8_:818211602889179227>",
117+
"nine": "<:9_:818211589375262771>",
118+
"ten": "<:10:818211598845476864>"
119+
},
120+
"num_id": {
121+
"zero": "827693326924382208",
122+
"one": "818211466862788608",
123+
"tow": "818211478275358750",
124+
"three": "818211496672493578",
125+
"four": "818211508788920380",
126+
"five": "818211555258269706",
127+
"six": "818211557640503346",
128+
"seven": "818211600661217280",
129+
"eight": "818211602889179227",
130+
"nine": "818211589375262771",
131+
"ten": "818211598845476864"
132+
}
133+
},
134+
"Webhooks": {
135+
"catch": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV",
136+
"console_log": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV",
137+
"use_commands": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV",
138+
"server_join": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV",
139+
"server_leave": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV",
140+
"shardDisconnect": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV",
141+
"shardError": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV",
142+
"shardReady": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV",
143+
"shardReconnecting": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV",
144+
"shardResume": "https://discord.com/api/webhooks/1075847093056438332/PTxJUCOxrqd7pIr6iEl6pmWyNxxGyLnkaE0gVhzC8yzgYaLhjkFHhJfpbjmOoY82laqV"
145+
}
146+
}

0 commit comments

Comments
 (0)