mirror of
https://github.com/syuilo/ai.git
synced 2024-11-22 05:08:00 +00:00
✌️
This commit is contained in:
parent
fb5db57b42
commit
75d0731ee1
|
@ -85,6 +85,7 @@ export function genMaze(seed, complexity?) {
|
|||
if (complexity === 'easy') mazeSize = 10 + rand(12);
|
||||
if (complexity === 'hard') mazeSize = 20 + rand(15);
|
||||
if (complexity === 'veryHard') mazeSize = 35 + rand(15);
|
||||
if (complexity === 'ai') mazeSize = 100;
|
||||
} else {
|
||||
mazeSize = 11 + rand(21);
|
||||
}
|
||||
|
|
|
@ -72,6 +72,7 @@ export default class extends Module {
|
|||
if (msg.includes(['簡単', 'かんたん', '易しい', 'やさしい', '小さい', 'ちいさい'])) size = 'easy';
|
||||
if (msg.includes(['難しい', 'むずかしい', '複雑な', '大きい', 'おおきい'])) size = 'hard';
|
||||
if (msg.includes(['死', '鬼', '地獄'])) size = 'veryHard';
|
||||
if (msg.includes(['藍']) && msg.includes(['本気'])) size = 'ai';
|
||||
this.log('Maze requested');
|
||||
setTimeout(async () => {
|
||||
const file = await this.genMazeFile(Date.now(), size);
|
||||
|
|
Loading…
Reference in a new issue