Commands work even with uppercase
This commit is contained in:
parent
2a991099ab
commit
489e46a17d
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "denim_3001",
|
||||
"version": "3001.22.0",
|
||||
"version": "3001.22.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "denim_3001",
|
||||
"version": "3001.22.0",
|
||||
"version": "3001.22.1",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"@discordjs/opus": "github:discordjs/opus",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "denim_3001",
|
||||
"version": "3001.22.0",
|
||||
"version": "3001.22.1",
|
||||
"description": "Toto je velmi kvalitní bot.",
|
||||
"repository": {
|
||||
"url": "https://github.com/Histmy/Denim-Bot/"
|
||||
|
||||
@ -90,7 +90,7 @@ client.on("messageCreate", mes => {
|
||||
if (mes_prefix.toLowerCase() !== prefix) return;
|
||||
if (!komandSDiakritikou) return void mes.channel.send("coe voe");
|
||||
|
||||
const komand = oddiakritikovat(komandSDiakritikou);
|
||||
const komand = oddiakritikovat(komandSDiakritikou).toLowerCase();
|
||||
const celArgs = args.join(" ");
|
||||
const cmdName = aliasy[komand] ?? komand;
|
||||
const cmd = komandy[cmdName];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user