You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
474 B
31 lines
474 B
4 years ago
|
|
||
|
/*
|
||
|
process if bot message
|
||
|
AND return true if it is, and forward to bot
|
||
|
*/
|
||
|
|
||
|
export interface Msg {
|
||
|
type: number,
|
||
|
message: {
|
||
|
content: string
|
||
|
},
|
||
|
chat: {
|
||
|
uuid: string
|
||
|
},
|
||
|
sender: {
|
||
|
pub_key: string,
|
||
|
alias: string,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// msg.message.content
|
||
|
export function isBotMsg(msg:Msg, sentByMe:boolean){
|
||
|
return false
|
||
|
|
||
|
// check if bot msg
|
||
|
// check my ChatMembers to see if its here
|
||
|
// OR check my Bots if im the maker
|
||
|
|
||
|
// process it "bot_cmd"
|
||
|
}
|