nixbot
nixbot copied to clipboard
- Nixbot
Nixbot is an IRC bot supporting Nix-related functionality. It's using a RabbitMQ broker maintained by @grahamc for sending messages via the ~{^_^}~ nick on freenode (and therefore can't run on its own currently).
** Functionality
*** Nix REPL
Nix can be evaluated by prefixing "> ":
#+BEGIN_SRC
You can also define variables:
#+BEGIN_SRC
The NixOS module makes sure that ~
*** Commands
You can define a key to string mapping via the ~,~ prefix:
#+BEGIN_SRC
**** Special command: ,find
The ~find~ command allows you to find files in nixpkgs with a specific suffix. The bot will link to the latest github master version
#+BEGIN_SRC
If there are multiple possible answers, it will choose the file with the most commits.
**** Special command: ,locate
The ~locate~ command uses [[https://github.com/bennofs/nix-index/][nix-index]] to find packages containing a certain file in their output. The ~bin~ subcommand only searches for binaries:
#+BEGIN_SRC
**** Special command: ,tell
~tell~ allows you to record a message for a user that currently is not in the channel. It will get relayed to them when they type a message in the channel:
#+BEGIN_SRC
*** PR linking
When you link to a GitHub pull request (or post its number), the bot will post some info about it.
#+BEGIN_SRC