mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-04-29 08:07:18 +09:00
del config.love
This commit is contained in:
parent
c523767a06
commit
99d3e7628d
@ -236,7 +236,7 @@ export default class 藍 {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
let reaction: string | null = config.love;
|
let reaction: string | null = '💙' ;
|
||||||
let immediate: boolean = false;
|
let immediate: boolean = false;
|
||||||
|
|
||||||
//#region
|
//#region
|
||||||
|
@ -12,7 +12,6 @@ type Config = {
|
|||||||
memoryDir?: string;
|
memoryDir?: string;
|
||||||
shellgeiUrl?: string;
|
shellgeiUrl?: string;
|
||||||
gomamayo: string;
|
gomamayo: string;
|
||||||
"love": string;
|
|
||||||
"antenna": string;
|
"antenna": string;
|
||||||
"nadenade": string;
|
"nadenade": string;
|
||||||
"erai": string;
|
"erai": string;
|
||||||
|
@ -22,11 +22,11 @@ export default class extends Module {
|
|||||||
});
|
});
|
||||||
msg.reply('これからよろしくね!', { immediate: true });
|
msg.reply('これからよろしくね!', { immediate: true });
|
||||||
return {
|
return {
|
||||||
reaction: msg.friend.love >= 0 ? config.love : null
|
reaction: msg.friend.love >= 0 ? '💙' : null
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return {
|
return {
|
||||||
reaction: msg.friend.love >= 0 ? config.love : null
|
reaction: msg.friend.love >= 0 ? '💙' : null
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -92,7 +92,7 @@ export default class extends Module {
|
|||||||
msg.reply('がんばってみるね');
|
msg.reply('がんばってみるね');
|
||||||
this.learn();
|
this.learn();
|
||||||
return {
|
return {
|
||||||
reaction: ':bikkuri_nullcatchan:'
|
reaction: '❕'
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
@ -15,7 +15,7 @@ export default class extends Module {
|
|||||||
@autobind
|
@autobind
|
||||||
private async mentionHook(msg: Message) {
|
private async mentionHook(msg: Message) {
|
||||||
if (msg.text && msg.text.includes('ping')) {
|
if (msg.text && msg.text.includes('ping')) {
|
||||||
msg.reply('$[x2 :bibibi_nullcatchan:]', {
|
msg.reply( 'ぬ!' , {
|
||||||
immediate: true
|
immediate: true
|
||||||
});
|
});
|
||||||
return true;
|
return true;
|
||||||
|
@ -44,7 +44,7 @@ export default class extends Module {
|
|||||||
const shellgeiResultStdOut = shellgeiResultJson.stdout;
|
const shellgeiResultStdOut = shellgeiResultJson.stdout;
|
||||||
const shellgeiResultStdErr = shellgeiResultJson.stderr;
|
const shellgeiResultStdErr = shellgeiResultJson.stderr;
|
||||||
if (shellgeiResultStdOut === '' && shellgeiResultStdErr === '') {
|
if (shellgeiResultStdOut === '' && shellgeiResultStdErr === '') {
|
||||||
msg.reply(`結果がなかったよ:cry_nullcatchan:`, {
|
msg.reply(`結果がなかったよ`, {
|
||||||
immediate: true
|
immediate: true
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@ -54,7 +54,7 @@ export default class extends Module {
|
|||||||
}
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
msg.reply(`エラーが発生しちゃったよ:cry_nullcatchan:\n${e}`, {
|
msg.reply(`エラーが発生しちゃったよ....\n${e}`, {
|
||||||
immediate: true
|
immediate: true
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
@ -72,7 +72,7 @@ export default class extends Module {
|
|||||||
msg.reply(`${this.mfmVersion(meta.version)} みたいだよ!`);
|
msg.reply(`${this.mfmVersion(meta.version)} みたいだよ!`);
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
msg.reply(`取得失敗しちゃった:cry_nullcatchan:`);
|
msg.reply(`取得失敗しちゃった...`);
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user