del config.love

This commit is contained in:
NullCat 2023-02-06 18:13:40 +09:00
parent c523767a06
commit 99d3e7628d
7 changed files with 8 additions and 9 deletions

View File

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

View File

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

View File

@ -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 {

View File

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

View File

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

View File

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

View File

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