chore: hardcode discord bot user id and clean up

This commit is contained in:
Zach Daniel 2023-04-09 02:20:09 -04:00
parent 477d778097
commit ac450a2329
2 changed files with 9 additions and 3 deletions

View file

@ -7,6 +7,8 @@ defmodule AshHq.Discord.Listener do
import Bitwise import Bitwise
@all_types AshHq.Docs.Extensions.Search.Types.types() -- ["Forum"] @all_types AshHq.Docs.Extensions.Search.Types.types() -- ["Forum"]
@user_id 1_066_406_803_769_933_834
def start_link do def start_link do
Consumer.start_link(__MODULE__) Consumer.start_link(__MODULE__)
end end
@ -216,6 +218,10 @@ defmodule AshHq.Discord.Listener do
] ]
} }
Nostrum.Api.create_guild_application_command(AshHq.Discord.Poller.server_id(), command) Nostrum.Api.create_guild_application_command(
@user_id,
AshHq.Discord.Poller.server_id(),
command
)
end end
end end

View file

@ -261,7 +261,7 @@ defmodule Utils do
defp schema(schema, path) do defp schema(schema, path) do
schema schema
|> Enum.reject(fn {key, config} -> |> Enum.reject(fn {_key, config} ->
config[:hide] config[:hide]
end) end)
|> Enum.with_index() |> Enum.with_index()
@ -556,7 +556,7 @@ defmodule Utils do
extras = extras =
mix_project.project[:docs][:extras] mix_project.project[:docs][:extras]
|> Enum.reject(fn |> Enum.reject(fn
{name, config} -> {_name, config} ->
config[:ash_hq?] == false || config[:ash_hq] == false config[:ash_hq?] == false || config[:ash_hq] == false
_ -> _ ->