Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/samualtnorman/hackmud-chat. this is just another hackmud chat api for node, this time written in ty
Something went wrong. Try again.
12345678import api from "./api"
/** Send a message to a channel */export const sendMessage = (chatToken: string, from: string, channel: string, message: string): Promise<{ ok: true }> => api(`create_chat`, { chat_token: chatToken, username: from, channel, msg: message })
export default sendMessage