This commit is contained in:
syuilo 2019-05-11 12:48:30 +09:00
parent fb5db57b42
commit 75d0731ee1
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 2 additions and 0 deletions

View file

@ -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);
}

View file

@ -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);