mirror of
https://github.com/ash-project/ash_hq.git
synced 2024-09-20 05:13:23 +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
|
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
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
_ ->
|
_ ->
|
||||||
|
|
Loading…
Reference in a new issue