-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlib.add.php
82 lines (68 loc) · 1.34 KB
/
lib.add.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<?php
/**
* auto_reply
*
* @author Jang Joonho <jhjang1005@naver.com>
* @copyright 2016 Jang Joonho
* @license GPLv3
*/
/**
* Execute before send message.
*
* @param mixed $data received data
*/
function pre_message_receive($data)
{
}
/**
* Execute after send message.
*
* @param mixed $data received data
*/
function post_message_receive($data)
{
}
/**
* Add friend by user key.
*
* @param string $user_key user key
*/
function add_friend($user_key)
{
}
/**
* Delete friend by user key.
*
* @param string $user_key user key
*/
function delete_friend($user_key)
{
}
/**
* Delete chat room by user key.
*
* @param string $user_key user key
*/
function delete_chat_room($user_key)
{
}
/**
* Show message when media upload.
*/
function msg_media_upload()
{
include_once __DIR__ . '/class/Keyboard.php';
include_once __DIR__ . '/class/Message.php';
echo new \kakao\Msg(new \kakao\Msg\Message("업로드 완료."), TRUE);
}
/**
* Show message when undefined message called.
*
* @param string $content message
*/
function undefined_msg_operation($content)
{
include_once __DIR__ . '/class/Keyboard.php';
include_once __DIR__ . '/class/Message.php';
echo new \kakao\Msg(new \kakao\Msg\Message("급식봇이 못 알아듣는 언어입니다 ㅡ.ㅡ [{$content}].\n다른 말을 사용해주세요."), TRUE);
}