Skip to content
This repository has been archived by the owner on Apr 24, 2022. It is now read-only.

fsam4/AM4-Bot

Repository files navigation


AM4 Bot

AM4 Bot was a Discord & Telegram chat bot used in 63 servers and across several Telegram chats between 2020-2022 for the game Airline Manager 4. The Discord bot was first published in 2020 with the Telegram bot following up in 2021. The bot stopped operating on Discord and Telegram 28th of January 2022 at 15:00 (UTC). The bot was used to search routes, planes, airports and player and alliance statistics, and visualize them in form of graphs. The bot used the AM4 API along with the AM4 Tools API until version 5.0.0. For graphs & charts the bot used the Chart.js based library quickchart-js. For storing data the bot used a MongoDB Atlas database. For more information on the dependecies of this bot and what libraries it used check out the package.json file.

Source code

📝 This source code is archived and no longer being maintained as of 4th of May 2022.

This source code is meant to be a part of my portfolio and be a source of information for other tool developers as well. Some of the functions and classes are documented in the code itself with comments. The source code contains both the Discord & Telegram bots. They can be found under different folders in the client folder and they are both ran from the main file in different clusters. This source code contains some changes that were never released. The latest released version was 4.8.5, this source code and it's commit history only contains versions 4.9.x and 5.0.x.

About using the source code

You can use this source code and/or parts of it as you want for your own tools, but note that there are some missing files (see gitignore). Using your own creativity and imagination is also appreciated. In addition, you would need the bot's database for the code to work just like that. This source code only contains the TypeScript files, and compiled JavaScript files are excluded from this public source code along with the jsconfig file. The tsconfig file is included, so you can compile the code yourself with the same compiler settings. AM4 Bot version 5.x uses TypeScript compiler version 4.5.2.

For more information on permissions, limitations and conditions with using this source code, please check out the license.

Unfinished features

The source code for version 4.9.x contains some new features along with minor changes. Some of these may not have been finished, debugged or released. The source code for version 5.x can contain some breaking changes on the other hand, but most of these have been debugged to some extent. If you wish to browse the source code for the final version of 4.9.x, you can do it here. Below is a list of some new features that were never released to AM4 Bot, and might not be finished or debugged:

License

This source code is licensed under the MIT License. Certain parts of the code might be under different licenses and/or copyrights. Those parts are mentioned in the code with comments.

Credits

Thank you to the AM4 Bot team and other people who supported me in developing, moderating and maintaining this bot. If you have contributed in anyway to this project and specifically want credit in here, or if you want your credit to be removed, please open a new dicussion on the Discussions page. In addition, thank you to the Air France KLM Discord server for being the home server of this bot.

AM4 Bot team

AM4 Bot team was a selected group of players for moderation, error reporting and beta testing. In addition, they have contributed by making some of the quiz games and providing information on different game mechanics.

  • AMBE#6969 aka AMBE Airlines (since winter of 2020)
  • Antony#6179 aka Prestige Wings (since summer of 2020)
  • Gulf Airways#4655 aka Gulf Airways (since summer of 2021)
  • IɴᴛᴇʀGᴀʟᴀᴄᴛɪᴄ#1010 aka InterGalactic (since autumn of 2021)
  • •_•#1381 aka Emeritas (since summer of 2021)

Discussions

⚠️ This repository is archived and opening new disussions is not possible anymore.

If you have any questions about the bot, tool developing or the source code, you can ask them in the Questions category. I will answer questions occasionally. If you just want to leave feedback, share your thoughts, share your own tools or anything else, you can start a discussion in the General category. Please stay in appropriate categories with your discussions and use appropriate language.