Skip to content

Discord bot for Tibia game. (Server: Mortalis of soerpg.com)

Notifications You must be signed in to change notification settings

MonforteGG/soe-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

▄▄▄▄▄▪  ▄▄▄▄· ▪   ▄▄▄·     ·▄▄▄▄  ▪  .▄▄ ·  ▄▄·       ▄▄▄  ·▄▄▄▄      ▄▄▄▄·       ▄▄▄▄▄
•██  ██ ▐█ ▀█▪██ ▐█ ▀█     ██▪ ██ ██ ▐█ ▀. ▐█ ▌▪▪     ▀▄ █·██▪ ██     ▐█ ▀█▪▪     •██  
 ▐█.▪▐█·▐█▀▀█▄▐█·▄█▀▀█     ▐█· ▐█▌▐█·▄▀▀▀█▄██ ▄▄ ▄█▀▄ ▐▀▀▄ ▐█· ▐█▌    ▐█▀▀█▄ ▄█▀▄  ▐█.▪
 ▐█▌·▐█▌██▄▪▐█▐█▌▐█ ▪▐▌    ██. ██ ▐█▌▐█▄▪▐█▐███▌▐█▌.▐▌▐█•█▌██. ██     ██▄▪▐█▐█▌.▐▌ ▐█▌·
 ▀▀▀ ▀▀▀·▀▀▀▀ ▀▀▀ ▀  ▀     ▀▀▀▀▀• ▀▀▀ ▀▀▀▀ ·▀▀▀  ▀█▄▀▪.▀  ▀▀▀▀▀▀•     ·▀▀▀▀  ▀█▄▀▪ ▀▀▀ 

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.

Description

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.

Installation

  1. Clone this repository to your local machine.
  2. Install the necessary dependencies using the command pip install -r requirements.txt.
  3. Ensure you have a .env file with the necessary environment variables, including the Discord bot token and the IDs of the Announcement and Command channels.
  4. Run the bot using the command python bot.py.

Usage

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.

image

!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).

image

!online: This command will show us the characters from our list that are online.

image

!rashid: With this command, we can see the location of NPC Rashid today (Server Save Time: 10 am).

image

Passive Functions:

dead_list(): Tracking of character deaths from our list.

image

lvl_check(): Tracking of character level ups from our list.

image

About

Discord bot for Tibia game. (Server: Mortalis of soerpg.com)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages