structs

package
v0.0.0-...-2970e9b Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const FallbackGitURL = "https://github.com/starshine-sys/berry"

FallbackGitURL if there's no git url set in the config file fall back to this

Variables

This section is empty.

Functions

This section is empty.

Types

type BotConfig

type BotConfig struct {
	Auth struct {
		Token       string
		DatabaseURL string `json:"database_url"`
		SentryURL   string `json:"sentry_url"`
	}
	Bot struct {
		Prefixes []string

		BotOwners    []discord.UserID  `json:"bot_owners"`
		AdminServers []discord.GuildID `json:"admin_servers"`

		Support struct {
			Invite         string
			PronounChannel discord.ChannelID `json:"pronoun_channel"`
		}

		Website string
		Git     string

		// Whether to show term and server counts in the status
		ShowTermCount  bool `json:"show_term_count"`
		ShowGuildCount bool `json:"show_guild_count"`

		AllowedBots []discord.UserID `json:"allowed_bots"`

		JoinLogChannel discord.ChannelID `json:"join_log_channel"`

		TermChangelogPing string `json:"term_changelog_ping"`

		HelpFields   []discord.EmbedField `json:"help_fields"`
		CreditFields []discord.EmbedField `json:"credit_fields"`
	}

	// Fields used for sharding
	Sharded   bool `json:"-"`
	Shard     int  `json:"-"`
	NumShards int  `json:"-"`

	// UseSentry: when false, don't use Sentry for logging errors
	UseSentry bool `json:"-"`

	// Debug will print more logs
	Debug bool `json:"-"`
}

BotConfig ...

func (BotConfig) TermBaseURL

func (c BotConfig) TermBaseURL() string

TermBaseURL returns the base URL for terms

Jump to

Keyboard shortcuts

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