mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
公開範囲を理由に拒否された際のセリフの変更
This commit is contained in:
parent
d42b549585
commit
82bc350345
2 changed files with 8 additions and 1 deletions
|
@ -59,8 +59,13 @@ export default class extends Module {
|
||||||
const separatorIndex = text.indexOf(' ') > -1 ? text.indexOf(' ') : text.indexOf('\n');
|
const separatorIndex = text.indexOf(' ') > -1 ? text.indexOf(' ') : text.indexOf('\n');
|
||||||
const thing = text.substr(separatorIndex + 1).trim();
|
const thing = text.substr(separatorIndex + 1).trim();
|
||||||
|
|
||||||
if (thing === '' && msg.quoteId == null || msg.visibility === 'followers') {
|
if (thing === '' && msg.quoteId == null) {
|
||||||
msg.reply(serifs.reminder.invalid);
|
msg.reply(serifs.reminder.invalid);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (msg.visibility === 'followers') {
|
||||||
|
msg.reply(serifs.reminder.invalidVisibility);
|
||||||
return {
|
return {
|
||||||
reaction: '🆖',
|
reaction: '🆖',
|
||||||
immediate: true,
|
immediate: true,
|
||||||
|
|
|
@ -339,6 +339,8 @@ export default {
|
||||||
reminder: {
|
reminder: {
|
||||||
invalid: 'うーん...?',
|
invalid: 'うーん...?',
|
||||||
|
|
||||||
|
invalidVisibility: "公開範囲の指定を変えてみて",
|
||||||
|
|
||||||
reminds: 'やること一覧です!',
|
reminds: 'やること一覧です!',
|
||||||
|
|
||||||
notify: (name) => name ? `${name}、これやりましたか?` : `これやりましたか?`,
|
notify: (name) => name ? `${name}、これやりましたか?` : `これやりましたか?`,
|
||||||
|
|
Loading…
Reference in a new issue