Created
July 21, 2014 14:14
-
-
Save kb10uy/fc529a7bd6674e77ed5b to your computer and use it in GitHub Desktop.
突然の死ジェネレータ Kbtter4
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 * | |
Name="突然の死ジェネレータコマンドプラグイン" | |
def SuddenDeath(args): | |
upt="_" | |
cet=">" | |
btt=" ̄" | |
for c in args["text"]: | |
upt+="人" | |
cet+=c.ToString() | |
btt+="Y^" | |
upt+="_" | |
cet+="<" | |
btt+=" ̄" | |
return upt+"\n"+cet+"\n"+btt | |
sdc=Kbtter4.CreateCommand() | |
sdc.Name="sdgen" | |
sdc.Description="突然の死っぽいテキストを生成します 幅は適宜調整してください" | |
sdc.Function=SuddenDeath | |
sdc_text=Kbtter4.CreateCommandParameter("text",True) | |
sdc.Parameters.Add(sdc_text) | |
Kbtter4.AddCommand(sdc) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment