@@ -107,7 +107,7 @@ function handleMessage(message, current_channel){
Funnystory(current_channel);
}
elseif(message.includes(' userjoke')){
UserMakeJoke(current_channel);
UserMakeJoke(message,current_channel);
}
elseif(message.includes(' me')){
comment="Please use @joker --help to know what I can do!:smile::smile::smile:\n You can write type of joke[knock-knock, general, programming, funny story, reddit]";
...
...
@@ -126,22 +126,27 @@ function handleMessage(message, current_channel){
{"table":[{"id":1,"type":"userjoke","setup":" one plus one equals? ","punchline":" window!"},{"id":2,"type":"userjoke","setup":" what 6 x 3 ? ","punchline":" 63 building!"},{"id":3,"type":"userjoke","setup":" what 2 x 9 ?","punchline":" iquana!"},{"id":4,"type":"userjoke","setup":" where are you?","punchline":" your heart"},{"id":5,"type":"userjoke","setup":" jogutae ","punchline":" babo"}]}