You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
591 B
Markdown
30 lines
591 B
Markdown
8 months ago
|
# Info
|
||
|
This code publish information of the Mastodon instance where the bot has its account, if requested.
|
||
|
|
||
|
The bot listen to 'info' word key:
|
||
|
|
||
|
@bot_username info
|
||
|
|
||
|
and then reply following information:
|
||
|
|
||
|
Registered users
|
||
|
Active users (MAU)
|
||
|
LocalPosts
|
||
|
Instance's peers
|
||
|
Mastodon's version
|
||
|
Registration Opened/Closed
|
||
|
|
||
|
### Dependencies
|
||
|
|
||
|
- **Python 3**
|
||
|
- Mastodon account
|
||
|
|
||
|
### Usage:
|
||
|
|
||
|
Within Python Virtual Environment:
|
||
|
|
||
|
1. Run `pip install -r requirements.txt` to install needed libraries.
|
||
|
|
||
|
2. Use your favourite scheduling method to set `python info.py` to run every minute.
|
||
|
|