Last active
August 29, 2015 14:04
-
-
Save kb10uy/4976989632cc912acec4 to your computer and use it in GitHub Desktop.
Kbtter4用TOKIOジェネレータ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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