Security fix
This commit is contained in:
parent
1da87b7002
commit
8be9b7ea3a
|
@ -8,7 +8,6 @@ bot.global.text({
|
||||||
contains: ['axiom adhérent','axiom adhérents','axiom adherent','axiom adherents']
|
contains: ['axiom adhérent','axiom adhérents','axiom adherent','axiom adherents']
|
||||||
}, (b) => {
|
}, (b) => {
|
||||||
// cmd = b.message.text
|
// cmd = b.message.text
|
||||||
// roomName = b.message.user.room.name
|
|
||||||
|
|
||||||
if (b.message.user.room.type == "p") {
|
if (b.message.user.room.type == "p") {
|
||||||
roomName = b.message.user.room.name
|
roomName = b.message.user.room.name
|
||||||
|
@ -16,8 +15,6 @@ bot.global.text({
|
||||||
roomName = b.message.user.name
|
roomName = b.message.user.name
|
||||||
}
|
}
|
||||||
|
|
||||||
// b.respond("JE SUIS LA" + adminRooms.) //kopa
|
|
||||||
|
|
||||||
// if (adminRooms.indexOf(roomName) == -1) {
|
// if (adminRooms.indexOf(roomName) == -1) {
|
||||||
if (['biz-bot-admin', 'poka', 'brad.pi', '_pole_financements', '_axiom_business_plan', 'compta-axiom', 'communication', '_recrutement'].includes(roomName)) {
|
if (['biz-bot-admin', 'poka', 'brad.pi', '_pole_financements', '_axiom_business_plan', 'compta-axiom', 'communication', '_recrutement'].includes(roomName)) {
|
||||||
cmd = "adherents"
|
cmd = "adherents"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
ids="axiom-team:tYrjD6rrfStJXBqHhzNET"
|
source ~/.adm/helloasso/ids
|
||||||
ha="https://api.helloasso.com/v3"
|
ha="https://api.helloasso.com/v3"
|
||||||
|
|
||||||
adherents() {
|
adherents() {
|
||||||
|
|
Loading…
Reference in New Issue