Simple Steam profile checker bot for Telegram messenger checks Steam community profiles including VAC, trade, etc. statuses.
This bot can also check users via third-party services:
- TEAM-FORTRESS.SU anti-scam service;
- STEAMREP.COM anti-scam service.
GNU General Public License version 3. You can find it here: COPYING. External libraries can use another licenses, compatible with GNU GPLv3.
- Python 2.7 or Python 3.x;
- python-pytelegrambotapi;
- python-minidom;
- python-requests.
This bot can work without installation. Just clone repository, enter API tokens and run it:
- Clone this repository:
git clone https://github.com/xvitaly/stmbot.git
- Get API tokens from @BotFather and TEAM-FORTRESS.SU forum, open
stmbot/settings.py
file in any text editor and set them. - Run it using Python 3.x:
cd stmbot
/usr/bin/python3 stmbot/scripts/runbot.py
- Or run it using Python 2.7:
cd stmbot
/usr/bin/python2 stmbot/scripts/runbot.py
You can also install bot:
- Clone this repository:
git clone https://github.com/xvitaly/stmbot.git
- Get API tokens from @BotFather and TEAM-FORTRESS.SU forum, open
stmbot/settings.py
file in any text editor and set them. - Install bot using Python 3:
cd stmbot
sudo /usr/bin/python3 setup.py install
- Install bot using Python 2.7:
cd stmbot
sudo /usr/bin/python2 setup.py install
- Run installed bot:
/usr/bin/stmbot
- Clone this repository:
git clone https://github.com/xvitaly/stmbot.git
- Install mock, spectool and rpmbuild:
sudo dnf install rpm-build rpmdevtools mock
Add yourself to mock
group (you must run this only for the first time after installing mock):
sudo usermod -a -G mock $(whoami)
You need to relogin to your system after doing this or run:
newgrp mock
- Create RPM build base directories:
rpmdev-setuptree
- Download sources:
cd stmbot
spectool -g -R stmbot.spec
- Generate SRPM package for mock:
cd stmbot
rpmbuild -bs stmbot.spec
- Start mock build sequence:
mock -r fedora-$(rpm -E %fedora)-$(uname -m) --rebuild ~/rpmbuild/SRPMS/stmbot*.src.rpm
- Wait for a while and then install result without debug subpackages:
sudo dnf install /var/lib/mock/*/result/python3-stmbot*.noarch.rpm --exclude="*debug*"
- Remove temporary files from
~/rpmbuild
,/var/cache/mock
,/var/lib/mock
directories.
If bot was installed from RPM package, it can be controlled by systemd.
Start bot:
sudo systemctl start stmbot.service
Stop bot:
sudo systemctl stop stmbot.service
Restart bot:
sudo systemctl restart stmbot.service
Enable bot autostart on system boot:
sudo systemctl enable stmbot.service
Disable bot autostart on system boot:
sudo systemctl disable stmbot.service