mirror of
https://github.com/LBRYFoundation/lbry-wunderbot.git
synced 2025-08-23 17:47:27 +00:00
Update bot.js
This commit is contained in:
parent
3e2cbd7ab5
commit
5225287699
1 changed files with 1 additions and 1 deletions
|
@ -76,7 +76,7 @@ function checkMessageForCommand(msg, isEdit) {
|
|||
if (msg.author.id !== bot.user.id && msg.content.startsWith(config.prefix)) {
|
||||
let cmdTxt = msg.content.split(' ')[0].substring(config.prefix.length);
|
||||
let suffix = msg.content.substring(cmdTxt.length + config.prefix.length + 1); //add one for the ! and one for the space
|
||||
if (msg.isMentioned(bot.user)) {
|
||||
if (msg.mentions.has(bot.user)) {
|
||||
try {
|
||||
cmdTxt = msg.content.split(' ')[1];
|
||||
suffix = msg.content.substring(bot.user.mention().length + cmdTxt.length + config.prefix.length + 1);
|
||||
|
|
Loading…
Add table
Reference in a new issue