nevim, entry nejsou fajn

This commit is contained in:
Histmy 2024-02-10 01:44:41 +01:00
parent c6afe1835f
commit da91699e58
Signed by: Histmy
GPG Key ID: AC2E43C463D8F329
6 changed files with 11 additions and 10 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "denim_3001",
"version": "3001.58.2",
"version": "3001.58.3",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "denim_3001",
"version": "3001.58.2",
"version": "3001.58.3",
"license": "ISC",
"dependencies": {
"@discordjs/voice": "^0.16.1",

View File

@ -1,6 +1,6 @@
{
"name": "denim_3001",
"version": "3001.58.2",
"version": "3001.58.3",
"description": "Toto je velmi kvalitní bot.",
"repository": {
"url": "https://github.com/Histmy/Denim-Bot/"

View File

@ -273,7 +273,7 @@ async function runKomand(mesOrInt: Message | CommandInteraction, cmd: Komand, cm
client.on("messageCreate", async mes => {
if (process.env.ignoreMess) return;
const [mesPrefix, komandSDiakritikou, ...args] = mes.content.split(" ");
const [mesPrefix, komandSDiakritikou, ...args] = mes.content.split(/\s/);
const prefixDiff = levenshtein(oddiakritikovat(mesPrefix.toLowerCase()), prefix);
if (prefixDiff > 0) {

View File

@ -77,7 +77,7 @@ const exp: Modul = {
naucse: {
arg: "<název nového komandu> <text nového komandu>",
run: (mes, arg) => {
const args = arg.split(" ").filter(v => v != "");
const args = arg.split(/\s/).filter(v => v != "");
if (args.length == 0) return "a co se mam jako naucit";
if (args.length == 1) return "a co bich nato mnel rict????";
@ -95,7 +95,7 @@ const exp: Modul = {
arg: "<název nového aliasu> <název existujícího komandu nebo aliasu>",
als: ["naucsea"],
run: (mes, arg) => {
const args = arg.split(" ").filter(v => v != "").map(e => oddiakritikovat(e).toLowerCase());
const args = arg.split(/\s/).filter(v => v != "").map(e => oddiakritikovat(e).toLowerCase());
if (args.length == 0) return "a co se mam jako naucit";
if (args.length == 1) return "a co to ma znamenat????";
@ -166,7 +166,7 @@ const exp: Modul = {
uprav: {
arg: "název komandu",
run: (mes, arg) => {
const args = arg.split(" ").filter(v => v != "");
const args = arg.split(/\s/).filter(v => v != "");
if (args.length == 0) return "a co mam jako vopravit";
if (args.length == 1) return "a co bich nato mnel rict????";
@ -192,7 +192,7 @@ const exp: Modul = {
uprava: {
arg: "název aliasu",
run: (mes, arg) => {
const args = arg.split(" ").filter(v => v != "").map(v => oddiakritikovat(v));
const args = arg.split(/\s/).filter(v => v != "").map(v => oddiakritikovat(v));
const name = args[0];
if (args.length == 0) return "a co mam jako vopravit";
@ -291,6 +291,7 @@ const exp: Modul = {
if (vlastniAlias)
return `tuto je vlastni alijaas <@${vlastniAlias.owner}> na "${vlastniAlias.cmd}"`;
return `${nazev} nic neeni`;
}
}
},

View File

@ -37,7 +37,7 @@ const exp: Modul = {
als: ["react"],
arg: "emout/emouty",
run: async (mes, arg) => {
const emouty = arg.split(" ");
const emouty = arg.split(/\s/);
let naCo: Message;
if (mes.reference) {

View File

@ -15,7 +15,7 @@ while true; do
cp logs/aktualni.txt logs/recent.txt
if [[ -s "logs/aktualni.txt" ]]; then
cp logs/aktualni.txt logs/$(date +"%d.%m.-%H-%M-%S-%N").txt
cp logs/aktualni.txt logs/$(date +"%m-%d-%H_%M_%S_%N").txt
fi
echo exit code byl $kod