Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/spaceeec/crux_interaction
DSL to define Discord application commands and means to respond to incoming interactions
https://github.com/spaceeec/crux_interaction
discord discord-api elixir
Last synced: 24 days ago
JSON representation
DSL to define Discord application commands and means to respond to incoming interactions
- Host: GitHub
- URL: https://github.com/spaceeec/crux_interaction
- Owner: SpaceEEC
- Created: 2020-12-10T16:03:49.000Z (about 4 years ago)
- Default Branch: trunk
- Last Pushed: 2021-12-22T19:59:09.000Z (about 3 years ago)
- Last Synced: 2024-10-30T14:09:36.049Z (2 months ago)
- Topics: discord, discord-api, elixir
- Language: Elixir
- Homepage:
- Size: 283 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Crux.Interaction [![](https://github.com/SpaceEEC/crux_interaction/workflows/Tests/badge.svg?event=push&branch=trunk)](https://github.com/SpaceEEC/crux_interaction/actions) [![](https://github.com/SpaceEEC/crux_interaction/workflows/Documentation/badge.svg?event=push&branch=trunk)](https://spaceeec.github.io/crux_interaction)
Library providing DSLs to define [application commands](https://discord.com/developers/docs/interactions/application-commands) for Discord applications / bots, as well as ways to handle incoming interactions (either through webhook [read: `plug`s] or gateway [read: probably `crux_gateway`]) and respond to them.
## Useful links
- Documentation TBD
- [GitHub](https://github.com/SpaceEEC/crux_interaction)
- Changelog TBD
- [Trunk Documentation](https://spaceeec.github.io/crux_interaction/)## Installation
For now `crux_interaction` can be installbed by adding it as a git dependencies to your `mix.exs`:
```elixir
def deps do
[
{:crux_interaction, github: "SpaceEEC/crux_interaction"}
]
end
```## Configuration
You can configure the json library `crux_interaction` use:
```elixir
config :crux_interaction, :json_library, Jason # That's the default value
```## Usage
Refer to the moduledocs for examples and API reference.
See useful links above for the documentation.