You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
848 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. #+title: botiut
  2. #+author: Annwan
  3. #+date: <2022-03-16 Wed>
  4. #+options: h:0 num:nil toc:nil
  5. ** TODO List
  6. - [ ] Write example configuration
  7. ** Setup
  8. *** Prerequisites
  9. - [[https://docs.haskellstack.org/en/stable/README/][The Haskell tool stack]] ([[./stack-arm.org][installing stack on ARM64]])
  10. *** Building
  11. #+begin_src sh
  12. git clone 'https://git.annwan.me/Annwan/botiut'
  13. cd botiut
  14. stack setup
  15. stack build
  16. #+end_src
  17. *** Configuring
  18. - Put your discord token in ~auth.secret~ in the working directory,
  19. without trailing new lines
  20. - Put the yaml format configuration in ~conf.yaml~. +A commented
  21. configuration example is given in [[./conf.example.yaml][conf.example.yaml]].+
  22. *** Running
  23. There is two options
  24. 1) Run ~stack run~ from the repository
  25. 2) Copy the executable somewhere else, then call it from the expected
  26. working directory.