mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-19 21:03:30 +12:00
chore: hardcode discord bot user id and clean up
This commit is contained in:
parent
477d778097
commit
ac450a2329
2 changed files with 9 additions and 3 deletions
|
@ -7,6 +7,8 @@ defmodule AshHq.Discord.Listener do
|
|||
import Bitwise
|
||||
@all_types AshHq.Docs.Extensions.Search.Types.types() -- ["Forum"]
|
||||
|
||||
@user_id 1_066_406_803_769_933_834
|
||||
|
||||
def start_link do
|
||||
Consumer.start_link(__MODULE__)
|
||||
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
|
||||
|
|
|
@ -261,7 +261,7 @@ defmodule Utils do
|
|||
|
||||
defp schema(schema, path) do
|
||||
schema
|
||||
|> Enum.reject(fn {key, config} ->
|
||||
|> Enum.reject(fn {_key, config} ->
|
||||
config[:hide]
|
||||
end)
|
||||
|> Enum.with_index()
|
||||
|
@ -556,7 +556,7 @@ defmodule Utils do
|
|||
extras =
|
||||
mix_project.project[:docs][:extras]
|
||||
|> Enum.reject(fn
|
||||
{name, config} ->
|
||||
{_name, config} ->
|
||||
config[:ash_hq?] == false || config[:ash_hq] == false
|
||||
|
||||
_ ->
|
||||
|
|
Loading…
Reference in a new issue