mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
index.ts
This commit is contained in:
parent
a7e19674e4
commit
a8926f927f
1 changed files with 6 additions and 6 deletions
|
@ -57,13 +57,13 @@ export default class extends Module {
|
|||
|
||||
@bindThis
|
||||
private async mentionHook(msg: Message) {
|
||||
if (msg.includes(['迷路'])) {
|
||||
if (msg.includes(['maze'])) {
|
||||
let size: string | null = null;
|
||||
if (msg.includes(['接待'])) size = 'veryEasy';
|
||||
if (msg.includes(['簡単', 'かんたん', '易しい', 'やさしい', '小さい', 'ちいさい'])) size = 'easy';
|
||||
if (msg.includes(['難しい', 'むずかしい', '複雑な', '大きい', 'おおきい'])) size = 'hard';
|
||||
if (msg.includes(['死', '鬼', '地獄'])) size = 'veryHard';
|
||||
if (msg.includes(['藍']) && msg.includes(['本気'])) size = 'ai';
|
||||
if (msg.includes(['Entertainment'])) size = 'veryEasy';
|
||||
if (msg.includes(['easy', 'easy', '易しい', 'やさしい', '小さい', 'ちいさい'])) size = 'easy';
|
||||
if (msg.includes(['hard', 'difficult', '複雑な', '大きい', 'おおきい'])) size = 'hard';
|
||||
if (msg.includes(['very hard', 'extreme', '地獄'])) size = 'veryHard';
|
||||
if (msg.includes(['Indigo']) && msg.includes(['Serious'])) size = 'ai';
|
||||
this.log('Maze requested');
|
||||
setTimeout(async () => {
|
||||
const file = await this.genMazeFile(Date.now(), size);
|
||||
|
|
Loading…
Reference in a new issue