API Key request - Development of Discord Bot

  • Hello,

    As a dev passionnate by Ogame, i would like to develop a bot for discord for helping players to share spy & combat report on their discord.
    For now, i would like to develop it as a private usage with the guys from my ally but if it works well, why not turning it to public usage on discord

    The goal of my discord bot is to have commands to share formatted messages in a channel defined by the discord admin server. It would be something like :
    !re "api_id_of_the_spy report" => the bot would send a formatted message with the spy info in the channel
    !rc "api_id_of_the_combat_report" => the bot would send a formatted message with the combat report in the channel

    I hope i did this api key demand in the good way, if there is anything missing, dont mind to ask me and i will answer to you :)

  • RiV-

    Approved the thread.
  • Hello Totow


    For information, this kind of features already exists here: PTRE - Spy Report Sharing Tool (over Discord / OGLight / Infinity / AGR)


    Might not be the better idea to start from scratch, or focus on combat report?

    By the way, if you see some stuffs missing in PTRE, i would be pleased to add it.

  • Hello GeGe_GM,

    First of all, thanks for you answer ! And yeah i know this kind of things exist, some people talk about it to me on the Ogame FR Discord but it doesn't fit to what i'm looking for, and yes i want/need a bot able to do both combat & spy report and very easily with juste a command and a copy/paste of the API link in the discord. And more over, it's a good practice for me to work on developping some Discord Bot features

  • Thanks a lot RiV ! That's exactly what i was looking for ! Is there somewhere a documentation for knowing what are each data corresponding to ? Like for example : "building_type" : 1 i guess its the Metal Mine but for the others things, is there a documentation who details everything ?

    And can you explain me about the "full" parameters on the API ? I tried different value like 0, 1 and 5 and i didnt see any difference :/?(

  • Thanks a lot RiV ! That's exactly what i was looking for ! Is there somewhere a documentation for knowing what are each data corresponding to ? Like for example : "building_type" : 1 i guess its the Metal Mine but for the others things, is there a documentation who details everything ?

    /api/localization.xml has the IDs.


    And can you explain me about the "full" parameters on the API ? I tried different value like 0, 1 and 5 and i didnt see any difference :/?(

    Full means you get RESULT_CODE and RESULT_DATA. Setting it to 0 means you only get the RESULT_DATA object. It's explained on the page as well: "do you need the full info or only the RESULT_DATA object?"