3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

無制限にア、ハイbot

Last updated at Posted at 2020-05-25
client.on('message',message=>{

これでメッセージ判定あったら反応

if(message.author.bot===){return;

これ意外にコードを追加する場合
もしBotが発言したならもとに戻るを追加

if(message.content!=='ア、ハイ'){

これでア、ハイ以外ならば

message.reply('ア、ハイ');
 return;
}
});

ア、ハイとコメントして処理を繰り返す
不具合が出るとしたら動かないかア、ハイを無制限に高速で繰り返すので危険

3
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?