rsvp

package
v1.19.7 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2019 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EmojiJoining    = "✅"
	EmojiMaybe      = "❔"
	EmojiNotJoining = "❌"
	EmojiWaitlist   = "🕐"
)
View Source
const DBSchema = `` /* 819-byte string literal not displayed */

Variables

View Source
var UTCRegex = regexp.MustCompile(`(?i)\butc\b`)

Functions

func AddReactions

func AddReactions(channelID, messageID int64) error

func NextUpdateTime

func NextUpdateTime(m *models.RSVPSession) time.Time

func ParticipantField

func ParticipantField(state ParticipantState, participants []*models.RSVPParticipant, users []*dstate.MemberState, name string) *discordgo.MessageEmbedField

func RegisterPlugin

func RegisterPlugin()

func UpdateEventEmbed

func UpdateEventEmbed(m *models.RSVPSession) error

Types

type ParticipantState

type ParticipantState int16
const (
	ParticipantStateJoining    ParticipantState = 1
	ParticipantStateMaybe      ParticipantState = 2
	ParticipantStateNotJoining ParticipantState = 3
	ParticipantStateWaitlist   ParticipantState = 4
)

type Plugin

type Plugin struct {
	// contains filtered or unexported fields
}

func (*Plugin) AddCommands

func (p *Plugin) AddCommands()

func (*Plugin) BotInit

func (p *Plugin) BotInit()

func (*Plugin) PluginInfo

func (p *Plugin) PluginInfo() *common.PluginInfo

type SetupSession

type SetupSession struct {
	CreatedOnMessageID int64
	GuildID            int64
	AuthorID           int64
	SetupChannel       int64

	State SetupState

	MaxParticipants int
	Title           string
	Channel         int64
	When            time.Time

	LastAction time.Time
	// contains filtered or unexported fields
}

func (*SetupSession) Finish

func (s *SetupSession) Finish()

type SetupState

type SetupState int
const (
	SetupStateChannel SetupState = iota
	SetupStateTitle
	SetupStateMaxParticipants
	SetupStateWhen
	SetupStateWhenConfirm
)

type UpdatingSession

type UpdatingSession struct {
	ID      int64
	GuildID int64
	// contains filtered or unexported fields
}

Spam update protection, forces 5 seconds between each update

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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