Skip to content
This repository has been archived by the owner on Mar 20, 2021. It is now read-only.

xvitaly/stmbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

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:

License

GNU General Public License version 3. You can find it here: COPYING. External libraries can use another licenses, compatible with GNU GPLv3.

Requirements

  • Python 2.7 or Python 3.x;
  • python-pytelegrambotapi;
  • python-minidom;
  • python-requests.

Running bot without installation

This bot can work without installation. Just clone repository, enter API tokens and run it:

  1. Clone this repository:
git clone https://github.com/xvitaly/stmbot.git
  1. Get API tokens from @BotFather and TEAM-FORTRESS.SU forum, open stmbot/settings.py file in any text editor and set them.
  2. Run it using Python 3.x:
cd stmbot
/usr/bin/python3 stmbot/scripts/runbot.py
  1. Or run it using Python 2.7:
cd stmbot
/usr/bin/python2 stmbot/scripts/runbot.py

Installing bot

You can also install bot:

  1. Clone this repository:
git clone https://github.com/xvitaly/stmbot.git
  1. Get API tokens from @BotFather and TEAM-FORTRESS.SU forum, open stmbot/settings.py file in any text editor and set them.
  2. Install bot using Python 3:
cd stmbot
sudo /usr/bin/python3 setup.py install
  1. Install bot using Python 2.7:
cd stmbot
sudo /usr/bin/python2 setup.py install
  1. Run installed bot:
/usr/bin/stmbot

Building RPM package for Fedora

  1. Clone this repository:
git clone https://github.com/xvitaly/stmbot.git
  1. 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
  1. Create RPM build base directories:
rpmdev-setuptree
  1. Download sources:
cd stmbot
spectool -g -R stmbot.spec
  1. Generate SRPM package for mock:
cd stmbot
rpmbuild -bs stmbot.spec
  1. Start mock build sequence:
mock -r fedora-$(rpm -E %fedora)-$(uname -m) --rebuild ~/rpmbuild/SRPMS/stmbot*.src.rpm
  1. Wait for a while and then install result without debug subpackages:
sudo dnf install /var/lib/mock/*/result/python3-stmbot*.noarch.rpm --exclude="*debug*"
  1. Remove temporary files from ~/rpmbuild, /var/cache/mock, /var/lib/mock directories.

Systemd service

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

About

Steam profile checker bot

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages