Skip to content

Commit

Permalink
remove deprecated commands, update elixir/deps
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3-M4jor committed May 3, 2024
1 parent 8dbc793 commit 588de4b
Show file tree
Hide file tree
Showing 42 changed files with 131 additions and 4,398 deletions.
4 changes: 2 additions & 2 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
elixir 1.15.7-otp-26
erlang 26.1.2
elixir 1.16.2-otp-26
erlang 26.2.5
23 changes: 6 additions & 17 deletions config/example_config.exs
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,16 @@ config :adjutant, Oban,
repo: Adjutant.Repo.SQLite,
engine: Oban.Engines.Lite,
queues: [
remind_me: [limit: 2, paused: true],
remind_me: [limit: 5, paused: true],
edit_message: [limit: 2, paused: true],
log_cleaner: [limit: 1, paused: false]
],
plugins: [
{Oban.Plugins.Reindexer, schedule: "@weekly"},
{Oban.Plugins.Pruner, max_age: 50 * 60, interval: :timer.minutes(500)},
{Oban.Plugins.Lifeline, interval: :timer.minutes(60)},
{Oban.Plugins.Cron,
crontab: [
{"@weekly", Adjutant.Workers.LogCleaner}
{"@daily", Adjutant.Workers.LogCleaner}
]}
]

Expand All @@ -55,22 +54,12 @@ config :adjutant, Adjutant.Repo.SQLite,
database: "./db/dev_db.db",
priv: "priv/sqlite"

# uses postgres for storing BnB data, and for Oban
config :adjutant, Adjutant.Repo.Postgres,
username: "postgres",
password: "postgres",
database: "default",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10,
priv: "priv/postgres"

config :adjutant,
ecto_repos: [Adjutant.Repo.SQLite, Adjutant.Repo.Postgres],
ecto_repos: [Adjutant.Repo.SQLite],
ecto_shard_count: 1,
remind_me_queue: :dev_remind_me,
edit_message_queue: :dev_edit_message,
log_cleaner_queue: :dev_log_cleaner,
remind_me_queue: :remind_me,
edit_message_queue: :edit_message,
log_cleaner_queue: :log_cleaner,
prefix: "!",
owner_id: 666,
admins: [667, 668],
Expand Down
16 changes: 3 additions & 13 deletions config/test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ config :logger,
]

config :adjutant, Oban,
prefix: "oban_jobs",
repo: Adjutant.Repo.Postgres,
repo: Adjutant.Repo.SQLite,
engine: Oban.Engines.Lite,
queues: [
dev_remind_me: [limit: 2, paused: true],
dev_edit_message: [limit: 2, paused: true]
Expand All @@ -44,18 +44,8 @@ config :adjutant, Adjutant.Repo.SQLite,
database: "./db/dev_db.db",
priv: "priv/sqlite"

# uses postgres for storing BnB data, and for Oban
config :adjutant, Adjutant.Repo.Postgres,
username: "postgres",
password: "postgres",
database: "default",
hostname: "localhost",
show_sensitive_data_on_connection_error: true,
pool_size: 10,
priv: "priv/postgres"

config :adjutant,
ecto_repos: [Adjutant.Repo.SQLite, Adjutant.Repo.Postgres],
ecto_repos: [Adjutant.Repo.SQLite],
ecto_shard_count: 1,
remind_me_queue: :dev_remind_me,
edit_message_queue: :dev_edit_message,
Expand Down
13 changes: 1 addition & 12 deletions lib/adjutant/command.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,7 @@ defmodule Adjutant.Command do
Adjutant.Command.Slash.HOTG.Team
]

@deleted_commands [
Adjutant.Command.Slash.BNB.Create,
Adjutant.Command.Slash.BNB.PHB,
Adjutant.Command.Slash.BNB.NCP,
Adjutant.Command.Slash.BNB.Chip,
Adjutant.Command.Slash.BNB.Virus,
Adjutant.Command.Slash.BNB.Status,
Adjutant.Command.Slash.BNB.Blight,
Adjutant.Command.Slash.BNB.Panels,
Adjutant.Command.Slash.BNB.Reload,
Adjutant.Command.Slash.BNB.Groups
]
@deleted_commands []

def setup_commands do
Adjutant.Command.State.delete_commands(@deleted_commands)
Expand Down
125 changes: 0 additions & 125 deletions lib/adjutant/command/slash/bnb/all.ex

This file was deleted.

131 changes: 0 additions & 131 deletions lib/adjutant/command/slash/bnb/blight.ex

This file was deleted.

Loading

0 comments on commit 588de4b

Please sign in to comment.