diff --git a/Onequestionmark.hx b/Onequestionmark.hx index 382ccd6..e32739c 100644 --- a/Onequestionmark.hx +++ b/Onequestionmark.hx @@ -173,6 +173,15 @@ class Onequestionmark { saveQueue.push("settings"); } } + case "trace": + if (m.author.id == settings.botowner) { + if (m.referenced_message == null) { + Sys.println('[${timestamp()}] trace: ${Json.stringify(getMessage(m.channel_id, m.id))}'); + } else { + Sys.println('[${timestamp()}] trace: ${Json.stringify(getMessage(m.referenced_message.channel_id, m.referenced_message.id))}'); + } + m.react('✅'); + } // System for WIP commands that only work in testing server case "wipcommand": if (m.guild_id == settings.devserver) { @@ -195,17 +204,22 @@ class Onequestionmark { "fields": [ { "name": "**Bot commands:**", - "value": "`?help`: Posts this help document. :book:\n`?chk`: Replies with \"ack\". :speaking_head:\n`?slap `: The classic mIRC troutslap. :fish:\n`?hug `: Posts randomized hug image. :people_hugging:\n`?yes`: Posts randomized \"yes\" image or video. :thumbsup:\n`?no`: Posts randomized \"no\" image or video. :no_entry_sign:\n`?mrkrabs`: Similar to `?chk`. :crab:\n`?tufac`: The official Tufac Theme Song. :busts_in_silhouette:\n`?coin `: Flips between 1 and 100 coins. :coin:\n`?dice. `: Rolls -sided die times :game_die:\n`?8ball`: Answers your yes or no questions. :8ball:\n`?echobox`: Posts randomized quote from the quote database. :loudspeaker:\n`?echobox `: Adds provided quote to the database. :writing_hand:", + "value": "`?help`: Posts this help document. :book:\n`?chk`: Replies with \"ack\". :speaking_head:\n`?slap `: The classic mIRC troutslap. :fish:\n`?hug `: Posts randomized hug image. :people_hugging:\n`?yes`: Posts randomized \"yes\" image or video. :thumbsup:\n`?no`: Posts randomized \"no\" image or video. :no_entry_sign:\n`?mrkrabs`: Similar to `?chk`. :crab:\n`?tufac`: The official Tufac Theme Song. :busts_in_silhouette:\n`?coin `: Flips between 1 and 100 coins. :coin:\n`?dice. `: Rolls -sided die times :game_die:\n`?8ball`: Answers your yes or no questions. :8ball:\n`?echobox`: Posts randomized quote from the quote database. :loudspeaker:\n`?echobox `: Adds provided quote to the database. :writing_hand:\n`?youtube `: Return first result of a YouTube search. :cinema:", + "inline": false + }, + { + "name": "**Pirate vs. Ninja:**", + "value": "`?pirate `: Look up stats for a pirate. :pirate_flag:\n`?ninja `: Look up stats for a ninja. :ninja:\n`?pvn | `: Let them fight! :crossed_swords:\n`?nvp | `: Same as above but reversed order.", "inline": false }, { "name": "**Basic Response Aliases:**", - "value": "`?angery`: *I taste a vegetal.* :rage:\n`?subway`: Arin's infamous Subway rant. :sandwich:\n`?illuminati`: Always watching. :eye:\n`?cube`: *The Cube*\n`?coolsville`: Population: Us :sunglasses:\n`?communism`: The old 3D rotating gif.\n`?opinions`: Here they come. :scream:", + "value": "`?angery`: *I taste a vegetal.* :rage:\n`?subway`: Arin's infamous Subway rant. :sandwich:\n`?illuminati`: Always watching. :eye:\n`?cube`: *The Cube*\n`?coolsville`: Population: Us :sunglasses:\n`?communism`: The old 3D rotating gif.\n`?opinions`: Here they come. :scream:\n`?fineart`: The great masterpiece. :art:\n`?artishard`: Art *is* hard. :corn:\n`?florida`: :carpentry_saw::rabbit:\n`?stop`: :stop_sign: :smiley:\n`?indeed`", "inline": false }, { "name": "**Auth-Requiring Commands:**", - "value": "`?motd`: Enables MOTD for current channel\n`?devmode`: Toggles Dev Mode\n`?quit`: Shutdown command", + "value": "`?motd`: Enables MOTD for current channel.\n`?devmode`: Toggles Dev Mode.\n`?trace`: Debugging tool.\n`?quit`: Shutdown command.", "inline": true }, { @@ -236,13 +250,6 @@ class Onequestionmark { Sys.println('[${timestamp()}] ytdebug: No result to debug'); m.reply({content:"ytdebug: No result to debug"}, false); } - case "trace": - if (m.referenced_message == null) { - Sys.println('[${timestamp()}] trace: ${Json.stringify(getMessage(m.channel_id, m.id))}'); - } else { - Sys.println('[${timestamp()}] trace: ${Json.stringify(getMessage(m.referenced_message.channel_id, m.referenced_message.id))}'); - } - m.react('✅'); case "pirate": if (msg.length > 0) {pvn("p",msg,m);} case "ninja":