idk man, a lil house is some python glue and we're gonna take all yer money and uh... store it. for idk. tips and maybe bets. we'll see.
Go to file
lza_menace d61ec5d5ed add simple tipping func and update some messages 2020-07-14 15:27:53 -07:00
ircbot add simple tipping func and update some messages 2020-07-14 15:27:53 -07:00
torsocks adding tor docker stuff 2020-07-08 00:54:00 -07:00
.gitignore adding what I've got so far 2020-07-10 01:24:02 -07:00 fix simple typo 2020-07-13 00:34:43 -07:00
requirements.txt remove monero lib and add peewee orm 2020-07-13 00:34:56 -07:00


Doing Rust for everything was a PITA, so I'm going back to my roots and just doing a simple Python thing. Keep it ez anyways.


Not exactly the smoothest initialization for the bot right now; it's very stateful. You will need to spend some time creating an IRC account, generating keys, pulling container images, and setting up a wallet.

# pull latest wownero image
docker pull lalanza808/wownero

# generate new keys
openssl req -x509 -sha256 -new -newkey rsa:4096 -days 1000 -nodes -out freenode.pem -keyout freenode.pem

# get fingerprint
openssl x509 -in freenode.pem -outform der | sha1sum -b | cut -d' ' -f1

# use web IRC and authenticate
# /msg NickServ CERT ADD xxxxxxxxxxxxxxx

# initialize new wallet and retain seed
docker run --rm -it --name wow-wallet-init \
  -v $(pwd)/data:/root \
  wownero \
  wownero-wallet-cli \
  --daemon-address \
    --generate-new-wallet /root/wow \
    --password testing \

# setup rpc process
docker run --rm -d --name wow-wallet \
  -v $(pwd)/data:/root \
  -p 8888:8888 \
  wownero \
  wownero-wallet-rpc \
    --daemon-address \
    --wallet-file /root/wow \
    --password testing \
    --rpc-bind-port 8888 \
    --rpc-bind-ip \
    --confirm-external-bind \
    --rpc-login xxxx:yyyy \
    --log-file /root/rpc.log

# setup tor process
pushd torsocks && docker build -t tor . && popd
docker run -p 9050:9050 --rm -d --name tor tor

# install torsocks
brew install torsocks

# install python dependencies
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

# use remote relay/bridge
torsocks python3