Documentation ¶
Index ¶
- Constants
- Variables
- func CustomCommandsNewObjectName(guildID, userID string) (objectName string)
- type AuditLogBackfillRequest
- type AuditLogBackfillType
- type AutoleaverStateEntry
- type AutoleaverWhitelistEntry
- type BiasEntry
- type BiasEntryCategory
- type BiasEntryRole
- type BiasGameEntry
- type BotConfigEntry
- type BotStatusEntry
- type Config
- type CustomCommandsEntry
- type DelayedAutoRole
- type DogLinkEntry
- type DonatorEntry
- type ElasticEventlog
- type ElasticEventlogChange
- type ElasticEventlogOption
- type ElasticJoin
- type ElasticLeave
- type ElasticLegacyMessage
- type ElasticMessage
- type ElasticPresenceUpdate
- type ElasticVanityInviteClick
- type ElasticVoiceSession
- type FacebookEntry
- type FacebookPostEntry
- type GalleryEntry
- type GreeterEntry
- type GreeterType
- type IdolEntry
- type IdolImageEntry
- type IdolSuggestionEntry
- type InspectTriggersEnabled
- type InstagramEntry
- type InstagramPostEntry
- type InstagramPostType
- type InstagramSendPostType
- type LastFmEntry
- type LevelsRoleEntry
- type LevelsRoleOverwriteEntry
- type LevelsRoleOverwriteType
- type LevelsServerusersEntry
- type MirrorChannelEntry
- type MirrorEntry
- type MirrorType
- type ModJoinlogEntry
- type ModulePermissionEntry
- type ModulePermissionsModule
- type MongoDbCollection
- type NamesEntry
- type NotificationsEntry
- type NotificationsIgnoredChannelsEntry
- type NuguGameEntry
- type NukelogEntry
- type OldBiasGameEntry
- type OldIdolEntry
- type PersistencyRolesEntry
- type ProfileBackgroundEntry
- type ProfileBadgeEntry
- type ProfileUserdataEntry
- type RandompictureSourceEntry
- type ReactionpollsEntry
- type RedditSubredditEntry
- type RemindersEntry
- type RemindersReminderEntry
- type Rest_Background
- type Rest_Channel
- type Rest_Chatlog_Message
- type Rest_Emoji
- type Rest_Eventlog
- type Rest_Eventlog_Entry
- type Rest_Feature_Chatlog
- type Rest_Feature_Eventlog
- type Rest_Feature_Levels_Badges
- type Rest_Feature_Module
- type Rest_Feature_RandomPictures
- type Rest_Feature_ServerStatistics_Uniques
- type Rest_Feature_VanityInvite
- type Rest_File
- type Rest_Guild
- type Rest_Guild_Features
- type Rest_Is_Member
- type Rest_Member
- type Rest_Member_Guild
- type Rest_RandomPictures_HistoryItem
- type Rest_Ranking
- type Rest_Ranking_Rank_Item
- type Rest_Receive_SetSettings
- type Rest_Role
- type Rest_Setting_String
- type Rest_Settings
- type Rest_Statistics_Count
- type Rest_Statistics_Histogram
- type Rest_Statistics_Histogram_Three
- type Rest_Statistics_Histogram_Two
- type Rest_Statistics_Histogram_TwoSub
- type Rest_Statistics_Histogram_TwoSub_SubItem
- type Rest_Statitics_Bot
- type Rest_Status_Member
- type Rest_User
- type Rest_VanityInvite_Invite
- type SettingLevel
- type StarboardEntry
- type StorageEntry
- type TwitchEntry
- type TwitterEntry
- type TwitterPostMode
- type TwitterTweetEntry
- type UserConfigEntry
- type UseruploadsDisabledUsersEntry
- type VanityInviteEntry
- type VanityInviteRedisEntry
- type VliveCelebInfo
- type VliveChannelInfo
- type VliveEntry
- type VliveNoticeInfo
- type VliveVideoInfo
- type WeatherLastLocationEntry
- type Website_Session_Data
- type YoutubeChannelEntry
- type YoutubeQuota
Constants ¶
View Source
const ( ElasticIndexMessages = "robyul-messages-v2" ElasticIndexJoins = "robyul-joins" ElasticIndexLeaves = "robyul-leaves" ElasticIndexPresenceUpdates = "robyul-presence_updates" ElasticIndexVanityInviteClicks = "robyul-vanity_invite_clicks" ElasticIndexVoiceSessions = "robyul-voice_session" ElasticIndexEventlogs = "robyul-eventlogs" )
View Source
const ( EventlogTypeMemberJoin = "Member_Join" // EventlogTargetTypeUser EventlogTypeMemberLeave = "Member_Leave" // EventlogTargetTypeUser EventlogTypeChannelCreate = "Channel_Create" // EventlogTargetTypeChannel EventlogTypeChannelDelete = "Channel_Delete" // EventlogTargetTypeChannel, reversible EventlogTypeChannelUpdate = "Channel_Update" // EventlogTargetTypeChannel, reversible EventlogTypeRoleCreate = "Role_Create" // EventlogTargetTypeRole EventlogTypeRoleDelete = "Role_Delete" // EventlogTargetTypeRole EventlogTypeBanAdd = "Ban_Add" // EventlogTargetTypeUser EventlogTypeBanRemove = "Ban_Remove" // EventlogTargetTypeUser EventlogTypeEmojiCreate = "Emoji_Create" // EventlogTargetTypeEmoji EventlogTypeEmojiDelete = "Emoji_Delete" // EventlogTargetTypeEmoji, reversible EventlogTypeEmojiUpdate = "Emoji_Update" // EventlogTargetTypeEmoji, reversible EventlogTypeGuildUpdate = "Guild_Update" // EventlogTargetTypeGuild, reversible EventlogTypeMemberUpdate = "Member_Update" // EventlogTargetTypeUser, reversible EventlogTypeRoleUpdate = "Role_Update" // EventlogTargetTypeRole, reversible EventlogTypeInvitePosted = "Invite_Posted" // EvenlogTargetTypeGuild EventlogTargetTypeUser = "user" EventlogTargetTypeChannel = "channel" EventlogTargetTypeRole = "role" EventlogTargetTypeEmoji = "emoji" EventlogTargetTypeGuild = "guild" EventlogTargetTypeMessage = "message" EventlogTargetTypeInviteCode = "invite_code" EventlogTargetTypePermissionOverwrite = "permission_overwrite" EventlogTargetTypeRolePermissions = "role_permissions" EventlogTargetTypeVerificationLevel = "verification_level" EventlogTargetTypeGuildDefaultMessageNotifications = "guild_default_message_notifications" EventlogTargetTypeChannelType = "channel_type" EventlogTypeRobyulBadgeCreate = "Robyul_Badge_Create" // EventlogTargetTypeRobyulBadge EventlogTypeRobyulBadgeDelete = "Robyul_Badge_Delete" // EventlogTargetTypeRobyulBadge EventlogTypeRobyulBadgeAllow = "Robyul_Badge_Allow" // EventlogTargetTypeRobyulBadge EventlogTypeRobyulBadgeDeny = "Robyul_Badge_Deny" // EventlogTargetTypeRobyulBadge EventlogTypeRobyulLevelsReset = "Robyul_Levels_Reset" // EventlogTargetTypeUser EventlogTypeRobyulLevelsIgnoreUser = "Robyul_Levels_Ignore_User" // EventlogTargetTypeUser EventlogTypeRobyulLevelsIgnoreChannel = "Robyul_Levels_Ignore_Channel" // EventlogTargetTypeChannel EventlogTypeRobyulLevelsProcessedHistory = "Robyul_Levels_ProcessedHistory" // EventlogTargetTypeGuild EventlogTypeRobyulLevelsRoleAdd = "Robyul_Levels_Role_Add" // EventlogTargetTypeRole EventlogTypeRobyulLevelsRoleApply = "Robyul_Levels_Role_Apply" // EventlogTargetTypeGuild EventlogTypeRobyulLevelsRoleDelete = "Robyul_Levels_Role_Delete" // EventlogTargetTypeRole EventlogTypeRobyulLevelsRoleGrant = "Robyul_Levels_Role_Grant" // EventlogTargetTypeUser EventlogTypeRobyulLevelsRoleDeny = "Robyul_Levels_Role_Deny" // EventlogTargetTypeUser EventlogTypeRobyulNotificationsChannelIgnore = "Robyul_Notifications_Channel_Ignore" // EventlogTargetTypeChannel EventlogTypeRobyulVliveFeedAdd = "Robyul_Vlive_Feed_Add" // EventlogTargetTypeRobyulVliveFeed EventlogTypeRobyulVliveFeedRemove = "Robyul_Vlive_Feed_Remove" // EventlogTargetTypeRobyulVliveFeed EventlogTypeRobyulYouTubeChannelFeedAdd = "Robyul_YouTube_Channel_Feed_Add" // EventlogTargetTypeRobyulYouTubeChannelFeed EventlogTypeRobyulYouTubeChannelFeedRemove = "Robyul_YouTube_Channel_Feed_Remove" // EventlogTargetTypeRobyulYouTubeChannelFeed EventlogTypeRobyulInstagramFeedAdd = "Robyul_Instagram_Feed_Add" // EventlogTargetTypeRobyulInstagramFeed EventlogTypeRobyulInstagramFeedRemove = "Robyul_Instagram_Feed_Remove" // EventlogTargetTypeRobyulInstagramFeed EventlogTypeRobyulInstagramFeedUpdate = "Robyul_Instagram_Feed_Update" // EventlogTargetTypeRobyulInstagramFeed EventlogTypeRobyulRedditFeedAdd = "Robyul_Reddit_Feed_Add" // EventlogTargetTypeRobyulRedditFeed EventlogTypeRobyulRedditFeedRemove = "Robyul_Reddit_Feed_Remove" // EventlogTargetTypeRobyulRedditFeed EventlogTypeRobyulRedditFeedUpdate = "Robyul_Reddit_Feed_Update" // EventlogTargetTypeRobyulRedditFeed EventlogTypeRobyulFacebookFeedAdd = "Robyul_Facebook_Feed_Add" // EventlogTargetTypeRobyulFacebookFeed EventlogTypeRobyulFacebookFeedRemove = "Robyul_Facebook_Feed_Remove" // EventlogTargetTypeRobyulFacebookFeed EventlogTypeRobyulCleanup = "Robyul_Cleanup" // EventlogTypeRobyulMute = "Robyul_Mute" // EventlogTargetTypeUser EventlogTypeRobyulUnmute = "Robyul_Unmute" // EventlogTargetTypeUser EventlogTypeRobyulPostCreate = "Robyul_Post_Create" // EventlogTargetTypeMessage EventlogTypeRobyulPostUpdate = "Robyul_Post_Update" // EventlogTargetTypeMessage EventlogTypeRobyulBatchRolesCreate = "Robyul_BatchRoles_Create" // EventlogTargetTypeGuild EventlogTypeRobyulAutoInspectsChannel = "Robyul_AutoInspectsChannel" // EventlogTargetTypeChannel EventlogTypeRobyulPrefixUpdate = "Robyul_Prefix_Update" // EventlogTargetTypeGuild EventlogTypeRobyulChatlogUpdate = "Robyul_Chatlog_Update" // EventlogTargetTypeGuild EventlogTypeRobyulVanityInviteCreate = "Robyul_VanityInvite_Create" // EventlogTargetTypeGuild EventlogTypeRobyulVanityInviteDelete = "Robyul_VanityInvite_Delete" // EventlogTargetTypeGuild EventlogTypeRobyulVanityInviteUpdate = "Robyul_VanityInvite_Update" // EventlogTargetTypeGuild EventlogTypeRobyulBiasConfigCreate = "Robyul_Bias_Config_Create" // EventlogTargetTypeChannel EventlogTypeRobyulBiasConfigDelete = "Robyul_Bias_Config_Delete" // EventlogTargetTypeChannel EventlogTypeRobyulBiasConfigUpdate = "Robyul_Bias_Config_Update" // EventlogTargetTypeChannel EventlogTypeRobyulAutoroleAdd = "Robyul_Autorole_Add" // EventlogTargetTypeRole EventlogTypeRobyulAutoroleRemove = "Robyul_Autorole_Remove" // EventlogTargetTypeRole EventlogTypeRobyulAutoroleApply = "Robyul_Autorole_Apply" // EventlogTargetTypeRole EventlogTypeRobyulGuildAnnouncementsJoinSet = "Robyul_GuildAnnouncements_Join_Set" // EventlogTargetTypeChannel EventlogTypeRobyulGuildAnnouncementsJoinRemove = "Robyul_GuildAnnouncements_Join_Remove" // EventlogTargetTypeChannel EventlogTypeRobyulGuildAnnouncementsLeaveSet = "Robyul_GuildAnnouncements_Leave_Set" // EventlogTargetTypeChannel EventlogTypeRobyulGuildAnnouncementsLeaveRemove = "Robyul_GuildAnnouncements_Leave_Remove" // EventlogTargetTypeChannel EventlogTypeRobyulGuildAnnouncementsBanSet = "Robyul_GuildAnnouncements_Ban_Set" // EventlogTargetTypeChannel EventlogTypeRobyulGalleryAdd = "Robyul_Gallery_Add" // EventlogTargetTypeRobyulGallery EventlogTypeRobyulGalleryRemove = "Robyul_Gallery_Remove" // EventlogTargetTypeRobyulGallery EventlogTypeRobyulMirrorCreate = "Robyul_Mirror_Create" // EventlogTargetTypeRobyulMirror EventlogTypeRobyulMirrorDelete = "Robyul_Mirror_Delete" // EventlogTargetTypeRobyulMirror EventlogTypeRobyulMirrorUpdate = "Robyul_Mirror_Update" // EventlogTargetTypeRobyulMirror EventlogTypeRobyulStarboardCreate = "Robyul_Starboard_Create" // EventlogTargetTypeChannel EventlogTypeRobyulStarboardDelete = "Robyul_Starboard_Delete" // EventlogTargetTypeChannel EventlogTypeRobyulStarboardUpdate = "Robyul_Starboard_Update" // EventlogTargetTypeChannel EventlogTypeRobyulRandomPictureSourceCreate = "Robyul_RandomPicture_Source_Create" // EventlogTargetTypeRobyulRandomPictureSource EventlogTypeRobyulRandomPictureConfigUpdate = "Robyul_RandomPicture_Config_Update" // EventlogTargetTypeRobyulRandomPictureSource EventlogTypeRobyulRandomPictureSourceRemove = "Robyul_RandomPicture_Source_Remove" // EventlogTargetTypeRobyulRandomPictureSource EventlogTypeRobyulCommandsAdd = "Robyul_Commands_Add" // EventlogTargetTypeGuild EventlogTypeRobyulCommandsDelete = "Robyul_Commands_Delete" // EventlogTargetTypeGuild EventlogTypeRobyulCommandsUpdate = "Robyul_Commands_Update" // EventlogTargetTypeGuild EventlogTypeRobyulCommandsJsonExport = "Robyul_Commands_Json_Export" // EventlogTargetTypeGuild EventlogTypeRobyulCommandsJsonImport = "Robyul_Commands_Json_Import" // EventlogTargetTypeGuild EventlogTypeRobyulTwitchFeedAdd = "Robyul_Twitch_Feed_Add" // EventlogTargetTypeRobyulTwitchFeed EventlogTypeRobyulTwitchFeedRemove = "Robyul_Twitch_Feed_Remove" // EventlogTargetTypeRobyulTwitchFeed EventlogTypeRobyulNukeParticipate = "Robyul_Nuke_Participate" // EventlogTargetTypeGuild EventlogTypeRobyulTroublemakerParticipate = "Robyul_Troublemaker_Participate" // EventlogTargetTypeGuild EventlogTypeRobyulTroublemakerReport = "Robyul_Troublemaker_Report" // EventlogTargetTypeUser EventlogTypeRobyulPersistencyBiasRoles = "Robyul_Persistency_BiasRoles" // EventlogTargetTypeGuild EventlogTypeRobyulPersistencyRoleAdd = "Robyul_Persistency_Role_Add" // EventlogTargetTypeRole EventlogTypeRobyulPersistencyRoleRemove = "Robyul_Persistency_Role_Remove" // EventlogTargetTypeRole EventlogTypeRobyulModuleAllowRoleAdd = "Robyul_Module_Allow_Role_Add" // EventlogTargetTypeRole EventlogTypeRobyulModuleAllowRoleRemove = "Robyul_Module_Allow_Role_Remove" // EventlogTargetTypeRole EventlogTypeRobyulModuleAllowChannelAdd = "Robyul_Module_Allow_Channel_Add" // EventlogTargetTypeChannel EventlogTypeRobyulModuleAllowChannelRemove = "Robyul_Module_Allow_Channel_Remove" // EventlogTargetTypeChannel EventlogTypeRobyulModuleDenyRoleAdd = "Robyul_Module_Deny_Role_Add" // EventlogTargetTypeRole EventlogTypeRobyulModuleDenyRoleRemove = "Robyul_Module_Deny_Role_Remove" // EventlogTargetTypeRole EventlogTypeRobyulModuleDenyChannelAdd = "Robyul_Module_Deny_Channel_Add" // EventlogTargetTypeChannel EventlogTypeRobyulModuleDenyChannelRemove = "Robyul_Module_Deny_Channel_Remove" // EventlogTargetTypeChannel EventlogTypeRobyulEventlogConfigUpdate = "Robyul_Module_Eventlog_Config_Update" // EventlogTargetTypeGuild EventlogTypeRobyulTwitterFeedAdd = "Robyul_Twitter_Feed_Add" // EventlogTargetTypeRobyulTwitterFeed EventlogTypeRobyulTwitterFeedRemove = "Robyul_Twitter_Feed_Remove" // EventlogTargetTypeRobyulTwitterFeed EventlogTypeRobyulActionRevert = "Robyul_Action_Revert" // EventlogTargetTypeRobyulEventlogItem EventlogTargetTypeRobyulBadge = "robyul-badge" EventlogTargetTypeRobyulVliveFeed = "robyul-vlive-feed" EventlogTargetTypeRobyulYouTubeChannelFeed = "robyul-youtube-channel-feed" EventlogTargetTypeRobyulInstagramFeed = "robyul-instagram-feed" EventlogTargetTypeRobyulRedditFeed = "robyul-reddit-feed" EventlogTargetTypeRobyulFacebookFeed = "robyul-facebook-feed" EventlogTargetTypeRobyulGallery = "robyul-gallery" EventlogTargetTypeRobyulMirror = "robyul-mirror" EventlogTargetTypeRobyulRandomPictureSource = "robyul-randompicture-source" EventlogTargetTypeRobyulTwitchFeed = "robyul-twitch-feed" EventlogTargetTypeRobyulTwitterFeed = "robyul-twitter-feed" EventlogTargetTypeRobyulPublicObject = "robyul-public-object" EventlogTargetTypeRobyulMirrorType = "robyul-mirror-type" EventlogTargetTypeRobyulEventlogItem = "robyul-eventlog-item" AuditLogBackfillRedisList = "robyul-discord:eventlog:auditlog-backfills:v2" )
View Source
const ( GreeterTable MongoDbCollection = "greeter" GreeterTypeJoin GreeterType = iota GreeterTypeLeave GreeterTypeBan )
View Source
const ( Redis_Key_Feature_Levels_Badges = "robyul2-discord:feature:levels-badges:server:%s" Redis_Key_Feature_RandomPictures = "robyul2-discord:feature:randompictures:server:%s" )
View Source
const ( TwitterTable MongoDbCollection = "twitter" TwitterPostModeRobyulEmbed TwitterPostMode = iota TwitterPostModeDiscordEmbed TwitterPostModeText )
View Source
const ( VanityInvitesTable MongoDbCollection = "vanity_invites" // {guildID} resolves to VanityInviteRedisEntry VanityInvitesInviteRedisKey = "robyul2-discord:vanityinvites:invite:%s" VanityInviteLogChannelKey = "vanityinvite:log:channel-id" )
View Source
const (
FeedbackLogChannelKey = "feedback:log:channel-id"
)
View Source
const (
MirrorsTable = "mirrors"
)
Variables ¶
View Source
var (
ISO8601 = "2006-01-02T15:04:05-0700"
)
Functions ¶
Types ¶
type AuditLogBackfillRequest ¶
type AuditLogBackfillRequest struct { GuildID string // required Type AuditLogBackfillType // required Count int // required UserID string }
type AuditLogBackfillType ¶
type AuditLogBackfillType int
const ( AuditLogBackfillTypeChannelCreate AuditLogBackfillType = iota AuditLogBackfillTypeChannelDelete AuditLogBackfillTypeChannelUpdate AuditLogBackfillTypeRoleCreate AuditLogBackfillTypeRoleDelete AuditLogBackfillTypeBanAdd AuditLogBackfillTypeBanRemove AuditLogBackfillTypeMemberRemove AuditLogBackfillTypeEmojiCreate AuditLogBackfillTypeEmojiDelete AuditLogBackfillTypeEmojiUpdate AuditLogBackfillTypeGuildUpdate AuditLogBackfillTypeRoleUpdate AuditlogBackfillTypeMemberRoleUpdate AuditlogBackfillTypeMemberUpdate AuditLogBackfillTypeChannelOverridesAdd AuditLogBackfillTypeChannelOverridesRemove AuditLogBackfillTypeChannelOverridesUpdate )
type AutoleaverStateEntry ¶
type BiasEntry ¶
type BiasEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` GuildID string // TODO: renamed from serverID ChannelID string Categories []BiasEntryCategory }
type BiasEntryCategory ¶
type BiasEntryRole ¶
type BiasGameEntry ¶
type BotConfigEntry ¶
type BotStatusEntry ¶
type Config ¶
type Config struct { ID bson.ObjectId `bson:"_id,omitempty"` // Guild contains the guild ID GuildID string Prefix string CleanupEnabled bool AnnouncementsEnabled bool // AnnouncementsChannel stores the channel ID AnnouncementsChannel string WelcomeNewUsersEnabled bool WelcomeNewUsersText string MutedRoleName string InspectTriggersEnabled InspectTriggersEnabled InspectsChannel string NukeIsParticipating bool NukeLogChannel string LevelsIgnoredUserIDs []string LevelsIgnoredChannelIDs []string LevelsNotificationCode string LevelsNotificationDeleteAfter int LevelsMaxBadges int MutedMembers []string // deprecated TroublemakerIsParticipating bool TroublemakerLogChannel string AutoRoleIDs []string DelayedAutoRoles []DelayedAutoRole StarboardChannelID string StarboardMinimum int StarboardEmoji []string ChatlogDisabled bool EventlogDisabled bool EventlogChannelIDs []string PersistencyBiasEnabled bool PersistencyRoleIDs []string RandomPicturesPicDelay int RandomPicturesPicDelayIgnoredChannelIDs []string PerspectiveIsParticipating bool PerspectiveChannelID string CustomCommandsEveryoneCanAdd bool CustomCommandsAddRoleID string AdminRoleIDs []string ModRoleIDs []string }
Config is a struct describing all config options a guild may set
type CustomCommandsEntry ¶
type CustomCommandsEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` GuildID string CreatedByUserID string CreatedAt time.Time Triggered int Keyword string Content string StorageObjectName string StorageMimeType string // deprecated StorageHash string // deprecated StorageFilename string // deprecated }
type DelayedAutoRole ¶
type DogLinkEntry ¶
type DonatorEntry ¶
type ElasticEventlog ¶
type ElasticEventlogChange ¶
type ElasticEventlogOption ¶
type ElasticJoin ¶
type ElasticLegacyMessage ¶
type ElasticMessage ¶
type ElasticPresenceUpdate ¶
type ElasticVoiceSession ¶
type FacebookEntry ¶
type FacebookPostEntry ¶
type GalleryEntry ¶
type GreeterEntry ¶
type GreeterType ¶
type GreeterType int
type IdolEntry ¶
type IdolEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` NameAliases []string Name string GroupName string Gender string Images []IdolImageEntry Deleted bool // there are times when a idol can't be fully deleted cause its used as a reference, in which case this will simply be set to true BGGames int BGGameWins int BGRounds int BGRoundWins int }
type IdolImageEntry ¶
type IdolSuggestionEntry ¶
type IdolSuggestionEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` UserID string // user who made the message ProcessedByUserId string Name string GrouopName string Gender string ImageURL string ChannelID string // channel suggestion was made in Status string Notes string // misc notes from GroupMatch bool IdolMatch bool LastModifiedOn time.Time ImageHashString string ObjectName string }
type InspectTriggersEnabled ¶
type InstagramEntry ¶
type InstagramEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` GuildID string // TODO: renamed from ServerID ChannelID string Username string InstagramUserID int64 // deprecated InstagramUserIDString string PostedPosts []InstagramPostEntry IsLive bool SendPostType InstagramSendPostType LastPostCheck time.Time }
type InstagramPostEntry ¶
type InstagramPostEntry struct { ID string Type InstagramPostType CreatedAtTime time.Time }
type InstagramPostType ¶
type InstagramPostType int
const ( InstagramPostTypePost InstagramPostType = iota InstagramPostTypeReel )
type InstagramSendPostType ¶
type InstagramSendPostType int
const ( InstagramSendPostTypeRobyulEmbed InstagramSendPostType = iota InstagramSendPostTypeDirectLinks )
type LastFmEntry ¶
type LevelsRoleEntry ¶
type LevelsRoleOverwriteType ¶
type LevelsRoleOverwriteType int
const ( LevelsRoleOverwriteTypeGrant LevelsRoleOverwriteType = iota LevelsRoleOverwriteTypeDeny )
type LevelsServerusersEntry ¶
type MirrorChannelEntry ¶
type MirrorEntry ¶
type MirrorEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` Type MirrorType ConnectedChannels []MirrorChannelEntry }
type ModJoinlogEntry ¶
type ModulePermissionEntry ¶
type ModulePermissionEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` GuildID string Type string // "channel" or "role" TargetID string Allowed ModulePermissionsModule // -1 for unset Denied ModulePermissionsModule // -1 for unset }
func GetDefaultModulePermission ¶
func GetDefaultModulePermission() (defaultEntry ModulePermissionEntry)
type ModulePermissionsModule ¶
type ModulePermissionsModule int64
type MongoDbCollection ¶
type MongoDbCollection string
const ( AutoleaverWhitelistTable MongoDbCollection = "autoleaver_whitelist" AutoleaverLogChannelKey = "autoleaver:log:channel-id" )
const ( OldBiasGameTable MongoDbCollection = "biasgame" BiasGameTable MongoDbCollection = "biasgame_new" )
const ( OldIdolsTable MongoDbCollection = "biasgame_idols" IdolTable MongoDbCollection = "idols" IdolSuggestionsTable MongoDbCollection = "biasgame_suggestions" )
const ( LevelsRolesTable MongoDbCollection = "levels_roles" LevelsRoleOverwritesTable MongoDbCollection = "levels_roles_overwrites" )
const ( LevelsServerusersTable MongoDbCollection = "levels_serverusers" UserProfileBackgroundLogChannelKey = "profile-background:log:channel-id" )
const ( NotificationsTable MongoDbCollection = "notifications" NotificationsIgnoredChannelsTable MongoDbCollection = "notifications_ignored_channels" )
const ( YoutubeChannelTable MongoDbCollection = "youtube_channels" YoutubeQuotaRedisKey = "robyul2-discord:youtube:quota" )
const (
AutoleaverStateTable MongoDbCollection = "autoleaver_state"
)
const (
BiasTable MongoDbCollection = "bias"
)
const (
BotConfigTable MongoDbCollection = "bot_config"
)
const (
BotStatusTable MongoDbCollection = "bot_status"
)
const (
CustomCommandsTable MongoDbCollection = "customcommands"
)
const (
DogLinksTable MongoDbCollection = "dog_links"
)
const (
DonatorsTable MongoDbCollection = "donators"
)
const (
FacebookTable MongoDbCollection = "facebook"
)
const (
GalleryTable MongoDbCollection = "galleries"
)
const (
GuildConfigTable MongoDbCollection = "guild_configs"
)
const (
InstagramTable MongoDbCollection = "instagram"
)
const (
LastFmTable MongoDbCollection = "lastfm"
)
const (
ModJoinlogTable MongoDbCollection = "mod_joinlog"
)
const (
ModulePermissionsTable MongoDbCollection = "module_permissions"
)
const (
NamesTable MongoDbCollection = "names"
)
const (
NuguGameTable MongoDbCollection = "nugugame"
)
const (
NukelogTable MongoDbCollection = "nukelog"
)
const (
PersistencyRolesTable MongoDbCollection = "persistency_roles"
)
const (
ProfileBackgroundsTable MongoDbCollection = "profile_backgrounds"
)
const (
ProfileBadgesTable MongoDbCollection = "profile_badges"
)
const (
ProfileUserdataTable MongoDbCollection = "profile_userdata"
)
const (
RandompictureSourcesTable MongoDbCollection = "randompicture_sources"
)
const (
ReactionpollsTable MongoDbCollection = "reactionpolls"
)
const (
RedditSubredditsTable MongoDbCollection = "reddit_subreddits"
)
const (
RemindersTable MongoDbCollection = "reminders"
)
const (
StarboardEntriesTable MongoDbCollection = "starboard_entries"
)
const (
StorageTable MongoDbCollection = "storage"
)
const (
TwitchTable MongoDbCollection = "twitch"
)
const (
UserConfigTable MongoDbCollection = "user_config"
)
const (
UseruploadsDisabledUsersTable MongoDbCollection = "useruploads_disabled_users"
)
const (
VliveTable MongoDbCollection = "vlive"
)
const (
WeatherLastLocationsTable MongoDbCollection = "weather_last_locations"
)
func (MongoDbCollection) String ¶
func (c MongoDbCollection) String() string
type NamesEntry ¶
type NotificationsEntry ¶
type NuguGameEntry ¶
type NuguGameEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` UserID string // person who start the game GuildID string CorrectIdols []bson.ObjectId CorrectIdolsCount int // allows better performance for simple queries IncorrectIdols []bson.ObjectId IncorrectIdolsCount int // allows better performance for simple queries Gender string // girl, boy, mixed GameType string // idol, group IsMultigame bool Difficulty string UsersCorrectGuesses map[string][]bson.ObjectId // userid => []ids of idols they got right. used in multi only }
type NukelogEntry ¶
type OldBiasGameEntry ¶
type OldBiasGameEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` UserID string GuildID string GameWinner OldIdolEntry RoundWinners []OldIdolEntry RoundLosers []OldIdolEntry Gender string // girl, boy, mixed GameType string // single, multi }
type OldIdolEntry ¶
type PersistencyRolesEntry ¶
type ProfileBackgroundEntry ¶
type ProfileBadgeEntry ¶
type ProfileBadgeEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` OldID string // deprecated CreatedByUserID string Name string Category string BorderColor string GuildID string CreatedAt time.Time URL string // deprecated ObjectName string LevelRequirement int RoleRequirement string AllowedUserIDs []string DeniedUserIDs []string }
func (ProfileBadgeEntry) GetID ¶
func (e ProfileBadgeEntry) GetID() (ID string)
type ProfileUserdataEntry ¶
type ProfileUserdataEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` UserID string Background string BackgroundObjectName string Title string Bio string Rep int LastRepped time.Time ActiveBadgeIDs []string BackgroundColor string AccentColor string TextColor string BackgroundOpacity string DetailOpacity string BadgeOpacity string EXPOpacity string AvatarOpacity string Timezone string Birthday string HideLastFm bool }
type ReactionpollsEntry ¶
type ReactionpollsEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` Text string MessageID string ChannelID string GuildID string CreatedByUserID string CreatedAt time.Time Active bool AllowedEmotes []string MaxAllowedVotes int Reactions map[string][]string // [emoji][]userIDs Initialised bool }
type RedditSubredditEntry ¶
type RemindersEntry ¶
type RemindersEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` UserID string Reminders []RemindersReminderEntry }
type RemindersReminderEntry ¶
type Rest_Background ¶
type Rest_Channel ¶
type Rest_Chatlog_Message ¶
type Rest_Emoji ¶
type Rest_Eventlog ¶
type Rest_Eventlog struct { Channels []Rest_Channel Users []Rest_User Roles []Rest_Role Entries []Rest_Eventlog_Entry Emoji []Rest_Emoji Guilds []Rest_Guild }
type Rest_Eventlog_Entry ¶
type Rest_Eventlog_Entry struct { CreatedAt time.Time TargetID string TargetType string UserID string ActionType string Reason string Changes []ElasticEventlogChange Options []ElasticEventlogOption WaitingForData bool }
type Rest_Feature_Chatlog ¶
type Rest_Feature_Chatlog struct {
Enabled bool
}
type Rest_Feature_Eventlog ¶
type Rest_Feature_Eventlog struct {
Enabled bool
}
type Rest_Feature_Levels_Badges ¶
type Rest_Feature_Levels_Badges struct {
Count int
}
type Rest_Feature_Module ¶
type Rest_Feature_Module struct { Name string ID ModulePermissionsModule }
type Rest_Feature_RandomPictures ¶
type Rest_Feature_RandomPictures struct {
Count int
}
type Rest_Feature_ServerStatistics_Uniques ¶
type Rest_Feature_ServerStatistics_Uniques struct {
Enabled bool
}
type Rest_Feature_VanityInvite ¶
type Rest_Feature_VanityInvite struct {
VanityInviteName string
}
type Rest_Guild ¶
type Rest_Guild struct { ID string Name string Icon string OwnerID string JoinedAt time.Time BotPrefix string Features Rest_Guild_Features Settings Rest_Settings Channels []Rest_Channel }
type Rest_Guild_Features ¶
type Rest_Guild_Features struct { Levels_Badges Rest_Feature_Levels_Badges RandomPictures Rest_Feature_RandomPictures Chatlog Rest_Feature_Chatlog VanityInvite Rest_Feature_VanityInvite Modules []Rest_Feature_Module Eventlog Rest_Feature_Eventlog ServerStatistics_Uniques Rest_Feature_ServerStatistics_Uniques }
type Rest_Is_Member ¶
type Rest_Is_Member struct {
IsMember bool
}
type Rest_Member ¶
type Rest_Member_Guild ¶
type Rest_Member_Guild struct { ID string Name string Icon string OwnerID string JoinedAt time.Time BotPrefix string Features Rest_Guild_Features Channels []Rest_Channel Settings Rest_Settings Status Rest_Status_Member }
type Rest_Ranking ¶
type Rest_Ranking struct { Ranks []Rest_Ranking_Rank_Item Count int }
type Rest_Ranking_Rank_Item ¶
type Rest_Setting_String ¶
type Rest_Setting_String struct { Key string Level SettingLevel Values []string }
type Rest_Settings ¶
type Rest_Settings struct {
Strings []Rest_Setting_String
}
type Rest_Statistics_Count ¶
type Rest_Statistics_Count struct {
Count int64
}
type Rest_Statistics_Histogram_TwoSub ¶
type Rest_Statistics_Histogram_TwoSub struct { Time string // ISO 8601 Count1 int64 Count2 int64 SubItems []Rest_Statistics_Histogram_TwoSub_SubItem }
type Rest_Statitics_Bot ¶
type Rest_Status_Member ¶
type SettingLevel ¶
type SettingLevel string
type StarboardEntry ¶
type StarboardEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` GuildID string MessageID string ChannelID string AuthorID string MessageContent string MessageAttachmentURLs []string MessageEmbedImageURL string StarboardMessageID string StarboardMessageChannelID string StarUserIDs []string Stars int FirstStarred time.Time }
type StorageEntry ¶
type StorageEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` ObjectName string ObjectNameHash string UploadDate time.Time Filename string UserID string GuildID string ChannelID string Source string MimeType string Filesize int // in bytes Public bool Metadata map[string]string RetrievedCount int }
type TwitchEntry ¶
type TwitterEntry ¶
type TwitterPostMode ¶
type TwitterPostMode int
type TwitterTweetEntry ¶
type UserConfigEntry ¶
type VanityInviteEntry ¶
type VanityInviteRedisEntry ¶
type VliveCelebInfo ¶
type VliveChannelInfo ¶
type VliveChannelInfo struct { Seq int64 `json:"channel_seq"` Code string `json:"channel_code"` Type string `json:"type"` Name string `json:"channel_name"` Followers int64 `json:"fan_count"` CoverImgUrl string `json:"channel_cover_img"` ProfileImgUrl string `json:"channel_profile_img"` Color string `json:"representative_color"` TotalVideos int64 `json:"-"` CelebBoard struct { BoardID int64 `json:"board_id"` } `json:"celeb_board"` Upcoming []VliveVideoInfo `json:"-"` Live []VliveVideoInfo `json:"-"` VOD []VliveVideoInfo `json:"-"` Notices []VliveNoticeInfo `json:"-"` Celebs []VliveCelebInfo `json:"-"` Url string `json:"-"` }
type VliveEntry ¶
type VliveEntry struct { ID bson.ObjectId `bson:"_id,omitempty"` GuildID string // renamed from server ID ChannelID string VLiveChannel VliveChannelInfo PostedUpcoming []VliveVideoInfo PostedLive []VliveVideoInfo PostedVOD []VliveVideoInfo PostedNotices []VliveNoticeInfo PostedCelebs []VliveCelebInfo MentionRoleID string }
type VliveNoticeInfo ¶
type VliveVideoInfo ¶
type VliveVideoInfo struct { Seq int64 `json:"videoSeq"` Title string `json:"title"` Plays int64 `json:"playCount"` Likes int64 `json:"likeCount"` Comments int64 `json:"commentCount"` Thumbnail string `json:"thumbnail"` Date string `json:"onAirStartAt"` Playtime int64 `json:"playTime"` Type string `json:"videoType"` Url string `json:"-"` }
type Website_Session_Data ¶
type Website_Session_Data struct {
DiscordUserID string
}
type YoutubeChannelEntry ¶
type YoutubeQuota ¶
Source Files ¶
- autoleaver_state.go
- autoleaver_whitelist.go
- bias.go
- biasgame.go
- bot_config.go
- bot_status.go
- common.go
- config.go
- customcommands.go
- dog.go
- donators.go
- elastic.go
- eventlog.go
- facebook.go
- feedback.go
- gallery.go
- greeter.go
- idols.go
- instagram.go
- lastfm.go
- levels_roles.go
- levels_serverusers.go
- mirror.go
- mod_joinlog.go
- module_permissions.go
- names.go
- notifications.go
- nugugame.go
- nukelog.go
- persistency.go
- profile_backgrounds.go
- profile_badge.go
- profile_userdata.go
- randompicture_source.go
- reactionpolls.go
- reddit.go
- reminders.go
- rest.go
- rest_receive.go
- starboard.go
- storage.go
- twitch.go
- twitter.go
- user_config.go
- useruploads_disabled_users.go
- vanityinvites.go
- vlive.go
- weather.go
- youtube.go
Click to show internal directories.
Click to hide internal directories.