Usage
## .github/workflows/event.yml
name: event
on:
workflow_dispatch:
issue_comment:
types: [created, edited]
issues:
types: [opened, edited]
jobs:
exbot:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: clszzyh/elixir_bot@main
Eval Elixir Code
Create an issue or comment with
β```elixir
## @ex-bot
r factorial = fn
1 -> 1
n -> n * factorial.(n - 1)
end
factorial.(22222)
β```
See also sand package for elixir sandbox.
Commands
Create an issue or comment with
@ex-bot {{command}} {{args}}
Command | Args | Description |
---|---|---|
@ex-bot ping |
pong |
|
@ex-bot version |
print current version |
TODO
- Permission (check issue owner)
- Dynamic invoke tentacat