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;
//#region

View File

@ -12,7 +12,6 @@ type Config = {
memoryDir?: string;
shellgeiUrl?: string;
gomamayo: string;
"love": string;
"antenna": string;
"nadenade": string;
"erai": string;

View File

@ -22,11 +22,11 @@ export default class extends Module {
});
msg.reply('これからよろしくね!', { immediate: true });
return {
reaction: msg.friend.love >= 0 ? config.love : null
reaction: msg.friend.love >= 0 ? '💙' : null
};
} else {
return {
reaction: msg.friend.love >= 0 ? config.love : null
reaction: msg.friend.love >= 0 ? '💙' : null
};
}
} else {

View File

@ -92,7 +92,7 @@ export default class extends Module {
msg.reply('がんばってみるね');
this.learn();
return {
reaction: ':bikkuri_nullcatchan:'
reaction: ''
};
} else {
return false;

View File

@ -15,7 +15,7 @@ export default class extends Module {
@autobind
private async mentionHook(msg: Message) {
if (msg.text && msg.text.includes('ping')) {
msg.reply('$[x2 :bibibi_nullcatchan:]', {
msg.reply( 'ぬ!' , {
immediate: true
});
return true;

View File

@ -44,7 +44,7 @@ export default class extends Module {
const shellgeiResultStdOut = shellgeiResultJson.stdout;
const shellgeiResultStdErr = shellgeiResultJson.stderr;
if (shellgeiResultStdOut === '' && shellgeiResultStdErr === '') {
msg.reply(`結果がなかったよ:cry_nullcatchan:`, {
msg.reply(`結果がなかったよ`, {
immediate: true
});
} else {
@ -54,7 +54,7 @@ export default class extends Module {
}
} catch (e) {
console.log(e);
msg.reply(`エラーが発生しちゃったよ:cry_nullcatchan:\n${e}`, {
msg.reply(`エラーが発生しちゃったよ....\n${e}`, {
immediate: true
});
}

View File

@ -72,7 +72,7 @@ export default class extends Module {
msg.reply(`${this.mfmVersion(meta.version)} みたいだよ!`);
})
.catch(() => {
msg.reply(`取得失敗しちゃった:cry_nullcatchan:`);
msg.reply(`取得失敗しちゃった...`);
});
return true;