add distinct identifying names. log errors in run_macro

This commit is contained in:
claude Bot committed 2022-02-20 12:19:39 +00:00
1 parent 06c4deeaa9
commit 6ae2353c92
7 files changed
+102 -40

No files matched your search

+1 -1
View File
@@ -15,7 +15,7 @@ pub async fn guild_only(ctx: Context<'_>) -> Result<bool, Error> {
async fn macro_check(ctx: Context<'_>) -> bool {
if let Context::Application(app_ctx) = ctx {
if let Some(guild_id) = ctx.guild_id() {
if ctx.command().identifying_name != "macro_finish" {
if ctx.command().identifying_name != "finish_macro" {
let mut lock = ctx.data().recording_macros.write().await;
if let Some(command_macro) = lock.get_mut(&(guild_id, ctx.author().id)) {