SAMP Stats (formerly Nephrite Stats) is my first big Python project that helped me learn a lot of useful things.
The project was started on September 2019 using AlexFlipnote's discord_bot.py project.
This repository marks the point where most of the code base was refactored as Discord started pushing their API v9 and introduced the Slash Commands.
It also marks the time I started to actively use GitHub for source control.
I've cleaned the repository using BFG before making it public (initially it wasn't meant to be public, so I had to remove some credentials and tokens sensitive data).
New features probably won't be made, at most I'll do updates with bug fixes and small changes when needed. This project was a good learning playground but it's time to move on. I enjoyed working on it and I learned a lot from it's challenges and feedback.
SAMP Stats scrapes data from rubypanel.nephrite.ro and sends it, formatted nicely to the user, via Discord.
It asynchronously sends requests in order to get it's data and saves the web session for faster responses.
Name | Parameters | Usage |
---|---|---|
/stats | nickname |
Displays player statistics with an interactive menu |
/id | nickname |
Displays online players with the matching nickname |
/faction | faction_name |
Displays faction statistics with an interactive menu |
/testers | faction_name |
Displays the faction's testers with their online status |
/aplicatii | faction_name |
Displays the specified faction's applicants with an interactive menu |
/clan | clan_name |
Displays clan statistics with an interactive menu |
/raportu | server_name |
Displays the specified SAMP server's data |
/leaders | Displays the server's leaders with their online status |