mirror of
https://github.com/syuilo/ai.git
synced 2025-03-25 21:12:56 +00:00
pingのところいじった
This commit is contained in:
parent
b157d0a868
commit
3d44d2d0bf
1 changed files with 7 additions and 3 deletions
|
@ -16,9 +16,13 @@ export default class extends Module {
|
||||||
private async mentionHook(msg: Message) {
|
private async mentionHook(msg: Message) {
|
||||||
if (msg.text && (msg.text.includes('ping') || msg.text.includes('おい'))) {
|
if (msg.text && (msg.text.includes('ping') || msg.text.includes('おい'))) {
|
||||||
if (msg.text.includes('おい')) {
|
if (msg.text.includes('おい')) {
|
||||||
msg.reply('はい。。。', {
|
if (this.ai.isMaster(msg.userId)) {
|
||||||
immediate: true
|
msg.reply('はい。。。', {
|
||||||
});
|
immediate: true
|
||||||
|
});
|
||||||
|
} else {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
msg.reply('PONG!', {
|
msg.reply('PONG!', {
|
||||||
immediate: true
|
immediate: true
|
||||||
|
|
Loading…
Reference in a new issue