-
Notifications
You must be signed in to change notification settings - Fork 0
Changelog
Added functions using AIOHTTP (fetching web data) and JSON (formatting it): a weather command that shows detailed information about the weather in a selected city, as well as a time command. Because the time API requires premium for searching by the city, but is free for latitude/longitude search (which is provided by weather) we use both of them junction.
Created a MySQL database connector in main, we can use a database to store stats (e.g. Guess Game stats) and other statistics such as bot or user messages sent, deleted, times mentioned etc. to make UserStats/BotStats and UserLevel functions (user levels up gaining EXP for every message or reaction sent).
Added admin-only functions using discord.ext commands checks: a client (bot) IP info + location and asyncio sleep function
Added more basic functions such as mentioned user info, server info, multiple dice roll.
Fixed some errors, revised the code of old functions and many other small improvements.
Updated the code to be compatible with the newly released discord.py v1.0 lib (rewrite)
Converted all commands from @client.event to @client.command by making a class for each module and calling the commands into main.py using cogs.
This should make the bot faster and more responsive, and also allows the use of special command features overall improving the code, performance and memory usage.
Thanks to this, the change was worth it. I will be posting links for cogs documentation and tutorial in the README. You can find info about classes in the Think Python book provided by the university.