Курсоры, обновление документации

This commit is contained in:
2023-03-29 00:36:23 +04:00
parent 0ca319ae0f
commit 1ec33d6a80
20 changed files with 1118 additions and 106 deletions
+4 -2
View File
@@ -1,6 +1,6 @@
import { Joke, JokeSettings, StopableJoke } from "../joke";
import $ from "jquery";
import { AprilFoolsJokeClass } from "../handler";
import { JokerClass } from "../joker";
/**
* **Буквенный хаос**
@@ -18,7 +18,7 @@ export class LetterChaosJoke extends Joke {
private shuffleLetters(word: string): string {
// Check if the word has two or more letters
if ((word.length < 3) || !AprilFoolsJokeClass.check(this.settings.shuffle_chance)) {
if ((word.length < 3) || !this.check(this.settings.shuffle_chance)) {
return word;
}
@@ -48,6 +48,8 @@ export class LetterChaosJoke extends Joke {
}
export class LetterChaosJokeSettings implements JokeSettings {
enabled: boolean = true;
chance: number = 20;
/**