package
0.0.0-20240815154250-7cb85a9cfeee
Repository: https://github.com/holedaemon/bot2.git
Documentation: pkg.go.dev
# Functions
BumpMention bumps the count for an Egoraptor mention.
FetchGuild fetches a guild from the database.
FetchLastSeen fetches the last time a user was seen in a guild.
FetchPing fetches a ping from the database by ID.
FetchRoleUpdater fetches a role updater from the database.
FetchSetting fetches settings from the database, or returns a new one with defaults set.
FetchTag retrieves a tag from the database.
FetchToken fetches a Discord OAuth2 token by its associated user ID.
FetchTopThreeMentions fetches the top three Egoraptor mentions for a guild.
FetchUserProfile fetches a user profile from the database.
ModelToToken converts a stored Discord Token into an *oauth2.Token.
RenameTag renames a tag in the database.
ToggleGuildQuotes toggles quotes for a guild.
TokenToModel converts an OAuth2 token and user id to a Discord token.
UpdatePing updates a ping's pattern.
UpdateTagContent updates a tag's content in the database.
UpsertDiscordToken inserts a Discord OAuth2 token, or upserts it on conflict.
UpsertGuild inserts a guild, or updates it should it have changed.
UpsertLastSeen inserts a last seen timestamp, or updates it should it have changed.
UpsertRoleUpdater inserts a role updater or updates it on conflict.
UpsertSession inserts a session, or upserts it on conflict.
UpsertSetting inserts a setting, or updates it should it have changed.
UpsertUserProfile inserts a user profile or updates it on conflict.
UserProfileExists checks if a user profile exists within the database.
# Constants
DefaultEgoraptorTimeout is the default number of seconds to timeout users.