Toggle navigation
Toggle navigation
This project
Loading...
Sign in
김민욱
/
Slack Jokebot
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Issues
1
Network
Create a new issue
Commits
Issue Boards
Authored by
오원석
2019-06-05 14:17:18 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a1c0db4b6ded0f16fdb5d76c660742db06b39983
a1c0db4b
1 parent
4dcc9f79
r.userjoke
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
Routers/route.js
Routers/route.js
View file @
a1c0db4
...
...
@@ -227,9 +227,12 @@ UserMakeJoke= (user_channel)=>{
if
(
jsondata
.
table
[
i
].
id
==
random
){
user
=
jsondata
.
table
[
i
];
question
=
user
.
setup
;
bot
.
postMessageToChannel
(
user_channel
,
question
,
emoji
.
emojis
(
'laughing'
));
joke
=
user
.
punchline
;
result
=
question
+
'\n'
+
joke
;
bot
.
postMessageToChannel
(
user_channel
,
result
,
emoji
.
emojis
(
'laughing'
));
// result=question+'\n'+joke;
setTimeout
(
function
secondfunction
(){
bot
.
postMessageToChannel
(
user_channel
,
joke
,
emoji
.
emojis
(
'laughing'
));
},
3000
);
console
.
log
(
"User joke~~~"
);
break
;
}
...
...
Please
register
or
login
to post a comment