diff options
| author | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:35:12 -0500 |
|---|---|---|
| committer | Unknown <jtsshieh@outlook.com> | 2018-02-24 21:35:12 -0500 |
| commit | a5d68950de72f8dd3d7737d97b41c2b13b76e0e9 (patch) | |
| tree | 54fc8d89d6408fce4609e778e4793d65c6d41bdd /commands/Pokemon/drop.js | |
| parent | 1e46326ed2dd69b2df19c4ff7a83b329ad1d8187 (diff) | |
| download | PokeBot-a5d68950de72f8dd3d7737d97b41c2b13b76e0e9.tar.gz PokeBot-a5d68950de72f8dd3d7737d97b41c2b13b76e0e9.tar.bz2 PokeBot-a5d68950de72f8dd3d7737d97b41c2b13b76e0e9.zip | |
testing
Diffstat (limited to 'commands/Pokemon/drop.js')
| -rw-r--r-- | commands/Pokemon/drop.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/Pokemon/drop.js b/commands/Pokemon/drop.js index fd3bc2d..8d822a6 100644 --- a/commands/Pokemon/drop.js +++ b/commands/Pokemon/drop.js @@ -4,7 +4,7 @@ exports.run = async (bot, msg) => { msg.reply('There is no owner for this gym. Claim it now with p:claim!'); } else { - const owner = msg.channel.topic.slice(15).substring(msg.author.tag.length - 1); + const owner = msg.channel.topic.slice(15).substring(19); if (msg.author.id != owner) { return msg.reply('You are not the owner of this gym.'); } |
