Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
add activity
Browse files Browse the repository at this point in the history
Added an activity that suggests how to get help using the bot for new
users.
  • Loading branch information
ThatsNoMoon committed Aug 24, 2020
1 parent e7af097 commit cb7f296
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "highlights"
version = "1.0.0-beta.1"
version = "1.0.0-beta.2"
authors = ["Benjamin Scherer <ThatsNoMoon.Alderaan@gmail.com>"]
repository = "https://github.com/ThatsNoMoon/highlights"
license = "OSL-3.0"
Expand Down
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,10 @@ impl EventHandler for Handler {

init_log_channel_id(&ctx).await;

let username = ctx.cache.current_user_field(|u| u.name.clone()).await;

ctx.set_activity(Activity::listening(&format!("@{} help", username))).await;

log::info!("Ready to highlight!");
}
}
Expand Down

0 comments on commit cb7f296

Please sign in to comment.