Commit 73013ce3 authored by Aleix Quintana Alsius's avatar Aleix Quintana Alsius

Remove debugger lines

parent 14d04021
......@@ -358,10 +358,8 @@ async function handleMessage (event){
return;
}
// Custom command runner
debugger
if ( event.getContent().body.startsWith('!') || event.getContent().body.match(/(^\s*(!\S)+)|(\\n(\s)*(!\S)+)/m) ){
const lookup_command = event.getContent().body.match(/(^\s*(!\S)+)|(\\n(\s)*(!\S)+)/m)[2]||event.getContent().body.match(/(^\s*(!\S)+)|(\\n(\s)*(!\S)+)/m)[5];
debugger
webhookCommandStore.commandLookup(event.getRoomId(),lookup_command).then((custom_command)=>{
if (custom_command) {
logger.debug(lookup_command + " is in commandStore let's run it.");
......@@ -374,7 +372,6 @@ async function handleMessage (event){
sendNotice(event.getRoomId(), "Could not parse the answer from external web. Invalid content-type");
return;
}
debugger
// We are looking for data.text to be sent to the room and for the existance of custom_command.token ...
// A little silly but someday will be better... TODO
if ((response.headers['authorization']|| "").substring(7) != custom_command.token){
......
......@@ -34,7 +34,8 @@ class HttpClient {
context: context
}
const response = await axios.post(url, body, config);
logger.debug("Http client request worked!")
logger.debug("Http client request worked!:")
logger.debug(body);
return await response;
} catch (error) {
logger.error(error);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment