From 8be9b7ea3aeaa1ac19a679efad44862162ba36a0 Mon Sep 17 00:00:00 2001 From: poka Date: Mon, 24 Feb 2020 02:07:45 +0100 Subject: [PATCH] Security fix --- bb_scripts/axiom.js | 3 --- bb_scripts/shell/helloasso.sh | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bb_scripts/axiom.js b/bb_scripts/axiom.js index 143466f..7c4f85a 100644 --- a/bb_scripts/axiom.js +++ b/bb_scripts/axiom.js @@ -8,7 +8,6 @@ bot.global.text({ contains: ['axiom adhérent','axiom adhérents','axiom adherent','axiom adherents'] }, (b) => { // cmd = b.message.text -// roomName = b.message.user.room.name if (b.message.user.room.type == "p") { roomName = b.message.user.room.name @@ -16,8 +15,6 @@ bot.global.text({ roomName = b.message.user.name } -// b.respond("JE SUIS LA" + adminRooms.) //kopa - // if (adminRooms.indexOf(roomName) == -1) { if (['biz-bot-admin', 'poka', 'brad.pi', '_pole_financements', '_axiom_business_plan', 'compta-axiom', 'communication', '_recrutement'].includes(roomName)) { cmd = "adherents" diff --git a/bb_scripts/shell/helloasso.sh b/bb_scripts/shell/helloasso.sh index 19a7941..9de454d 100755 --- a/bb_scripts/shell/helloasso.sh +++ b/bb_scripts/shell/helloasso.sh @@ -1,6 +1,6 @@ #!/bin/bash -ids="axiom-team:tYrjD6rrfStJXBqHhzNET" +source ~/.adm/helloasso/ids ha="https://api.helloasso.com/v3" adherents() {