mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
😇
This commit is contained in:
parent
cb01d86029
commit
e5e9d0076e
1 changed files with 10 additions and 4 deletions
|
@ -14,10 +14,16 @@ 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.text.includes('おい'))) {
|
||||||
msg.reply('PONG!', {
|
if (msg.text.includes('おい')) {
|
||||||
immediate: true
|
msg.reply('はい。。。', {
|
||||||
});
|
immediate: true
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
msg.reply('PONG!', {
|
||||||
|
immediate: true
|
||||||
|
});
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue