Security fix

This commit is contained in:
poka 2020-02-24 02:07:45 +01:00
parent 1da87b7002
commit 8be9b7ea3a
2 changed files with 1 additions and 4 deletions

View File

@ -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"

View File

@ -1,6 +1,6 @@
#!/bin/bash
ids="axiom-team:tYrjD6rrfStJXBqHhzNET"
source ~/.adm/helloasso/ids
ha="https://api.helloasso.com/v3"
adherents() {