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.
 
 
 

30 lines
474 B

/*
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"
}