const restRoomBot = {
    availableCommands: [
        {
            name: 'help',
            description:'Shows this listing'
        },
        {
            name: 'sauna/sn on',
            description: 'Starts the sauna'
        },
        {
            name: 'sauna/sn off',
            description: 'Stops the sauna'
        },
        {
            name: 'info',
            description: 'Shows info about my current status'
        },
    ],

    name: 'Restroom',

    matcher: [
        /\Restroom,? (.+)/i,
        /\@UiRestRoomBot,? (.+)/i,
        /\R,? (.+)/i,
        /^info/,
        /^help/
    ],

    handleMessage: function(id, message) {
        if (message === 'help') {
            this.showHelp(id);
        } else if (/^sauna on/.test(message) || /^sn on/.test(message)) {
            this.handleSaunaOn(id, message)
        } else if (/^sauna off/.test(message) || /^sn off/.test(message)) {
            this.sendMessage(id, 'Ok! Turning off the sauna...')
        } else {
            this.handleUnknownCommand(id, message)
        }
    },

    handleSaunaOn: function(id, message) {
        const messageArr = message.split(" ");

        // No timer specified...
        if (messageArr.length === 2) {
            this.sendMessage(id, 'Ok! Starting the sauna now...')
        } else {
            const time = messageArr[2];

            if (false) {

            } else if (/\d+m$/.test(time)) {
                this.sendMessage(id, `Ok! Starting the sauna in ${time.slice(0, -1)} minutes...`);
            } else if (/\d+h$/.test(time)) {
                this.sendMessage(id, `Ok! Starting the sauna in ${time.slice(0, -1)} hours...`);
            } else {
                this.sendMessage(id, `Sorry! I didn't understand the time ${time}.`);
                this.sendMessage(id, 'For example, valid times (sauna on 5m) and hours (sauna on 1h).');
            }
        }
    },

    postStart: function () {
        this.bot.sendMessage(this.groupId,
            `Hi, I'm your restroom. If you need help, type 'Restroom, help'.`
        );
    },
};

export default restRoomBot;

@@ -828,32 +828,163 @@
 On(id, message)%0A
+        %7D else if (/%5Esauna temp/.test(message) %7C%7C /%5Esn temp/.test(message)) %7B%0A            this.handleSaunaTemperature(id, message)%0A
         %7D else i
@@ -1190,24 +1190,1017 @@
   %7D%0A    %7D,%0A%0A
+    handleSaunaTemperature: function(id, message) %7B%0A        const messageArr = message.split(%22 %22);%0A%0A        if (messageArr.length === 2) %7B%0A            this.sendMessage(id, 'You should specify a temperature')%0A            return;%0A        %7D%0A%0A        const temp = Math.floor(parseInt(messageArr%5B2%5D, 10));%0A%0A        if (isNaN(temp)) %7B%0A            this.sendMessage(id, %60Hmm, looks like $%7BmessageArr%5B2%5D%7D is not a temperature...%60)%0A            return;%0A        %7D%0A%0A        if (temp %3C 30) %7B%0A            this.sendMessage(id, %60$%7Btemp%7D celsius is too cold for a sauna!...%60)%0A            this.sendMessage(id, %60Maximum temperature is 120 celsius, minimum is 30%60)%0A            return;%0A        %7D%0A%0A        if (temp %3E 120) %7B%0A            this.sendMessage(id, %60Whoa! $%7Btemp%7D celsius way too hot!...%60)%0A            this.sendMessage(id, %60Maximum temperature is 120 celsius, minimum is 30 celsius.%60)%0A            return;%0A        %7D%0A%0A        this.sendMessage(id, %60Ok! Setting sauna temperature to $%7Btemp%7D celsius...%60)%0A    %7D,%0A%0A
     handleSa

Add sauna temperature handling