modifications based on this issue:
https://github.com/Tillerino/Tillerinobot/issues/5

Signed-off-by: ThePooN <thepoon@cartooncraft.fr>