plugins

package
v0.0.0-...-7ce1b96 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2026 License: AGPL-3.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BorderwallModuleBorderwall = "borderwall"
	BorderwallModuleDMs        = "dms"

	BorderwallRoleTypeJoin   = "join"
	BorderwallRoleTypeVerify = "verify"
)
View Source
const (
	LeaverModuleLeaver = "leaver"
	LeaverModuleDMs    = "dms"
)
View Source
const (
	RuleModuleRules = "rules"
	RuleModuleDMs   = "dms"
)
View Source
const (
	TempChannelsModuleTempChannels = "tempchannels"
	TempChannelsModuleAutoPurge    = "autopurge"
)
View Source
const (
	WelcomerModuleAll    = "all"
	WelcomerModuleText   = "text"
	WelcomerModuleImages = "images"
	WelcomerModuleDMs    = "dms"
)
View Source
const (
	NoMembershipsAvailable = "no_memberships"
)

Variables

View Source
var (
	TotalCommonEggs    = 10
	TotalRareEggs      = 11
	TotalEpicEggs      = 8
	TotalLegendaryEggs = 4
	TotalMythicEggs    = 1

	RarityCommon    = int(math.Ceil(175000 / float64(TotalCommonEggs)))
	RarityRare      = int(math.Ceil(50000 / float64(TotalRareEggs)))
	RarityEpic      = int(math.Ceil(22500 / float64(TotalEpicEggs)))
	RarityLegendary = int(math.Ceil(2500 / float64(TotalLegendaryEggs)))
	RarityMythic    = 1
)
View Source
var EasterEggs = []EasterEgg{

	{
		ID:                "white",
		TestingEmojiID:    1488655431722205345,
		ProductionEmojiID: 1488654789549232140,
		Name:              "White",
		Description:       "A clean, classic egg that looks closest to a white chicken egg fresh from the carton.",
		Rarity:            RarityCommon,
	},
	{
		ID:                "speckled",
		TestingEmojiID:    1488655424227119204,
		ProductionEmojiID: 1488654783521882152,
		Name:              "Speckled",
		Description:       "Produced by specific chicken breeds, this egg has a charming speckled shell that adds character to its appearance.",
		Rarity:            RarityCommon,
	},
	{
		ID:                "pink",
		TestingEmojiID:    1488655421400023072,
		ProductionEmojiID: 1488654781449900214,
		Name:              "Pink",
		Description:       "Produced by Buff Orpington chickens, this egg can have a soft pink shell that adds a touch of pastel charm to any Easter collection.",
		Rarity:            RarityCommon,
	},
	{
		ID:                "green",
		TestingEmojiID:    1488655409815224420,
		ProductionEmojiID: 1488654772864286866,
		Name:              "Green",
		Description:       "Whilst not a natural color for chicken eggs, this vibrant green egg adds a fun and festive twist to the Easter lineup. Do not have this with ham.",
		Rarity:            RarityCommon,
	},
	{
		ID:                "dark_chocolate",
		TestingEmojiID:    1488655404656230552,
		ProductionEmojiID: 1488654767948566638,
		Name:              "Dark Chocolate",
		Description:       "No. This is not a chocolate egg. This is an egg hatched by Black Copper Maran chickens.",
		Rarity:            RarityCommon,
	},
	{
		ID:                "cream",
		TestingEmojiID:    1488655403406463097,
		ProductionEmojiID: 1488654766459322458,
		Name:              "Cream",
		Description:       "A soft off-white egg that most closely resembles a cream-colored chicken egg.",
		Rarity:            RarityCommon,
	},
	{
		ID:                "brown",
		TestingEmojiID:    1488655401128951858,
		ProductionEmojiID: 1488654763913379840,
		Name:              "Brown",
		Description:       "A classic brown egg, commonly found in many households and farms.",
		Rarity:            RarityCommon,
	},
	{
		ID:                "blue",
		TestingEmojiID:    1488655400055210055,
		ProductionEmojiID: 1488654762382594058,
		Name:              "Blue",
		Description:       "A rare blue egg, often laid by Araucana chickens, adding a unique touch to any collection.",
		Rarity:            RarityCommon,
	},
	{
		ID:                "quail",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016355314204933,
		Name:              "Quail",
		Description:       "A small, delicate egg laid by quails. Often used in gourmet dishes.",
		Rarity:            RarityCommon,
	},
	{
		ID:                "ostrich",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016353842266132,
		Name:              "Ostrich",
		Description:       "A massive egg laid by an ostrich. It's the largest of all bird eggs.",
		Rarity:            RarityCommon,
	},

	{
		ID:                "well_done",
		TestingEmojiID:    1488655430715707462,
		ProductionEmojiID: 1488654788592799744,
		Name:              "Well Done",
		Description:       "This egg has been cooked to perfection. Cook an egg in boiling water for 6 to 8 minutes.",
		Rarity:            RarityRare,
	},
	{
		ID:                "missing_texture",
		TestingEmojiID:    1488655417709039666,
		ProductionEmojiID: 1488654777951850516,
		Name:              "Missing Texture",
		Description:       "Did you remember to download counter strike source? At least the model is there, just the texture is missing.",
		Rarity:            RarityRare,
	},
	{
		ID:                "mini",
		TestingEmojiID:    1488655415943237632,
		ProductionEmojiID: 1488654776551084143,
		Name:              "Mini",
		Description:       "Mini eggs are small, bite-sized confections that are often coated in a colourful candy shell.",
		Rarity:            RarityRare,
	},
	{
		ID:                "minecraft",
		TestingEmojiID:    1488655412503904277,
		ProductionEmojiID: 1488654775275880559,
		Name:              "Minecraft",
		Description:       "The chicken that laid this one looked a little different from the rest. It was a cube, and the egg it laid was a cube too.",
		Rarity:            RarityRare,
	},
	{
		ID:                "instagram",
		TestingEmojiID:    1488655411304464434,
		ProductionEmojiID: 1488654773891764236,
		Name:              "Instagram",
		Description:       "https://en.wikipedia.org/wiki/Instagram_egg",
		Rarity:            RarityRare,
	},
	{
		ID:                "golden",
		TestingEmojiID:    1488655408628371588,
		ProductionEmojiID: 1488654771404542004,
		Name:              "Golden",
		Description:       "我值得拥有财富,金钱不断流向我,我的生活充满富足与繁荣。",
		Rarity:            RarityRare,
	},
	{
		ID:                "wooden",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016361416917163,
		Name:              "Wooden",
		Description:       "A wooden egg, carved from a single piece of wood. It may give you splinters and it is very throwable.",
		Rarity:            RarityRare,
	},
	{
		ID:                "rgb",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016356526620672,
		Name:              "RGB",
		Description:       "I used some RGB lights to make this egg. The egg is a lie.",
		Rarity:            RarityRare,
	},
	{
		ID:                "jelly",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016351493197854,
		Name:              "Jelly",
		Description:       "Lime flavoured. Do not drop it, it will make a mess.",
		Rarity:            RarityRare,
	},
	{
		ID:                "wireframe",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016360133595306,
		Name:              "Wireframe",
		Description:       "I'm not very good at 3D modelling. The tris on this one could be made better, but it is still an egg.",
		Rarity:            RarityRare,
	},
	{
		ID:                "blueprint",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016349073215620,
		Name:              "Blueprint",
		Description:       "We are currently designing the next generation of eggs. This is a sneak peak into the future of protein-based lifeforms.",
		Rarity:            RarityRare,
	},

	{
		ID:                "welcoming",
		TestingEmojiID:    1488655429650354266,
		ProductionEmojiID: 1488654787430846524,
		Name:              "Welcoming",
		Description:       "I recognise this egg! It is here to welcome new members to the server, and to give them a warm, eggy hug on their first day. It is a symbol of hospitality and friendliness.",
		Rarity:            RarityEpic,
	},
	{
		ID:                "suspicious",
		TestingEmojiID:    1488655425631944744,
		ProductionEmojiID: 1488654784624984134,
		Name:              "Suspicious",
		Description:       "This egg seems a bit sus. I cannot tell if it is safe to eat.",
		Rarity:            RarityEpic,
	},
	{
		ID:                "onyx",
		TestingEmojiID:    1488655420472950844,
		ProductionEmojiID: 1488654780573417492,
		Name:              "Onyx",
		Description:       "A sleek, shadowy egg with polished-stone vibes and a suspiciously dramatic aura.",
		Rarity:            RarityEpic,
	},
	{
		ID:                "discord",
		TestingEmojiID:    1488655406141014046,
		ProductionEmojiID: 1488654769198203040,
		Name:              "Discord",
		Description:       "I'm not sure what laid this egg, or what is inside it.",
		Rarity:            RarityEpic,
	},
	{
		ID:                "cracked",
		TestingEmojiID:    1488655402194436278,
		ProductionEmojiID: 1488654765117280506,
		Name:              "Cracked",
		Description:       "This egg has been through a lot, but it is still whole and beautiful.",
		Rarity:            RarityEpic,
	},
	{
		ID:                "blurry",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016350209871883,
		Name:              "Blurry",
		Description:       "I'm not sure if my eyes are just bad or if I need to focus more.",
		Rarity:            RarityEpic,
	},
	{
		ID:                "stickers",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016358879494255,
		Name:              "Stickered",
		Description:       "I have covered this egg in stickers of gudetama. It is very cute, but I would not advise eating it.",
		Rarity:            RarityEpic,
	},
	{
		ID:                "loading",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016352655151305,
		Name:              "Loading",
		Description:       "Usually eggs load whilst in the chicken, but this one seems to be taking a while.",
		Rarity:            RarityEpic,
	},

	{
		ID:                "thonking",
		TestingEmojiID:    1488655428697985125,
		ProductionEmojiID: 1488654786109640814,
		Name:              "Thonking",
		Description:       "This egg is deep in thought. I am not sure how that makes sense, but it is a very thonk-worthy egg.",
		Rarity:            RarityLegendary,
	},
	{
		ID:                "rock_shaped",
		TestingEmojiID:    1488655422456987648,
		ProductionEmojiID: 1488654782473437295,
		Name:              "Rock Shaped",
		Description:       "Ok this is definitely not an egg. This is just a rock that looks like an egg. It is very hard and not edible at all.",
		Rarity:            RarityLegendary,
	},
	{
		ID:                "galaxy",
		TestingEmojiID:    1488655407512817775,
		ProductionEmojiID: 1488654770196578434,
		Name:              "Galaxy",
		Description:       "Space? Stars? Planets? This egg has it all. It is a miniature universe in egg form.",
		Rarity:            RarityLegendary,
	},
	{
		ID:                "shadow",
		TestingEmojiID:    0,
		ProductionEmojiID: 1489016357696704724,
		Name:              "Shadow",
		Description:       "Nobody is sure where this egg came from. Those close to it feel like they are being sucked into it, however it is still an egg.",
		Rarity:            RarityLegendary,
	},

	{
		ID:                "mystery",
		TestingEmojiID:    1488655419290423357,
		ProductionEmojiID: 1488654779222589522,
		Name:              "Mystery",
		Description:       "Nobody is entirely sure what is inside this egg, and that is exactly how it likes it.",
		Rarity:            RarityMythic,
	},
}
View Source
var IsEasterEnabled = os.Getenv("EASTER_EGG_ENABLED") == "true"

Functions

This section is empty.

Types

type AutoRolesCog

type AutoRolesCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewAutoRolesCog

func NewAutoRolesCog() *AutoRolesCog

func (*AutoRolesCog) CogInfo

func (r *AutoRolesCog) CogInfo() *subway.CogInfo

func (*AutoRolesCog) GetInteractionCommandable

func (r *AutoRolesCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*AutoRolesCog) RegisterCog

func (r *AutoRolesCog) RegisterCog(sub *subway.Subway) error

type BorderwallCog

type BorderwallCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewBorderwallCog

func NewBorderwallCog() *BorderwallCog

func (*BorderwallCog) CogInfo

func (b *BorderwallCog) CogInfo() *subway.CogInfo

func (*BorderwallCog) GetInteractionCommandable

func (b *BorderwallCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*BorderwallCog) RegisterCog

func (b *BorderwallCog) RegisterCog(sub *subway.Subway) error

type DebugCog

type DebugCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewDebugCog

func NewDebugCog() *DebugCog

func (*DebugCog) CogInfo

func (cog *DebugCog) CogInfo() *subway.CogInfo

func (*DebugCog) GetInteractionCommandable

func (cog *DebugCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*DebugCog) RegisterCog

func (cog *DebugCog) RegisterCog(sub *subway.Subway) error

type EasterCog

type EasterCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewEasterCog

func NewEasterCog() *EasterCog

func (*EasterCog) CogInfo

func (e *EasterCog) CogInfo() *subway.CogInfo

func (*EasterCog) GetInteractionCommandable

func (e *EasterCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*EasterCog) RegisterCog

func (e *EasterCog) RegisterCog(sub *subway.Subway) error

type EasterEgg

type EasterEgg struct {
	ID                string
	TestingEmojiID    discord.Snowflake
	ProductionEmojiID discord.Snowflake

	Name        string
	Description string
	Rarity      int
}

type FreeRolesCog

type FreeRolesCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewFreeRolesCog

func NewFreeRolesCog() *FreeRolesCog

func (*FreeRolesCog) CogInfo

func (r *FreeRolesCog) CogInfo() *subway.CogInfo

func (*FreeRolesCog) GetInteractionCommandable

func (r *FreeRolesCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*FreeRolesCog) RegisterCog

func (r *FreeRolesCog) RegisterCog(sub *subway.Subway) error

type GiveawaysCog

type GiveawaysCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewGiveawaysCog

func NewGiveawaysCog() *GiveawaysCog

func (*GiveawaysCog) CogInfo

func (cog *GiveawaysCog) CogInfo() *subway.CogInfo

func (*GiveawaysCog) GetInteractionCommandable

func (cog *GiveawaysCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*GiveawaysCog) RegisterCog

func (cog *GiveawaysCog) RegisterCog(sub *subway.Subway) error

type InviteLeaderboardEntry

type InviteLeaderboardEntry struct {
	InviterID discord.Snowflake
	Uses      int
}

type LeaverCog

type LeaverCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewLeaverCog

func NewLeaverCog() *LeaverCog

func (*LeaverCog) CogInfo

func (w *LeaverCog) CogInfo() *subway.CogInfo

func (*LeaverCog) GetInteractionCommandable

func (w *LeaverCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*LeaverCog) RegisterCog

func (w *LeaverCog) RegisterCog(sub *subway.Subway) error

type MembershipCog

type MembershipCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewMembershipCog

func NewMembershipCog() *MembershipCog

func (*MembershipCog) CogInfo

func (p *MembershipCog) CogInfo() *subway.CogInfo

func (*MembershipCog) GetInteractionCommandable

func (p *MembershipCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*MembershipCog) RegisterCog

func (p *MembershipCog) RegisterCog(sub *subway.Subway) error

type MiscellaneousCog

type MiscellaneousCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewMiscellaneousCog

func NewMiscellaneousCog() *MiscellaneousCog

func (*MiscellaneousCog) CogInfo

func (m *MiscellaneousCog) CogInfo() *subway.CogInfo

func (*MiscellaneousCog) GetInteractionCommandable

func (m *MiscellaneousCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*MiscellaneousCog) RegisterCog

func (m *MiscellaneousCog) RegisterCog(sub *subway.Subway) error

type PrideCog

type PrideCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewPrideCog

func NewPrideCog() *PrideCog

func (*PrideCog) CogInfo

func (p *PrideCog) CogInfo() *subway.CogInfo

func (*PrideCog) GetInteractionCommandable

func (p *PrideCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*PrideCog) RegisterCog

func (p *PrideCog) RegisterCog(sub *subway.Subway) error

type ReactionRolesCog

type ReactionRolesCog struct{}

func NewReactionRolesCog

func NewReactionRolesCog() *ReactionRolesCog

func (*ReactionRolesCog) CogInfo

func (c *ReactionRolesCog) CogInfo() *subway.CogInfo

func (*ReactionRolesCog) RegisterCog

func (r *ReactionRolesCog) RegisterCog(sub *subway.Subway) error

type RulesCog

type RulesCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewRulesCog

func NewRulesCog() *RulesCog

func (*RulesCog) CogInfo

func (r *RulesCog) CogInfo() *subway.CogInfo

func (*RulesCog) GetInteractionCommandable

func (r *RulesCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*RulesCog) RegisterCog

func (r *RulesCog) RegisterCog(sub *subway.Subway) error

type TempChannelsCog

type TempChannelsCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewTempChannelsCog

func NewTempChannelsCog() *TempChannelsCog

func (*TempChannelsCog) CogInfo

func (w *TempChannelsCog) CogInfo() *subway.CogInfo

func (*TempChannelsCog) GetInteractionCommandable

func (w *TempChannelsCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*TempChannelsCog) RegisterCog

func (w *TempChannelsCog) RegisterCog(sub *subway.Subway) error

type TimeRolesCog

type TimeRolesCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewTimeRolesCog

func NewTimeRolesCog() *TimeRolesCog

func (*TimeRolesCog) CogInfo

func (r *TimeRolesCog) CogInfo() *subway.CogInfo

func (*TimeRolesCog) GetInteractionCommandable

func (r *TimeRolesCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*TimeRolesCog) RegisterCog

func (r *TimeRolesCog) RegisterCog(sub *subway.Subway) error

type UserMembership

type UserMembership struct {
	MembershipUUID   uuid.UUID
	GuildID          int64
	GuildName        string
	ExpiresAt        time.Time
	MembershipStatus database.MembershipStatus
	MembershipType   database.MembershipType
}

type WelcomerCog

type WelcomerCog struct {
	InteractionCommands *subway.InteractionCommandable
}

func NewWelcomerCog

func NewWelcomerCog() *WelcomerCog

func (*WelcomerCog) CogInfo

func (w *WelcomerCog) CogInfo() *subway.CogInfo

func (*WelcomerCog) GetInteractionCommandable

func (w *WelcomerCog) GetInteractionCommandable() *subway.InteractionCommandable

func (*WelcomerCog) RegisterCog

func (w *WelcomerCog) RegisterCog(sub *subway.Subway) error

Jump to

Keyboard shortcuts

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