/luser

chat bot in irc:chat.freenode.net/#vnluser

Primary LanguageRustOtherNOASSERTION

See the bot in action at its test channel, #luser-test.

Rust version

Building for ARM is a bit convoluted:

  1. Set up cross-compilation toolchain
  2. Copy the target’s /usr/include/openssl, lib{crypto,ssl,z}.so to $PWD
  3. Run cargo with:
    TARGET_CFLAGS="-I $PWD" cargo rustc --release --target arm-unknown-linux-gnueabihf -- -C linker=arm-linux-gnueabihf-gcc -lz -L $PWD
        
  4. Copy target/arm-unknown-linux-gnueabihf/release/luser to the target

Python version

Install dependencies: pip3 install --user ib3 bs4 irc

Go version

go run src/luser.go