Add ohagi command in tootctl

This commit is contained in:
KMY 2023-09-13 11:03:56 +09:00
parent f0d39bba53
commit 7211dbb240
2 changed files with 37 additions and 0 deletions

33
lib/mastodon/cli/ohagi.rb Normal file
View file

@ -0,0 +1,33 @@
# frozen_string_literal: true
require 'concurrent'
require_relative 'base'
module Mastodon::CLI
class Ohagi < Base
desc 'good', 'Ohagi is good'
def good
say('Thanks!', :green)
end
desc 'bad', 'Ohagi is bad'
def bad
say('Sorry...', :red)
end
desc 'tsubuan', 'Ohagi is tsubuan'
def tsubuan
say('Thanks! You are knight in shining armor!', :green)
end
desc 'koshian', 'Ohagi is koshian'
def koshian
say('Let the WAR begin.', :red)
end
desc 'kokuraan', 'Ohagi is kokuraan'
def kokuraan
say('I hate you.', :yellow)
end
end
end