【文件属性】:
文件名称:currexbot:用Elixir编写的电报机器人
文件大小:31KB
文件格式:ZIP
更新时间:2021-05-10 13:43:42
elixir telegram-bot Elixir
CurrexBot
用Elixir编写的电报bot。
安装
# Install Elixir deps
mix deps.get
# Get new Telegram bot token
https://telegram.me/BotFather
# Set up the secrets
cp config/dev.secret.exs.example config/dev.secret.exs
vim config/dev.secret.exs
# Run the tests
mix test
# Run the app in console mode
iex -S mix
# Or run without console
mix run --no-halt
在Dokku上部署
查看指南。
# Run custom command on Dokku (on server)
dokku
【文件预览】:
currexbot-master
----mix.exs(834B)
----config()
--------prod.secret.exs(203B)
--------prod.exs(112B)
--------test.exs(59B)
--------dev.secret.exs.example(248B)
--------config.exs(159B)
--------dev.exs(112B)
----priv()
--------repo()
----.iex.exs(63B)
----test()
--------currexbot_test.exs(120B)
--------test_helper.exs(15B)
--------fixtures()
----DEPLOY.md(1KB)
----mix.lock(6KB)
----elixir_buildpack.config(76B)
----LICENSE.md(1KB)
----.gitignore(71B)
----lib()
--------currexbot.ex(369B)
--------currexbot()
----.buildpacks(56B)
----README.md(711B)