Documentation ¶
Index ¶
Constants ¶
View Source
const ( DiscordEpoch = 1420070400000 GuildID = "813498656992002069" RulesID = "813498656992002071" ModmailLogID = "813724684662472725" ModmailCatID = "813724683803164714" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BibleVerse ¶
type BibleVerse struct { ID int64 `db:"id"` Version string `db:"_version"` Abbreviation string `db:"abbreviation"` Book string `db:"book"` Chapter int `db:"chapter"` VerseNumber int `db:"verse_number"` Text string `db:"_text"` }
func (*BibleVerse) Embed ¶
func (bv *BibleVerse) Embed() *discordgo.MessageEmbed
type BibleVerseService ¶
type BibleVerseService interface { GetBibleVerse(version, book string, chapter, verse int) (*BibleVerse, error) GetBibleVerses(version, book string, chapter, start, end int) ([]BibleVerse, error) }
type Bot ¶
type Bot struct { *shrouter.Router UserService MemberService RankService BibleVerseService }
func NewBot ¶
func NewBot(token string, us UserService, ms MemberService, rs RankService, bs BibleVerseService) *Bot
type Guild ¶
type Guild struct { ID string `db:"id"` ModRoleID string `db:"modrole_id"` ModMailCatID string `db:"modmail_cat_id"` ModMailLogID string `db:"modmail_log_id"` ModLogID string `db:"modlog_id"` ServerLogID string `db:"server_log_id"` VoiceLogID string `db:"voice_log_id"` MemberLogID string `db:"member_log_id"` JoinLogID string `db:"join_log_id"` LevelMsg bool `db:"level_msg"` RankMsg bool `db:"rank_msg"` MsgXP int `db:"msg_xp"` BannedWords []string `db:"banned_words"` }
type GuildService ¶
type Member ¶
type MemberService ¶
type ModMailEntry ¶
type ModMailEntryService ¶
type ModMailEntryService interface { AddModMailEntry(ModMailEntry) (int64, error) GetModMailEntry(int64) (*ModMailEntry, error) GetGuildModMailEntries(string) ([]ModMailEntry, error) GetAllModMailEntries() ([]ModMailEntry, error) UpdateModMailEntry(ModMailEntry) error RemoveModMailEntry(int64) error }
type RankService ¶
type ReactionRole ¶
type ReactionRoleService ¶
type ReactionRoleService interface { AddReactionRole(ReactionRole) error GetReactionRole(string, string) (*ReactionRole, error) GetReactionRoles() ([]ReactionRole, error) UpdateReactionRole(int) (int, error) RemoveReactionRole(int) (int, error) }
Click to show internal directories.
Click to hide internal directories.