lza_menace
/
tg-bot
Arquivado
1
0
Fork 1
Telegram bot.
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
Este repositório está arquivado. Você pode visualizar os arquivos e realizar clone, mas não poderá realizar push nem abrir issues e pull requests.
 
 
 
lza_menace ed26c40a8b
dont ref username since many dont have one
3 anos atrás
admin update balances stmt 3 anos atrás
bin remove conflict 3 anos atrás
tipbot dont ref username since many dont have one 3 anos atrás
.gitignore revamp - bring the bot to life again 3 anos atrás
LICENSE Initial commit 4 anos atrás
Makefile revamp - bring the bot to life again 3 anos atrás
README.md add note about adding commands for development 4 anos atrás
env-example revamp - bring the bot to life again 3 anos atrás
requirements.txt revamp - bring the bot to life again 3 anos atrás

README.md

tg-tipbot

Telegram tip bot.

Setup

# initialize new wallet and retain seed
docker run --rm -it --name wow-wallet-init \
  -v $(pwd)/data:/root \
  lalanza808/wownero \
  wownero-wallet-cli \
    --daemon-address https://node.suchwow.xyz:443 \
    --generate-new-wallet /root/wow \
    --password zzzzzz \

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

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

# setup secrets in config file outside of git
cp tipbot/config.example.py tipbot/config.py
vim !$

Usage

There are 2 modules in this repo:

  • tipbot - the Telegram bot process
  • admin - management commands

To use them, ensure you're in the virtualenv and run python3 -m tipbot or python3 -m admin

Development

To add more commands, create a new Python file under tipbot/commands; copy another one for an example. Add another import for the command function in tipbot/commands/init.py and add the command to the all_commands dictionary in the same file.