Skip to content

Instantly share code, notes, and snippets.

@kb10uy
Last active August 29, 2015 14:04
Show Gist options
  • Save kb10uy/4976989632cc912acec4 to your computer and use it in GitHub Desktop.
Save kb10uy/4976989632cc912acec4 to your computer and use it in GitHub Desktop.
Kbtter4用TOKIOジェネレータ
# coding: utf-8
import clr
import sys
from System import *
from System.Collections.Generic import *
from System.Text import *
from System.Text.RegularExpressions import *
from System.IO import *
def TokioGen(args):
ret=""
if args.ContainsKey("joshima"):
ret+="城島「何この"+args["joshima"]+"?」\n"
if args.ContainsKey("joshima"):
ret+="国分「リーダー知らないの?"+args["kokubu"]+"だよ」\n"
if args.ContainsKey("staff"):
ret+="スタッフ「実はTOKIOの皆さんで"+args["staff"]+"を作るっていう企画が来てまして」\n"
if args.ContainsKey("yamaguchi"):
ret+="山口「作るってどのレベルで?"+args["yamaguchi"]+"から?」\n"
if args.ContainsKey("company"):
ret+="\n"+args["company"]+"\n長瀬「こんにちはー!」\n"
return ret
sdc=Kbtter4.CreateCommand()
sdc.Name="tokiogen"
sdc.Description="TOKIOは何でも作れる"
sdc.Function=TokioGen
sdc.Parameters.Add(Kbtter4.CreateCommandParameter("joshima",False))
sdc.Parameters.Add(Kbtter4.CreateCommandParameter("kokubu",False))
sdc.Parameters.Add(Kbtter4.CreateCommandParameter("staff",False))
sdc.Parameters.Add(Kbtter4.CreateCommandParameter("yamaguchi",False))
sdc.Parameters.Add(Kbtter4.CreateCommandParameter("company",False))
Kbtter4.AddCommand(sdc)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment