Since we are many to work on and the objective was to learn Upp/C++, I have made a "SmartUppBot" package contening my SmartUppBot class and a mother class named "DiscordModule".
The main idea was, everyone who would like to work on the project would have to made a new package and inherite my mother class on is package. THen I just have to create an instance of the inherited class and add it to SmartUppBot.
As you can see every "Discord_***" is a discord module inherited from mother class. Each module have is own discord command defined "!ow" ; "!rng" ; "!mc" ...
and the bot just loop modules for each message send on Discord.
This architecture work well but every time someone update is module I must recompile everything on Linux and send it to my RaspberryPi.
That's why I was wondering if it was possible to do something like this :
Is it possible to compile modules as Dll (or linux equivalent)
and Programme SmartUppBot to allowing it to "hot load" dll located on a file and use it ?
if yes. Do this system have a limit ? is it a good way to do "clean" programme ?