Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have reworked the bot significantly. A lot of things have changed. Some things you won't care about, the others you might.
- Nevertheless I list all the changes here for prosperity.
- 1. All commands now have a "!command help" command, even if they're not useful.
- 2. !botcommands now lists help text for every command.
- 3. Bot commands now take in a bot parameter rather than a message parameter.
- 4. The owner-only message has been standardised and consistent throughout every command.
- 5. The bot now has new commands: !season, !debug, and !refresh
- 6. !season handles the seasonal ranking stuff. It requires a subcommand which I will list below.
- 7. !season check <username> will check the user's ranking in the current ranking period.
- 8. !season rank <url> will add a URL to the seasonal database.
- 9. !season top <number> [condensed?] returns the current top <number> players in the ranking. Pass in "yes" to the last parameter
- if you want it in a single line rather than multiple lines. e.g. "!season top 16 yes" will give you the top 16 in a single line.
- 10. !season reset will remove all data from the season. Use !season top <number> before doing this because otherwise it'll be gone forever.
- 11. !debug command is meant for personal use -- it helps me debug the bot if issues arise obviously.
- 12. !refresh reloads the entire command set and the configuration. This means that when I work on the bot there will be less
- chances of it going down because I can just refresh it instead. Again, personal use mainly.
- Due to how many changes there are, chances are something /might/ have broken. I went out of my way to make sure nothing did
- but sometimes these things pop up.
- With these changes in place I suspect that it will be easier to add more complicated commands in the future such as the long
- awaited "!timer" command. However that'll happen when I have feel like working on the bot which is not often.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement