discord

package
v3.2.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Users []UserList

Users is a slice of UserList.

Functions

func AddMentions

func AddMentions(message string) string

func CacheDiscordMembers

func CacheDiscordMembers(s *discordgo.Session)

CacheDiscordMembers caches the users list to be searched.

func CacheUpdater

func CacheUpdater(session *discordgo.Session)

func Close

func Close()

func Init

func Init()

func ProcessFactorioLogLine

func ProcessFactorioLogLine(line string)

ProcessFactorioLogLine pipes in-game chat to Discord.

func SearchForUser

func SearchForUser(name string) *discordgo.User

SearchForUser searches for the user to be mentioned.

func StartSession

func StartSession()

Types

type UserList

type UserList struct {
	UserID string
	Nick   string
	User   *discordgo.User
}

UserList is a struct for member info.

Jump to

Keyboard shortcuts

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