How to Use Age of Empires X Bot

Invite the Bot
Patreon Icon

Features:

Prefix for the Bot

In this bot, the prefix is set to be "Age of Empires X" or "\" (a backslash).

\
Copy

Examples

\aoe4
Copy
\help
Copy

(or)

@Age of Empires X
Copy

Examples

@Age of Empires Xaoe4
Copy
@Age of Empires Xhelp
Copy

*mentionable don't function when copied and pasted

Basic Commands

add

You can add your player ID to the bot's database by using this command.

*if you dont know your unique player ID, here is how to Get your player ID from www.aoe4world.com

\aoe4 add
Copy

Once you have your player ID, apply to the command like shown blow.

\aoe4 add 123456

*Replace the player ID with your own ID

remove

With this command, all of your data is deleted from the bot's records..

Copy and paste the command below; *your player ID is not required.

\aoe4 rm
Copy
How to Find Your Player ID on AOE4World.com
  1. Visit aoe4world.com.
  2. Search for your In-Game Name in the search bar.
  3. Click on your profile or the relevant search result.
  4. Your player ID will be in the URL:

Example: If the URL is https://aoe4world.com/players/1234567, your player ID is 1234567.

Replace 1234567 in the example with the actual number that appears in the URL of your profile page on aoe4world.com to locate your player ID.

Admin Commands

Only server administrators can execute any of the commands listed below.

add

To add a user, you need their Discord userid and player ID.

*How to get the userid

*Get player ID from www.aoe4world.com

\aoe4 admin add 123456 12345678

*replace the actual playerid and userid

*Note The userid is optional, if you opt for below method user will not get the roles.

(or)

You can add player ID to the bot's database by using this command.

\aoe4 admin add
Copy

Once you have your player ID, the command appears like this.

\aoe4 admin add 123456

Users can be removed using either their userid or their player ID.

removeplayer

use player ID to delete the user from database.

\aoe4 admin removeplayer
Copy
\aoe4 admin removeplayer 123456

Users can be removed using either their userid or their player ID.

removeuser

use userid to delete the user from database.

\aoe4 admin removeuser
Copy
\aoe4 admin removeuser 12345678

removeuser

Lists user from database.

\aoe4 admin list
Copy

set

This command used to set the channel id where the pre and post game summary are posted.

Go to the desired channel and execute the command

\aoe4 admin set
Copy

To change or remove the channel from the database.

leaderboard

use this command to produce leaderboard

\aoe4 admin leaderboard
Copy

*The leaderboard will update every 24 hours at 3:00 UTC. "If you wish to exclude a specific leaderboard, you may delete its corresponding message.

*Note Please attempt to utilize this feature in an empty channel to prevent the leaderboard from moving to the top.

delleaderboard

use this command to remove leaderboard data from database.

\aoe4 admin delleaderboard
Copy

createroles

use this command to roles, this will create like 19 roles

\aoe4 admin createroles
Copy

*Don't change bot role postion below any of the role created

*Don't delete any of the roles created.

The generated rank role permission can be changed to your preference, including the color scheme.

deleteroles

Execute this command to delete created role data from the database and remove all associated roles.

\aoe4 admin delleaderboard
Copy

process

This command shows the list of player ID in cache

\aoe4 admin process
Copy

clear

This command clears the cache while leaving the database unchanged. Instructions for this action are displayed in the warnings.

\aoe4 admin clear
Copy

myspawn

What Does This Feature Do?
This feature informs players about their spawn location (e.g., corner or middle) and nearby opponents' civilizations.

This command enable and disable myspawn function.

\aoe4 myspawn
Copy

Disclaimer

* A few maps are not yet added to the database, some may occasionally provide incorrect information.

How Does It Work?

Gallery

Change log

V2

V2.1- updated myspawn, Added most of maps(some may provide incorrect info because of more than one pattern).

V2.11 - updated Error handling.

V2.12 - Added random flag for Ongoing and Completed game summary. 3/12/2024

V2.2 - Added maps for Ongoing and Completed game summary. update its visuals

changes on how leaderboard works, to exclude a specific leaderboard, you may delete its corresponding message. 5/12/2024

V2.21 - Added social badges. changed MMR to rating so it provide info rather then NONE. 6/12/2024

V2.22 - updated Error handling, dm user who create annocement channel, leaderboard in case of error and stops the fuction. To active again use the command again. 10/12/2024

V2.3 - Advance game summary which update rating gain and lose of player.NOTE this only for KOFI supports this feature will continue update player rating changes for 2hrs. discard it 16/12/2024

V2.4 - DLC-Knights of Cross and Rose, Added new civ flag emoji , 10 new dlc map image + 2 free maps image .

2.5 - DLC-Dynasties of the East, Added new civ flag emoji. 8 new dlc map image.

About Me

Hi, I'm Karthik. I used to play multiplayer games, including Age of Empires IV. My journey into the world of programming began when I aimed to enhance the fun and competitive spirit between our friends. I wanted to add features like rank roles and a leaderboard to make the gaming experience more exciting.

Although I had no prior experience, my interest in creating a Discord bot drove me forward. I owe a huge thanks to the Red Bot community for their support and guidance. Additionally, I'm grateful to aoe4world for providing a public API that made this project possible.

Let's build an engaged Age of Empires IV community together!

If you enjoy my work, consider supporting on Ko-Fi.