pub struct ArchiveBot {
pub token: String,
pub notification_channel_id: String,
pub filter_prefixes: Vec<&'static str>,
pub message_headers: Vec<&'static str>,
pub stale_after: u32,
pub small_channel_threshold: u16,
pub notify_secondary_channel: bool,
pub secondary_notification_channel_id: String,
pub secondary_message_headers: Vec<&'static str>,
}
Expand description
Archive bot.
Fields§
§token: String
Slack bot token.
notification_channel_id: String
Channel id to send notifications.
filter_prefixes: Vec<&'static str>
Vector of channel prefixes to filter out of results.
message_headers: Vec<&'static str>
Vector of messages to send (one at random) at beginning of updates.
stale_after: u32
How long until a channel is stale (in seconds).
small_channel_threshold: u16
The threshold <= channels are considered “small”.
notify_secondary_channel: bool
Whether to notify a secondary channel of updates (such as #general).
secondary_notification_channel_id: String
Secondary channel id.
secondary_message_headers: Vec<&'static str>
Secondary notification message options.
Implementations§
Source§impl ArchiveBot
impl ArchiveBot
Source§impl ArchiveBot
impl ArchiveBot
Sourcepub async fn get_channels(&self) -> Vec<Channel>
pub async fn get_channels(&self) -> Vec<Channel>
Get a comprehensive list of basic channel data.
Source§impl ArchiveBot
impl ArchiveBot
Trait Implementations§
Source§impl Debug for ArchiveBot
impl Debug for ArchiveBot
Source§impl Default for ArchiveBot
impl Default for ArchiveBot
Source§fn default() -> ArchiveBot
fn default() -> ArchiveBot
To append to configuration to fill blank values with defaults.
Auto Trait Implementations§
impl Freeze for ArchiveBot
impl RefUnwindSafe for ArchiveBot
impl Send for ArchiveBot
impl Sync for ArchiveBot
impl Unpin for ArchiveBot
impl UnwindSafe for ArchiveBot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more