discord.js bot replies to itself

前端 未结 5 1059
情话喂你
情话喂你 2020-12-19 01:38

I am currently coding my first discord bot, it can already play YouTube music.

if (message.content.includes(\"         


        
5条回答
  •  囚心锁ツ
    2020-12-19 01:50

    Use this in the on message event:

    if (message.author.bot) return;
    

    for more info: https://anidiotsguide.gitbooks.io/discord-js-bot-guide/coding-guides/a-basic-command-handler.html

提交回复
热议问题