TUI Group.

Code Explanation
Alright gang, time for a little backstory. I am _justParrot, your Technical Officer and Secretary at TUI PTFS Airlines. I help with yall guy’s systems, i.e. making sure the bot works perfectly, and any features you request would be added, after approval of my team. Since well, this is a bit of a blog, let me tell yall how my bot works and some of it’s internal functions.
. // heres the root folder
├── assets
| // bunch of stuff like pngs, gifs, and files to read
├── commands
| | // the commands the bot uses
│ ├── careers
│ │ └── careers.js
│ ├── management
│ │ ├── reset-cooldown.js
│ │ ├── sub-support.js
│ │ └── support.js
│ ├── moderation
│ │ └── strike.js
│ └── utility
│ └── ping.js
├── data
| // database (stores stuff like your applications)
├── deploy-commands.js
├── events
| | // bot does these on triggers, like a first boot (ready.js)
│ ├── interactionCreate.js
│ ├── messageCreate.js
│ └── ready.js
├── index.js
├── lib
│ ├── applications.js
│ ├── messages.js
│ ├── questions.js
│ └── store.js
└── package.json
Everything of the TUI Utilities bot lives in a folder, so the project doesnt get lost. It is called the root directory, any project starts with one, even the smallest projects. Afterwards, there are a lot of sub-folders, that all organise different files that all have a purpose.
Lets start with assets/. This folder holds all of the images and media that are ever used in the bot. The logo, banners for embeds, sounds for different features, like a music player which would be cool to add! Next of all is the commands/ directory. It is, (i would say), the most important folder in the bot. It handles your day-to-day interactions, like applying to jobs (#careers), reaching out to our support team, or just checking wether the bot works (very generic i know). It also is an auto-implement directory! Whenever i add a new file, for example: commands/say-hi.js, a file that replies “Hi” when you run the command; the command will automatically register, although i still have to program its functionality (it doesnt come to me by magic).
Next up, we have data/, which is responsible for user data, so basically everyone that interacts with the bot. It stores user transcripts, their applications, and a bit more like just the usernames for caching. deploy-commands.js is just so I can release features onto the bot fast, without anyone having to wait (for up to a day!). events/ holds the main event files. An event, by definition is something that happens by trigger or when someone activates a certain mechanism in a system. This is exactly that! When i start the bot, ready.js comes through, registering commands and checking for any errors, in which case it just stops the bot and gives me a crash log. interactionCreate.js is for any interaction; an action, a command, button, modal, or anything else, that a user requests, goes through this file. lib/ is to store information that would make other files a lot larger, in a seperate folder.
Well, enough about nerd-talk, lets focus on something a bit different.
Leadership Status
Some may know me as a technical officer, some may know me as a jerk, and some may know me as a secretary. There are a lot of ways people call and think of me, but quite frankly, I never think much of it. I work in a stable environment, and help people the best I can when it comes to tickets, or any inquiries that I get through DMs, or pings!
Welp, there you go. My code, some explanation, a bit about myself, and yeah I managed to keep it a 5 minute read! Alrighty, see you guys on the server!
Dicover your smile.