nick

package
v0.0.0-...-bb841d2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Admin = admin{}
View Source
var AdminDelete = adminDelete{}
View Source
var AdminSet = adminSet{}
View Source
var AdminShow = adminShow{}
View Source
var Advanced = advanced{}
View Source
var AdvancedDelete = advancedDelete{}
View Source
var AdvancedSet = advancedSet{}
View Source
var AdvancedShow = advancedShow{}
View Source
var Normal = normal{}
View Source
var (
	UrrNickExists = core.UrrNew("Nickname is already in use either by you or someone else.")
)

Functions

func Delete

func Delete(person, place int64) error

Delete sets the person's nickname in the specified place to nil.

func ParsePerson

func ParsePerson(m *core.Message, place int64, s string) (int64, error)

ParsePerson tries to find a person from the given string. If "me" is passed, the author is returned, otherwise tries to match a nickname, and if it fails, it tries various frontend-specific extraction methods (e.g., checking if the string is a mention of some sort, etc.)

func ParsePersonHere

func ParsePersonHere(m *core.Message, s string) (int64, error)

ParsePersonHere is the same as ParsePerson but place = here.

func Set

func Set(nick string, person, place int64) (core.Urr, error)

Set sets the person's nickname in the specified place. If the nickname is already in use in the place returns UrrNickExists.

func Show

func Show(person, place int64) (string, core.Urr, error)

Show returns the person's nickname in the specified place. If the nickname is nil returns core.UrrValNil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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