Base Astro Bot
Base Bot for Star Citizen players
This project contains python base bot class, useful when creating a bot on specific platform.
Available features:
- Organization fleet information. Each member can add/remove ships that he owns. Database is stored for everyone. There are commands to display whole organization fleet or ships owned by specific member.
- Ship matrix data. There are commands to view ship details, comparison of multiple ships or check prices of multiple ships that match expression (e.g. all DRAKE ships)
- Displaying of Road Map data with filters on specific expression (e.g. when searching for a ship release). Displaying info for a specific release or Road Map category.
- Displaying current SC releases (PU and PTU) according to Road Map version.
- Thread monitoring changes in current SC release on Road Map page and Spectrum forums.
- Trade assistant shows best trade routes for given conditions (budget, cargo, start/end location).
- Mining assistant showing resources prices.
If your bot is running use the help command to see all available commands.
Prerequisites
- Python 3.5+
- MongoDB - for storing data cache
- Some SQL database if you don't want to use default SQLite
Dependencies
- pafy 0.5.4
- pymongo 3.7.2
- SQLAlchemy 1.2.12
- tabulate 0.8.2
- youtube-dl 2018.10.5
Installation
pip install base_astro_bot
python -m dastro_bot.install DIRECTORY_NAME
The second command generates default configuration files to run your own BOT:
- languages.py - named tuples with translation
- settings.py - custom settings for your server
Basic Configuration
Here's what you absolutely need to configure to run the bot:
- settings.py
- set the CHANNELS dict values
- actually in basic config only the
mainchannel is required - you can set all three channels with the same value
Trade and mining data
All raw data for these features is pulled from this project API:
https://scm.oceandatarat.org
I strongly encourage to use this page for prices and other data reporting or to
contribute in any other way to the linked project.
Please create your own account on that page and set the SCM_TOKEN in
settings.py accordingly.
SQL Database
Astro Bot uses SQL Alchemy to handle database and SQLite database is
used by default. If you want to use different database then please
adjust settings.py file accordingly.
There are two parameters there which are used to configure database:
DATABASE_NAME
DATABASE_DIALECT
MongoDB
Mongo is used to store cache data (in case if external data sources are unavailable).
It works with default settings. If you need to customize it find MONGO_CONNECTION_STRING
in settings.py
Metadata
Release files for base-astro-bot 1.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| base_astro_bot-1.3.6.tar.gz | 20.6 kB | Without provenance | Details for base_astro_bot-1.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| base_astro_bot-1.3.6-py3-none-any.whl | Python 3 | none | any | Details for base_astro_bot-1.3.6-py3-none-any.whl |
Total release size: 50.4 kB
Release files / base_astro_bot-1.3.6.tar.gz
| Download URL | base_astro_bot-1.3.6.tar.gz |
|---|---|
| Size | 20.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
64b5e64a84f48491bedfce0de76fa9ea095a05aafc8604516ee5782bc9e615d7
|
|
BLAKE2b-256 checksum How to use checksums |
7870ea89c2607e1f802ec422e118643f531de1d9b780567a399997bf85457812
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.8
|
Release files / base_astro_bot-1.3.6-py3-none-any.whl
| Download URL | base_astro_bot-1.3.6-py3-none-any.whl |
|---|---|
| Size | 29.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1faa41038d26c5e71a44502a9282db4f0f1bd7a001555cbb70d22d596d0f21eb
|
|
BLAKE2b-256 checksum How to use checksums |
dfc23584381edf41765b4bc09d13eaa9c789c6da50617a9c72dde6088d9dd186
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.29.0 CPython/3.6.8
|
Security for base-astro-bot 1.3.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.