Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CLI Arg to replace default "Me" value #30

Closed
ReagentX opened this issue Nov 6, 2022 · 0 comments
Closed

Add CLI Arg to replace default "Me" value #30

ReagentX opened this issue Nov 6, 2022 · 0 comments
Labels
crate: cli Related to the CLI crate exporter Related to exporter processes new feature Requires creating a new feature

Comments

@ReagentX
Copy link
Owner

ReagentX commented Nov 6, 2022

ME should be overridden by custom text.

/// Determine who sent a message
pub fn who(&self, handle_id: &i32, is_from_me: bool) -> &str {
if is_from_me {
ME
} else {

fn format_annoucement(&self, msg: &'a Message) -> String {
let mut who = self.config.who(&msg.handle_id, msg.is_from_me);
// Rename yourself so we render the proper grammar here
if who == ME {
who = "You"
}

@ReagentX ReagentX added crate: cli Related to the CLI crate exporter Related to exporter processes new feature Requires creating a new feature labels Nov 6, 2022
@ReagentX ReagentX self-assigned this Nov 6, 2022
@ReagentX ReagentX assigned ReagentX and unassigned ReagentX Feb 16, 2023
@ReagentX ReagentX mentioned this issue Mar 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
crate: cli Related to the CLI crate exporter Related to exporter processes new feature Requires creating a new feature
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant