Expand description
Babyrite - A Discord bot for message link previews.
This bot automatically generates previews for Discord message links shared within the same guild, and expands GitHub permalinks into code blocks.
Re-exportsยง
pub(crate) use crate::config::BabyriteConfig;๐pub(crate) use crate::config::EnvConfig;๐pub(crate) use crate::config::LogFormat;๐pub(crate) use crate::context::BotContext;๐pub(crate) use twilight_gateway::ConfigBuilder;๐pub(crate) use twilight_gateway::EventTypeFlags;๐pub(crate) use twilight_gateway::Intents;๐pub(crate) use twilight_gateway::Shard;๐pub(crate) use twilight_gateway::ShardId;๐pub(crate) use twilight_gateway::StreamExt as _;๐pub(crate) use std::sync::Arc;๐pub(crate) use std::time::Duration;๐pub(crate) use tracing_subscriber::EnvFilter;๐pub(crate) use ConfigBuilder;๐pub(crate) use EventTypeFlags;๐pub(crate) use Intents;๐pub(crate) use Shard;๐pub(crate) use ShardId;๐pub(crate) use payload::outgoing::update_presence::UpdatePresencePayload;๐pub(crate) use Activity;๐pub(crate) use ActivityType;๐pub(crate) use MinimalActivity;๐pub(crate) use Status;๐
Modulesยง
- cache ๐
- Cache module for guild channels.
- config ๐
- Configuration module for Babyrite.
- context ๐
- State shared by every event handler task.
- event ๐
- Event handling module for Discord events.
- expand ๐
- Link expansion module.
- reply ๐
- Assembly of the messages Babyrite posts back to the requester.
- utils ๐
- Utility functions for babyrite.
Constantsยง
- WANTED_
EVENTS ๐ - The gateway events
event::handleacts on.
Functionsยง
- main ๐