aboutsummaryrefslogtreecommitdiff
path: root/plugins/gyms.js
diff options
context:
space:
mode:
authorTheEdgeNK <trey6979@gmail.com>2018-07-10 18:36:51 -0400
committerTheEdgeNK <trey6979@gmail.com>2018-07-10 18:36:51 -0400
commit96bdf46414fe806a19fa5070148fc4925be007d8 (patch)
tree137249477c654fce293554c9cc0c6387bc066701 /plugins/gyms.js
parentc648f47f889ee2dbfae0c896493c13efcd295b99 (diff)
downloadPokeBot-96bdf46414fe806a19fa5070148fc4925be007d8.tar.gz
PokeBot-96bdf46414fe806a19fa5070148fc4925be007d8.tar.bz2
PokeBot-96bdf46414fe806a19fa5070148fc4925be007d8.zip
hOLY
Diffstat (limited to 'plugins/gyms.js')
-rw-r--r--plugins/gyms.js34
1 files changed, 0 insertions, 34 deletions
diff --git a/plugins/gyms.js b/plugins/gyms.js
deleted file mode 100644
index 5b97b7b..0000000
--- a/plugins/gyms.js
+++ /dev/null
@@ -1,34 +0,0 @@
-/** **************************************
- *
- * Gyms: Plugin for PokeBot that enables gym features.
- * Copyright (C) 2018 TheEdge, jtsshieh, Alee
- *
- * Licensed under the Open Software License version 3.0
- *
- * *************************************/
-
-exports.isTeam = (member) => {
- let team;
- if (member.roles.find('name', 'Skull')) team = 'Skull';
- if (member.roles.find('name', 'Dark Side')) team = 'Dark Side';
- return team ? true : false;
-};
-
-exports.getTeam = (member) => {
- let team;
- if (member.roles.find('name', 'Skull')) team = 'Skull';
- if (member.roles.find('name', 'Dark Side')) team = 'Dark Side';
- return team;
-};
-
-exports.getOwnerId = (title) => {
- return title.slice(15).substring(0, 18);
-};
-
-exports.getGymString = (bot, member) => {
- return 'Current Owner: ' + member.id + '/' + member.user.tag + '/' + bot.plugins.gyms.getTeam(member);
-};
-
-exports.isOwned = (title) => {
- return title != 'Current Owner: *none*';
-};