Skip to content

Commit 7fce80e

Browse files
committed
v2.0.0
1 parent 8d2c144 commit 7fce80e

111 files changed

Lines changed: 2327 additions & 1643 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
github: [Adivise]
2-
ko_fi: nanotect
2+
buy_me_a_coffee: suntury

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,5 +102,6 @@ dist
102102

103103
# TernJS port file
104104
.tern-port
105-
plugins/Nico/index.js
106-
plugins/Nico/plugin.js
105+
eslint.log
106+
package-lock.json
107+
settings/config.js

Start.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
@echo off
22

3-
title NanoSpace
3+
title RealitySpace
44

55
:StartBot
66

commands/Dev/LeaveGuilds.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ module.exports = {
1111
ownerOnly: true,
1212
run: async (client, message, args) => {
1313
const db = new Database(`./settings/models/access.json`, { databaseInObject: true });
14-
15-
const database = db.get(`whitelist`);
14+
15+
const database = db.get(`whitelist`) || [];
1616
const guild = message.client.guilds.cache;
1717
// check if bot not in whitelist = leave
1818
const LeaveStr = [];

commands/Dev/Whitelist.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,34 +12,34 @@ module.exports = {
1212
ownerOnly: true,
1313
run: async (client, message, args) => {
1414
const db = new Database(`./settings/models/access.json`, { databaseInObject: true });
15-
15+
1616
if (args[0] === "add") {
1717
const guild = client.guilds.cache.get(args[1]);
1818
if (!guild) return message.channel.send(`Please enter a valid guild id! (ฺBot not in server)`);
19-
20-
const database = db.get(`whitelist`);
19+
20+
const database = db.get(`whitelist`) || [];
2121
if (database.includes(args[1])) return message.channel.send(`This guild is already whitelisted!`);
22-
22+
2323
db.push({ key: "whitelist", value: args[1] });
24-
24+
2525
const embed = new EmbedBuilder()
2626
.setColor(client.color)
2727
.setDescription(`**Add • ${guild.name} (${guild.id})** to whitelist`);
28-
28+
2929
message.channel.send({ embeds: [embed] });
3030
} else if (args[0] === "remove") {
3131
const guild = client.guilds.cache.get(args[1]);
3232
if (!guild) return message.channel.send(`Please enter a valid guild id! (ฺBot not in server)`);
33-
34-
const database = db.get(`whitelist`);
33+
34+
const database = db.get(`whitelist`) || [];
3535
if (!database.includes(args[1])) return message.channel.send(`This guild is not whitelist!`);
36-
36+
3737
db.pull({ key: "whitelist", value: args[1] });
38-
38+
3939
const embed = new EmbedBuilder()
4040
.setColor(client.color)
4141
.setDescription(`**Remove • ${guild.name} (${guild.id}) from whitelist**`);
42-
42+
4343
message.channel.send({ embeds: [embed] });
4444
} else {
4545
return message.channel.send(`Please enter a valid option! ${client.prefix}whitelist [add/remove] <guildID>`);

commands/Filters/3d.js

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { EmbedBuilder } = require('discord.js');
22

3-
module.exports = {
3+
module.exports = {
44
config: {
55
name: "3d",
66
description: "Turning on 3d filter",
@@ -10,18 +10,16 @@ module.exports = {
1010
run: async (client, message, args) => {
1111
const msg = await message.channel.send(`Loading please wait....`);
1212

13-
const player = client.manager.get(message.guild.id);
14-
if(!player) return msg.edit(`No playing in this guild!`);
15-
const { channel } = message.member.voice;
16-
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
13+
const player = client.manager.players.get(message.guild.id);
14+
if (!player) return msg.edit(`No playing in this guild!`);
15+
const { channel } = message.member.voice;
16+
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
1717

18-
const data = {
19-
op: 'filters',
20-
guildId: message.guild.id,
21-
rotation: { rotationHz: 0.2 }
22-
}
18+
const data = {
19+
rotation: { rotationHz: 0.2 }
20+
};
2321

24-
await player.node.send(data);
22+
await player.shoukaku.setFilters(data);
2523

2624
const embed = new EmbedBuilder()
2725
.setDescription("`💠` | *Turned on:* `3d`")

commands/Filters/Bass.js

Lines changed: 26 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { EmbedBuilder } = require('discord.js');
22

3-
module.exports = {
3+
module.exports = {
44
config: {
55
name: "bass",
66
description: "Turning on bass filter",
@@ -10,33 +10,31 @@ module.exports = {
1010
run: async (client, message, args) => {
1111
const msg = await message.channel.send(`Loading please wait....`);
1212

13-
const player = client.manager.get(message.guild.id);
14-
if(!player) return msg.edit(`No playing in this guild!`);
15-
const { channel } = message.member.voice;
16-
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
17-
18-
const data = {
19-
op: 'filters',
20-
guildId: message.guild.id,
21-
equalizer: [
22-
{ band: 0, gain: 0.10 },
23-
{ band: 1, gain: 0.10 },
24-
{ band: 2, gain: 0.05 },
25-
{ band: 3, gain: 0.05 },
26-
{ band: 4, gain: -0.05 },
27-
{ band: 5, gain: -0.05 },
28-
{ band: 6, gain: 0 },
29-
{ band: 7, gain: -0.05 },
30-
{ band: 8, gain: -0.05 },
31-
{ band: 9, gain: 0 },
32-
{ band: 10, gain: 0.05 },
33-
{ band: 11, gain: 0.05 },
34-
{ band: 12, gain: 0.10 },
35-
{ band: 13, gain: 0.10 },
36-
],
37-
}
38-
39-
await player.node.send(data);
13+
const player = client.manager.players.get(message.guild.id);
14+
if (!player) return msg.edit(`No playing in this guild!`);
15+
const { channel } = message.member.voice;
16+
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
17+
18+
const data = {
19+
equalizer: [
20+
{ band: 0, gain: 0.10 },
21+
{ band: 1, gain: 0.10 },
22+
{ band: 2, gain: 0.05 },
23+
{ band: 3, gain: 0.05 },
24+
{ band: 4, gain: -0.05 },
25+
{ band: 5, gain: -0.05 },
26+
{ band: 6, gain: 0 },
27+
{ band: 7, gain: -0.05 },
28+
{ band: 8, gain: -0.05 },
29+
{ band: 9, gain: 0 },
30+
{ band: 10, gain: 0.05 },
31+
{ band: 11, gain: 0.05 },
32+
{ band: 12, gain: 0.10 },
33+
{ band: 13, gain: 0.10 },
34+
],
35+
}
36+
37+
await player.shoukaku.setFilters(data);
4038

4139
const bassed = new EmbedBuilder()
4240
.setDescription("`💠` | *Turned on:* `Bass`")

commands/Filters/BassBoost.js

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { EmbedBuilder } = require('discord.js');
22

3-
module.exports = {
3+
module.exports = {
44
config: {
55
name: "bassboost",
66
description: "Turning on bassboost filter",
@@ -10,15 +10,13 @@ module.exports = {
1010
aliases: ["bb"]
1111
},
1212
run: async (client, message, args) => {
13-
const player = client.manager.get(message.guild.id);
14-
if(!player) return message.channel.send(`No playing in this guild!`);
15-
const { channel } = message.member.voice;
16-
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return message.channel.send(`I'm not in the same voice channel as you!`);
17-
18-
if(!args[0]) {
13+
const player = client.manager.players.get(message.guild.id);
14+
if (!player) return message.channel.send(`No playing in this guild!`);
15+
const { channel } = message.member.voice;
16+
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return message.channel.send(`I'm not in the same voice channel as you!`);
17+
18+
if (!args[0]) {
1919
const data = {
20-
op: 'filters',
21-
guildId: message.guild.id,
2220
equalizer: [
2321
{ band: 0, gain: 0.10 },
2422
{ band: 1, gain: 0.10 },
@@ -37,22 +35,20 @@ module.exports = {
3735
]
3836
}
3937

40-
await player.node.send(data);
38+
await player.shoukaku.setFilters(data);
4139

4240
const msg1 = await message.channel.send(`Loading please wait....`);
4341
const embed = new EmbedBuilder()
4442
.setDescription("`💠` | *Turned on:* `Bassboost`")
4543
.setColor(client.color);
46-
44+
4745
await delay(5000);
4846
return msg1.edit({ content: " ", embeds: [embed] });
49-
}
47+
}
5048

51-
if(isNaN(args[0])) return message.channel.send(`Please enter a number!`);
52-
if(args[0] > 10 || args[0] < -10) return message.channel.send(`Please enter a number between -10 - 10!`);
49+
if (isNaN(args[0])) return message.channel.send(`Please enter a number!`);
50+
if (args[0] > 10 || args[0] < -10) return message.channel.send(`Please enter a number between -10 - 10!`);
5351
const data = {
54-
op: 'filters',
55-
guildId: message.guild.id,
5652
equalizer: [
5753
{ band: 0, gain: args[0] / 10 },
5854
{ band: 1, gain: args[0] / 10 },
@@ -70,12 +66,12 @@ module.exports = {
7066
{ band: 13, gain: 0 },
7167
]
7268
}
73-
await player.node.send(data);
69+
await player.shoukaku.setFilters(data);
7470
const msg2 = await message.channel.send(`Loading please wait....`);
7571
const embed = new EmbedBuilder()
7672
.setDescription(`\`💠\` | *Turned on:* \`Bassboost\` *Gain:* \`${args[0]}\``)
7773
.setColor(client.color);
78-
74+
7975
await delay(5000);
8076
return msg2.edit({ content: " ", embeds: [embed] });
8177
}

commands/Filters/China.js

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { EmbedBuilder } = require('discord.js');
22

3-
module.exports = {
3+
module.exports = {
44
config: {
55
name: "china",
66
description: "Turning on china filter",
@@ -10,22 +10,20 @@ module.exports = {
1010
run: async (client, message, args) => {
1111
const msg = await message.channel.send(`Loading please wait....`);
1212

13-
const player = client.manager.get(message.guild.id);
14-
if(!player) return msg.edit(`No playing in this guild!`);
15-
const { channel } = message.member.voice;
16-
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
13+
const player = client.manager.players.get(message.guild.id);
14+
if (!player) return msg.edit(`No playing in this guild!`);
15+
const { channel } = message.member.voice;
16+
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
1717

18-
const data = {
19-
op: 'filters',
20-
guildId: message.guild.id,
21-
timescale: {
22-
speed: 0.75,
23-
pitch: 1.25,
24-
rate: 1.25
25-
}
18+
const data = {
19+
timescale: {
20+
speed: 0.75,
21+
pitch: 1.25,
22+
rate: 1.25
2623
}
24+
}
2725

28-
await player.node.send(data);
26+
await player.shoukaku.setFilters(data);
2927

3028
const embed = new EmbedBuilder()
3129
.setDescription("`💠` | *Turned on:* `China`")

commands/Filters/Chipmunk.js

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { EmbedBuilder } = require('discord.js');
22

3-
module.exports = {
3+
module.exports = {
44
config: {
55
name: "chipmunk",
66
description: "Turning on chipmunk filter",
@@ -10,22 +10,20 @@ module.exports = {
1010
run: async (client, message, args) => {
1111
const msg = await message.channel.send(`Loading please wait....`);
1212

13-
const player = client.manager.get(message.guild.id);
14-
if(!player) return msg.edit(`No playing in this guild!`);
15-
const { channel } = message.member.voice;
16-
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
13+
const player = client.manager.players.get(message.guild.id);
14+
if (!player) return msg.edit(`No playing in this guild!`);
15+
const { channel } = message.member.voice;
16+
if (!channel || message.member.voice.channel !== message.guild.members.me.voice.channel) return msg.edit(`I'm not in the same voice channel as you!`);
1717

18-
const data = {
19-
op: 'filters',
20-
guildId: message.guild.id,
21-
timescale: {
22-
speed: 1.05,
23-
pitch: 1.35,
24-
rate: 1.25
25-
},
26-
}
18+
const data = {
19+
timescale: {
20+
speed: 1.05,
21+
pitch: 1.35,
22+
rate: 1.25
23+
},
24+
}
2725

28-
await player.node.send(data);
26+
await player.shoukaku.setFilters(data);
2927

3028
const embed = new EmbedBuilder()
3129
.setDescription(`\`💠\` | *Turned on:* \`Chipmunk\``)

0 commit comments

Comments
 (0)