Fix of more vypnise and more zapnise
This commit is contained in:
parent
a3255691a7
commit
b9a883c907
4
app.js
4
app.js
@ -33,7 +33,7 @@ fs.readdirSync(modulFolder).forEach(function (soubor) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
const spim = mes => {
|
const spim = mes => {
|
||||||
if (mes.content === `${prefix} zapni se`) {
|
if (mes.content.toLowerCase() === `${prefix} zapni se`) {
|
||||||
if (spink) {
|
if (spink) {
|
||||||
spink = false;
|
spink = false;
|
||||||
mes.client.user.setStatus("online");
|
mes.client.user.setStatus("online");
|
||||||
@ -41,7 +41,7 @@ const spim = mes => {
|
|||||||
}
|
}
|
||||||
else mes.channel.send("tak jsi kokot?");
|
else mes.channel.send("tak jsi kokot?");
|
||||||
} else if (!spink) {
|
} else if (!spink) {
|
||||||
if (mes.content === `${prefix} vypni se`) {
|
if (mes.content.toLowerCase() === `${prefix} vypni se`) {
|
||||||
mes.react("855120055632134155");
|
mes.react("855120055632134155");
|
||||||
[...mes.client.voice?.connections.values()].forEach(con => con.disconnect());
|
[...mes.client.voice?.connections.values()].forEach(con => con.disconnect());
|
||||||
mes.client.user.setStatus("invisible");
|
mes.client.user.setStatus("invisible");
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user