▄▄▄▄▄▪ ▄▄▄▄· ▪ ▄▄▄· ·▄▄▄▄ ▪ .▄▄ · ▄▄· ▄▄▄ ·▄▄▄▄ ▄▄▄▄· ▄▄▄▄▄
•██ ██ ▐█ ▀█▪██ ▐█ ▀█ ██▪ ██ ██ ▐█ ▀. ▐█ ▌▪▪ ▀▄ █·██▪ ██ ▐█ ▀█▪▪ •██
▐█.▪▐█·▐█▀▀█▄▐█·▄█▀▀█ ▐█· ▐█▌▐█·▄▀▀▀█▄██ ▄▄ ▄█▀▄ ▐▀▀▄ ▐█· ▐█▌ ▐█▀▀█▄ ▄█▀▄ ▐█.▪
▐█▌·▐█▌██▄▪▐█▐█▌▐█ ▪▐▌ ██. ██ ▐█▌▐█▄▪▐█▐███▌▐█▌.▐▌▐█•█▌██. ██ ██▄▪▐█▐█▌.▐▌ ▐█▌·
▀▀▀ ▀▀▀·▀▀▀▀ ▀▀▀ ▀ ▀ ▀▀▀▀▀• ▀▀▀ ▀▀▀▀ ·▀▀▀ ▀█▄▀▪.▀ ▀▀▀▀▀▀• ·▀▀▀▀ ▀█▄▀▪ ▀▀▀
This is a Discord bot designed to provide various functionalities related to the Tibia game. In this case, it is configured to work on the Mortalis server of soerpg.com.
The bot is programmed in Python using the discord.py library to interact with the Discord API using asynchronous operations. It provides functions such as adding a name to the list, and by using the Beautiful Soup library, we can perform Web Scraping to check character level ups, character deaths, or check who is online. It is also possible to check the current location of NPC Rashid or, thanks to the OpenCV library, process attached images and classify loot by selling places among other things.
- Clone this repository to your local machine.
- Install the necessary dependencies using the command
pip install -r requirements.txt. - Ensure you have a
.envfile with the necessary environment variables, including the Discord bot token and the IDs of the Announcement and Command channels. - Run the bot using the command
python bot.py.
Once the bot is up and running and added to your Discord server, you can use the available commands to get information about characters, recent deaths, Rashid's location, and more. Make sure to assign the necessary permissions to the bot so it can access channels and execute commands.
Commands:
!addname: Using this command followed by a name will add it to the list of characters for which tracking of deaths, level ups, and online status will be done. Example: !addname Monforte.
!loot: If we use this command and attach an image, the bot will classify the loot by colors (Blue -> Blue Djinn, Green -> Green Djinn, Yellow -> Rashid).
!online: This command will show us the characters from our list that are online.
!rashid: With this command, we can see the location of NPC Rashid today (Server Save Time: 10 am).
Passive Functions:
dead_list(): Tracking of character deaths from our list.
lvl_check(): Tracking of character level ups from our list.





