další teoreticky zlepšení
This commit is contained in:
parent
443fad6b6c
commit
6f1f79d058
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "denim_3001",
|
||||
"version": "3001.50.0",
|
||||
"version": "3001.50.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "denim_3001",
|
||||
"version": "3001.50.0",
|
||||
"version": "3001.50.1",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@discordjs/voice": "^0.15.0",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "denim_3001",
|
||||
"version": "3001.50.0",
|
||||
"version": "3001.50.1",
|
||||
"description": "Toto je velmi kvalitní bot.",
|
||||
"repository": {
|
||||
"url": "https://github.com/Histmy/Denim-Bot/"
|
||||
|
||||
@ -41,6 +41,12 @@ function save() {
|
||||
spojit();
|
||||
}
|
||||
|
||||
function komandNeboAlias(nazev: string) {
|
||||
if (customKomandy[nazev]) return { jeKomand: true, cmd: customKomandy[nazev] };
|
||||
if (customAliasy[nazev]) return { jeKomand: false, cmd: customAliasy[nazev] };
|
||||
return { jeKomand: false };
|
||||
}
|
||||
|
||||
const exp: Modul = {
|
||||
more_komandy: {
|
||||
naucse: {
|
||||
@ -94,11 +100,8 @@ const exp: Modul = {
|
||||
if (zakladniKomandy[name]) return "tuten komand se neda smazat ti smazko";
|
||||
if (zakladniAliasy[name]) return "tuten alijaas se neda smazat ti smazko";
|
||||
|
||||
let jeKomand: boolean;
|
||||
let cmd;
|
||||
if (cmd = customKomandy[name]) jeKomand = true;
|
||||
else if (cmd = customAliasy[name]) jeKomand = false;
|
||||
else return `"${name}" nen komnad an alias`;
|
||||
const { jeKomand, cmd } = komandNeboAlias(name);
|
||||
if (!cmd) return `"${name}" nen komnad an alias`;
|
||||
|
||||
if (cmd.owner != mes.author.id) return "tuto ael neni tvoje toxikale zkurvenej";
|
||||
|
||||
@ -204,11 +207,8 @@ const exp: Modul = {
|
||||
if (zakladniKomandy[name]) return "tuten komand se neda vopravit";
|
||||
if (zakladniAliasy[name]) return "tuten alijaas se neda vopravit";
|
||||
|
||||
let jeKomand: boolean;
|
||||
let cmd;
|
||||
if (cmd = customKomandy[name]) jeKomand = true;
|
||||
else if (cmd = customAliasy[name]) jeKomand = false;
|
||||
else return `"${name}" nen komnad an alias`;
|
||||
const { jeKomand, cmd } = komandNeboAlias(name);
|
||||
if (!cmd) return `"${name}" nen komnad an alias`;
|
||||
|
||||
if (cmd.owner != mes.author.id) return "tuto ael neni tvoe toxikale zkurvenej";
|
||||
|
||||
@ -232,11 +232,8 @@ const exp: Modul = {
|
||||
if (zakladniKomandy[name]) return "tuten komand se neda vopravit";
|
||||
if (zakladniAliasy[name]) return "tuten alijaas se neda vopravit";
|
||||
|
||||
let jeKomand: boolean;
|
||||
let cmd;
|
||||
if (cmd = customKomandy[name]) jeKomand = true;
|
||||
else if (cmd = customAliasy[name]) jeKomand = false;
|
||||
else return `"${name}" nen komnad an alias`;
|
||||
const { jeKomand, cmd } = komandNeboAlias(name);
|
||||
if (!cmd) return `"${name}" nen komnad an alias`;
|
||||
|
||||
if (cmd.owner != mes.author.id) return "tuto ael neni tvoe toxikale zkurvenej";
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user