Documentation ¶
Index ¶
- Variables
- func ConnectDB(mongoURI string, dbName string) error
- func CreateWelcomeImage(s *discordgo.Session, user *discordgo.User, guildID string)
- func GetWelcomeChannel(guildID string) (string, error)
- func GetWelcomeMessage(guildID string) (string, error)
- func RemoveCountingGame(guildID string) error
- func RemoveInfiniteStoryChannel(guildID string) error
- func RemoveWelcomeChannel(guildID string) error
- func RemoveWelcomeMessage(guildID string) error
- func SetCountingGame(guildID, channelID string, lastNumber int) error
- func SetInfiniteStoryChannel(guildID, messageChannelID, summaryChannelID, summary, messageID string) error
- func SetStatus(s *discordgo.Session) error
- func SetWelcomeChannel(guildID, channelID string) error
- func SetWelcomeMessage(guildID, message string) error
- type BotStatus
- type CountingGame
- type InfiniteStoryChannel
- type WelcomeChannel
Constants ¶
This section is empty.
Variables ¶
View Source
var Client *mongo.Client
View Source
var DatabaseName string
View Source
var DefaultStatus = BotStatus{
Status: "online",
}
Functions ¶
func CreateWelcomeImage ¶
func GetWelcomeChannel ¶
func GetWelcomeMessage ¶
func RemoveCountingGame ¶
func RemoveWelcomeChannel ¶
func RemoveWelcomeMessage ¶
func SetCountingGame ¶
func SetInfiniteStoryChannel ¶
func SetWelcomeChannel ¶
func SetWelcomeMessage ¶
Types ¶
type CountingGame ¶
type CountingGame struct { GuildID string `bson:"guild_id"` ChannelID string `bson:"channel_id"` LastNumber int `bson:"last_number"` }
func GetCountingGame ¶
func GetCountingGame(guildID string) (CountingGame, error)
type InfiniteStoryChannel ¶
type InfiniteStoryChannel struct { GuildID string `bson:"guild_id"` MessageChannelID string `bson:"message_channel_id"` SummaryChannelID string `bson:"summary_channel_id"` Summary string `bson:"summary"` MessageID string `bson:"message_id"` }
func GetInfiniteStoryChannel ¶
func GetInfiniteStoryChannel(guildID string) (InfiniteStoryChannel, error)
type WelcomeChannel ¶
Click to show internal directories.
Click to hide internal directories.