mirror of
https://github.com/opelly27/Sokobot.git
synced 2026-05-20 06:27:34 +00:00
fixed @mention not responding
This commit is contained in:
@@ -73,6 +73,8 @@ public class CommandListener extends ListenerAdapter {
|
|||||||
String prefix = Bot.getPrefix(guild);
|
String prefix = Bot.getPrefix(guild);
|
||||||
String arg = args[0].toLowerCase();
|
String arg = args[0].toLowerCase();
|
||||||
boolean isCommand;
|
boolean isCommand;
|
||||||
|
if (isMention) isCommand = true;
|
||||||
|
else {
|
||||||
if (arg.startsWith(prefix)) {
|
if (arg.startsWith(prefix)) {
|
||||||
if (commandsNoPrefix.contains(arg)) {
|
if (commandsNoPrefix.contains(arg)) {
|
||||||
isCommand = true;
|
isCommand = true;
|
||||||
@@ -84,6 +86,7 @@ public class CommandListener extends ListenerAdapter {
|
|||||||
} else {
|
} else {
|
||||||
isCommand = commandsNoPrefix.contains(arg);
|
isCommand = commandsNoPrefix.contains(arg);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (isCommand) {
|
if (isCommand) {
|
||||||
if (!hasPermissions(guild, channel)) {
|
if (!hasPermissions(guild, channel)) {
|
||||||
sendInvalidPermissionsMessage(user, channel);
|
sendInvalidPermissionsMessage(user, channel);
|
||||||
|
|||||||
Reference in New Issue
Block a user