ソースを参照

Add command descriptions

Frans Bergman 6 年 前
コミット
2ef3ab3c23
1 ファイル変更5 行追加5 行削除
  1. 5 5
      main.rb

+ 5 - 5
main.rb

@@ -31,11 +31,11 @@ bot.command(:reset) do |_event|
     "Finished resetting"
 end
 
-bot.command(:loli) do |_event|
+bot.command(:loli, description: "Calls for the lolice.") do |_event|
     "https://tankernn.eu/~frans/files/loli_police_#{rand(1..3)}.png"
 end
 
-bot.command(:reap) do |_event, stop_id|
+bot.command(:reap, description: "Reaps images posted by the caller in the current channel.") do |_event, stop_id|
     next "No stop_id supplied" if stop_id == nil
     FileUtils::mkdir_p("/tmp/tankbot_images/")
     stop = false
@@ -65,7 +65,7 @@ bot.command(:reap) do |_event, stop_id|
     control_message.edit("https://scr.tankernn.eu/#{filename}")
 end
 
-bot.command(:neko) do |_event, keyword|
+bot.command(:neko, description: "Requests (sometimes lewd) nekos.") do |_event, keyword|
     url = "https://nekos.life/api/v2/img/"
     options = ["cum", "les", "meow", "tickle", "lewd", "feed", "bj",
                "nsfw_neko_gif", "poke", "anal", "slap", "avatar", "pussy",
@@ -79,11 +79,11 @@ bot.command(:neko) do |_event, keyword|
     end
 end
 
-bot.command(:lmgtfy) do |_event, *args|
+bot.command(:lmgtfy, description: "Helps tech-illiterate people to enlightenment.") do |_event, *args|
     "http://lmgtfy.com/?s=d&q=#{args.join('+')}"
 end
 
-bot.command(:copypasta) do |_event, keyword|
+bot.command(:copypasta, description: "Cites the holy texts.") do |_event, keyword|
     pastafile = "copypastas.json"
     file = File.read pastafile
     pastas = JSON.parse file