Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,6 @@ export default class Switch extends DiscordBasePlugin {
const teamID = info.player?.teamID;
const message = info.message.toLowerCase();

this.verbose(1, `${playerName}:\n > Connection: ${this.getSecondsFromJoin(steamID)}\n > Match Start: ${this.getSecondsFromMatchStart()}`)

if (this.options.doubleSwitchCommands.find(c => c.toLowerCase() == message))
this.doubleSwitchPlayer(steamID)

Expand All @@ -168,6 +166,7 @@ export default class Switch extends DiscordBasePlugin {
if ((typeof this.options.commandPrefix === 'string' && !message.startsWith(this.options.commandPrefix)) || (typeof this.options.commandPrefix === 'object' && this.options.commandPrefix.length >= 1 && !this.options.commandPrefix.find(c => message.startsWith(c.toLowerCase())))) return;

this.verbose(1, 'Received command', message, commandPrefixInUse)
this.verbose(1, `${playerName}:\n > Connection: ${this.getSecondsFromJoin(steamID)}\n > Match Start: ${this.getSecondsFromMatchStart()}`)

const commandSplit = message.substring(commandPrefixInUse.length).trim().split(' ');
const subCommand = commandSplit[ 0 ];
Expand Down Expand Up @@ -517,4 +516,4 @@ export default class Switch extends DiscordBasePlugin {

return ret[ 0 ];
}
}
}