Documentation ¶
Index ¶
- Variables
- func HitListBuilder(invs []data.Inventory, s *discordgo.Session) *discordgo.MessageEmbed
- func UpdateHitlistMesage(ctx ken.Context, invs []data.Inventory, h *data.Hitlist) (err error)
- type ActionFunnel
- func (*ActionFunnel) Description() string
- func (a *ActionFunnel) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
- func (*ActionFunnel) Name() string
- func (*ActionFunnel) Options() []*discordgo.ApplicationCommandOption
- func (af *ActionFunnel) Run(ctx ken.Context) (err error)
- func (*ActionFunnel) Version() string
- type Alliance
- func (*Alliance) Description() string
- func (a *Alliance) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
- func (*Alliance) Name() string
- func (*Alliance) Options() []*discordgo.ApplicationCommandOption
- func (a *Alliance) Run(ctx ken.Context) (err error)
- func (*Alliance) Version() string
- type Buy
- type Insult
- type Kill
- type List
- type Ping
- type Revive
- type RoleGet
- type Setup
- type Vote
Constants ¶
This section is empty.
Variables ¶
var ( DummyGoodRoles = []string{"Agent", "Analyst", "Biker", "Cerberus", "Detective", "Fisherman", "Gunman", "Hero", "Hydra", "Judge", "Major", "Mecha", "Medium", "Nurse", "Seraph", "Terminal", "Time Traveler", "Undercover", "Wizard", "Yeti"} DummyNeutralRoles = []string{"Amalgamation", "Backstabber", "Banker", "Bomber", "Cheater", "Cyborg", "Empress", "Ghost", "Goliath", "Journalist", "Magician", "Masochist", "Mercenary", "Mimic", "Pathologist", "Salesman", "Siren", "Tinkerer", "Villager", "Wanderer"} DummyEvilRoles = []string{"Anarchist", "Arsonist", "Bartender", "Consort", "Director", "Doll", "Forsaken Angel", "Gatekeeper", "Hacker", "Highwayman", "Hunter", "Imp", "Jester", "Juggernaut", "Overlord", "Phantom", "Psychotherapist", "Slaughterer", "Threatener", "Witchdoctor"} GameEvents = []string{ "Care Package - Game Start - Each player starts off with a care package which contains 1 item and 1 Any Ability.", "Daily Bonuses - Every Day - Gain 300 coins every day, other than the first.", "Item Rain - Every Third Day - Everyone gains 1-3 random items (luck affects your odds).", "Power Drop - Day After Item Rain - Everyone gains 1 random Any Ability.", "Rock Paper Scissors Tournament - Day 5 Event - Everyone plays rock, paper, scissors. Winner gets a special prize.", "Money Heaven - Day 7 and Day 13 Event - All of the coins you earn are doubled today.", "Valentine's Day - Day 8 Event - Send a valentine and an anonymous message costing 50 coins to someone. You cannot receive valentines if you don't send one. Cannot send to yourself.", "Duels - Day 11 & 14 Event - Choose to challenge someone to a duel. Life is at stake.", "Ultimate Exchange - Five Player Event - Whoever is holding the Lucky Coin may convert it into 1500 coins.", "Double Elimination - Random Event - There will be two Elimination Phases today.", } )
TODO: Slap these in the database once game is close to starting and roles are finalized
Functions ¶
func HitListBuilder ¶
Types ¶
type ActionFunnel ¶
type ActionFunnel struct {
// contains filtered or unexported fields
}
func (*ActionFunnel) Description ¶
func (*ActionFunnel) Description() string
Description implements ken.SlashCommand.
func (*ActionFunnel) Initialize ¶
func (a *ActionFunnel) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
func (*ActionFunnel) Options ¶
func (*ActionFunnel) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
func (*ActionFunnel) Run ¶
func (af *ActionFunnel) Run(ctx ken.Context) (err error)
Run implements ken.SlashCommand.
func (*ActionFunnel) Version ¶
func (*ActionFunnel) Version() string
Version implements ken.SlashCommand.
type Alliance ¶
type Alliance struct {
// contains filtered or unexported fields
}
func (*Alliance) Description ¶
Description implements ken.SlashCommand.
func (*Alliance) Initialize ¶
func (a *Alliance) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
func (*Alliance) Options ¶
func (*Alliance) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
type Buy ¶
type Buy struct {
// contains filtered or unexported fields
}
func (*Buy) Initialize ¶
func (b *Buy) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
func (*Buy) Options ¶
func (*Buy) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
type Insult ¶
type Insult struct {
// contains filtered or unexported fields
}
func (*Insult) Description ¶
Description implements ken.SlashCommand.
func (*Insult) Initialize ¶
func (i *Insult) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
func (*Insult) Options ¶
func (*Insult) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
type Kill ¶
type Kill struct {
// contains filtered or unexported fields
}
func (*Kill) Description ¶
Description implements ken.SlashCommand.
func (*Kill) Initialize ¶
func (k *Kill) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
func (*Kill) Options ¶
func (*Kill) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
type List ¶
type List struct {
// contains filtered or unexported fields
}
func (*List) Description ¶
Description implements ken.SlashCommand.
func (*List) Initialize ¶
func (l *List) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
func (*List) Options ¶
func (*List) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
type Ping ¶
type Ping struct {
// contains filtered or unexported fields
}
func (*Ping) Description ¶
Description implements ken.SlashCommand.
func (*Ping) Initialize ¶
func (p *Ping) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
func (*Ping) Options ¶
func (*Ping) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
type Revive ¶
type Revive struct {
// contains filtered or unexported fields
}
func (*Revive) Description ¶
Description implements ken.SlashCommand.
func (*Revive) Initialize ¶
func (r *Revive) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
func (*Revive) Options ¶
func (*Revive) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
type RoleGet ¶
type RoleGet struct {
// contains filtered or unexported fields
}
func (*RoleGet) Description ¶
Description implements ken.SlashCommand.
func (*RoleGet) Options ¶
func (*RoleGet) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
type Setup ¶
type Setup struct {
// contains filtered or unexported fields
}
func (*Setup) Description ¶
Description implements ken.SlashCommand.
func (*Setup) Initialize ¶
func (s *Setup) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
func (*Setup) Options ¶
func (*Setup) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.
type Vote ¶
type Vote struct {
// contains filtered or unexported fields
}
func (*Vote) Description ¶
Description implements ken.SlashCommand.
func (*Vote) Initialize ¶
func (v *Vote) Initialize(models data.Models, scheduler *scheduler.BetrayalScheduler)
Initialize implements main.BetrayalCommand.
func (*Vote) Options ¶
func (*Vote) Options() []*discordgo.ApplicationCommandOption
Options implements ken.SlashCommand.