chat

package
v0.0.0-...-aecff93 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 3, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Broadcast

func Broadcast(msg string, cmt mt.ChatMsgType)

func BroadcastMsg

func BroadcastMsg(sender, text string)

func Broadcastf

func Broadcastf(cmt mt.ChatMsgType, format string, a ...any)

func ChatCmds

func ChatCmds() []string

func HandleCmd

func HandleCmd(c *minetest.Client, msg string)

func Log

func Log(str string)

Log loggs like its a chat msg

func RegisterChatCmd

func RegisterChatCmd(name string, f func(c *minetest.Client, args []string))

func SendMsg

func SendMsg(c *minetest.Client, msg string, cmt mt.ChatMsgType)

func SendMsgf

func SendMsgf(c *minetest.Client, cmt mt.ChatMsgType, format string, a ...any)

func SetPrefix

func SetPrefix(str string)

sets the command prefix so `str` will be "/" if not set

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL