Documentation
¶
Index ¶
Constants ¶
View Source
const ( DiDiscordSession = "discordgosession" DiConfig = "config" DiDatabase = "database" DiObjectStorage = "objectstorage" DiScheduler = "scheduler" DiPermissions = "permissions" DiTwitchNotifyWorker = "twitchnotifyworker" DiTwitchNotifyListener = "twitchnotifylistener" DiOneTimeAuth = "onetimeauthhandler" DiConfigParser = "configparser" DiCommandHandler = "kencommandhandler" DiMetrics = "metrics" DiWebserver = "webserver" DiBackupHandler = "backuphandler" DiDiscordOAuthModule = "discordoauthmodule" DiOAuthHandler = "oauthhandler" DiAuthAccessTokenHandler = "authaccesstokenhandler" DiAuthRefreshTokenHandler = "authrefreshtokenhandler" DiAuthAPITokenHandler = "authapitokenhandler" DiAuthMiddleware = "authmiddleware" DiCodeExecFactory = "codeexecfactory" DiKarma = "karmaservice" DiReport = "reportservice" DiGuildLog = "guildlog" DiKVCache = "kvcache" DiRedis = "redisclient" DiState = "dgstate" DiVerification = "verification" DiBirthday = "birthday" DiTimeProvider = "timeprovider" )
View Source
const ( InvitePermission = 0x1 | 0x10 | 0x20 | 0x40 | 0x400 | 0x800 | 0x2000 | 0x4000 | 0x8000 | 0x10000 | 0x20000 | 0x40000 | 0x4000000 | 0x8000000 | 0x10000000 | 0x20000000 | 0x40000000 // MANAGE EMOJIS Intents = discordgo.IntentsDirectMessages | discordgo.IntentsGuildBans | discordgo.IntentsGuildEmojis | discordgo.IntentsGuildIntegrations | discordgo.IntentsGuildInvites | discordgo.IntentsGuildMembers | discordgo.IntentsGuildMessageReactions | discordgo.IntentsGuildMessages | discordgo.IntentsGuildVoiceStates | discordgo.IntentsGuilds | discordgo.IntentsGuildVoiceStates OAuthScopes = "bot%20applications.commands" ConfigVersion = 6 ColorEmbedError = 0xd32f2f ColorEmbedDefault = 0xffc107 ColorEmbedUpdated = 0x8bc34a ColorEmbedGray = 0xb0bec5 ColorEmbedOrange = 0xfb8c00 ColorEmbedGreen = 0x8BC34A ColorEmbedCyan = 0x00BCD4 ColorEmbedYellow = 0xFFC107 ColorEmbedViolett = 0x6A1B9A ReportRevokedColor = 0x9C27B0 StdMotd = "github.com/zekroTJA/shinpuru" DefEpoche = 1545834736 // 2018-12-26 15:32:16 +0100 CET MutedRoleName = "shinpuru-muted" SettingPresence = "PRESENCE" SettingWIInviteGuildID = "WIINVITEGUILDID" SettingWIInviteCode = "WIINVITECODE" SettingWIInviteText = "WIINVITETEXT" StorageBucketImages = "shinpuru-images" StorageBucketBackups = "shinpuru-backups" DiscordAPIEndpoint = "https://discord.com/api" CommandManualDocument = "https://github.com/zekroTJA/shinpuru/wiki/Commands" PublicMainInvite = "https://shnp.de/invite" PublicCanaryInvite = "https://c.shnp.de/invite" EndpointAuthCB = "/api/auth/oauthcallback" AuthSessionExpiration = 7 * 24 * time.Hour // 7 Days ApiTokenExpiration = 365 * 24 * time.Hour RefreshTokenCookieName = "refreshToken" )
Variables ¶
View Source
var ( PermLvlBotOwner = 1000 PermLvlGuildOwner = 10 DefaultAdminRules = []string{ "+sp.guild.*", "+sp.etc.*", "+sp.chat.*", } DefaultUserRules = []string{ "+sp.etc.*", "+sp.chat.*", } AdditionalPermissions = []string{ "sp.chat.exec", "sp.chat.autochannel", "sp.chat.colorreactions", "sp.guild.mod.inviteblock.send", } )
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.