Skip to content

Commit

Permalink
Remove assists (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: tiksan <[email protected]>
  • Loading branch information
dssecret authored Sep 30, 2024
1 parent 81b6772 commit e03c5b3
Show file tree
Hide file tree
Showing 41 changed files with 6 additions and 2,107 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Removed `ddtrace` importing and setting of user ID in span within `@app.before_request`
- Removed `discord-gateway` from monorepo
- Removed verification on join from Celery worker
- Removed assists from Celery, application, etc.
1 change: 0 additions & 1 deletion application/commands/commands.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"bot/server",
"bot/verify/verify",
"bot/verify/verifyall",
"faction/assist/assist",
"faction/banking/balance",
"faction/banking/cancel",
"faction/banking/fulfill",
Expand Down
20 changes: 0 additions & 20 deletions application/commands/faction/assist/assist.json

This file was deleted.

26 changes: 0 additions & 26 deletions application/controllers/api/v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,6 @@
view_func=bot.armory.armorer_roles,
methods=["POST"],
)
mod.add_url_rule(
"/api/v1/bot/<int:guildid>/assists/channel",
view_func=bot.assists.assists_channel,
methods=["POST"],
)
mod.add_url_rule(
"/api/v1/bot/<int:guild_id>/assists/roles/<string:role_type>",
view_func=bot.assists.assists_role_set,
methods=["POST"],
)
mod.add_url_rule(
"/api/v1/bot/<int:guild_id>/attacks/retal/<int:faction_tid>/channel",
view_func=bot.attacks.faction_retal_channel,
Expand Down Expand Up @@ -202,12 +192,6 @@
)

# /api/v1/faction
mod.add_url_rule(
"/api/v1/faction/assist/<int:target_tid>",
view_func=faction.assist.forward_assist,
methods=["POST"],
)
mod.add_url_rule("/api/v1/faction/assists", view_func=faction.assist.valid_assists, methods=["GET"])
mod.add_url_rule(
"/api/v1/faction/banking",
view_func=faction.banking.banking_request,
Expand All @@ -218,16 +202,6 @@
view_func=faction.banking.vault_balance,
methods=["GET"],
)
mod.add_url_rule(
"/api/v1/faction/assists/server/<int:guild_id>",
view_func=faction.bot.add_assist_server,
methods=["POST"],
)
mod.add_url_rule(
"/api/v1/faction/assists/server/<int:guild_id>",
view_func=faction.bot.remove_assist_server,
methods=["DELETE"],
)
mod.add_url_rule("/api/v1/faction/chain", view_func=faction.chain.chain_config, methods=["GET"])
mod.add_url_rule(
"/api/v1/faction/chain/od/channel",
Expand Down
1 change: 0 additions & 1 deletion application/controllers/api/v1/bot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

from controllers.api.v1.bot import (
armory,
assists,
attacks,
banking,
config,
Expand Down
95 changes: 0 additions & 95 deletions application/controllers/api/v1/bot/assists.py

This file was deleted.

12 changes: 0 additions & 12 deletions application/controllers/api/v1/bot/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,18 +57,6 @@ def jsonified_server_config(guild: Server):
},
"banking": guild.banking_config,
"armory": {"enabled": guild.armory_enabled, "config": {**guild.armory_config}},
"assists": {
"channel": str(guild.assist_channel),
"factions": guild.assist_factions,
"roles": {
"smoker": list(map(str, guild.assist_smoker_roles)),
"tear": list(map(str, guild.assist_tear_roles)),
"l0": list(map(str, guild.assist_l0_roles)),
"l1": list(map(str, guild.assist_l1_roles)),
"l2": list(map(str, guild.assist_l2_roles)),
"l3": list(map(str, guild.assist_l3_roles)),
},
},
"attacks": {
config.faction_id: {
"retal": {
Expand Down
2 changes: 1 addition & 1 deletion application/controllers/api/v1/faction/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.

from controllers.api.v1.faction import assist, banking, bot, chain, crimes, positions
from controllers.api.v1.faction import banking, chain, crimes, positions
Loading

0 comments on commit e03c5b3

Please sign in to comment.