feat: user consent setting and retrieving (NOTE: does not affect recording yet)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
use clap::Parser;
|
||||
use fomo_reducer::{
|
||||
CommandRouter, GuildVoiceChannelToTextChannel, State, Storage, all_commands, initialize_vcs,
|
||||
update_vcs,
|
||||
CommandRouter, GuildVoiceChannelToTextChannel, State, Storage, UserDataManager, all_commands,
|
||||
initialize_vcs, update_vcs,
|
||||
};
|
||||
use secrecy::{ExposeSecret, SecretString};
|
||||
use snafu::{OptionExt, ResultExt, Snafu};
|
||||
@@ -303,6 +303,8 @@ async fn main() -> Result<(), MainError> {
|
||||
let recording_data = recording_data.into_inner();
|
||||
let user_data = user_data.into_inner();
|
||||
|
||||
let user_data_manager = UserDataManager::new(user_data);
|
||||
|
||||
let discord_voice_channel_corresponding_text_channel = {
|
||||
let mut map = GuildVoiceChannelToTextChannel::default();
|
||||
|
||||
@@ -331,7 +333,7 @@ async fn main() -> Result<(), MainError> {
|
||||
discord_voice_channel_corresponding_text_channel,
|
||||
recording_data,
|
||||
songbird,
|
||||
user_data,
|
||||
user_data_manager,
|
||||
vcs,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user