Skip to content

Instantly share code, notes, and snippets.

@kb10uy
Created July 21, 2014 14:14
Show Gist options
  • Save kb10uy/fc529a7bd6674e77ed5b to your computer and use it in GitHub Desktop.
Save kb10uy/fc529a7bd6674e77ed5b to your computer and use it in GitHub Desktop.
突然の死ジェネレータ Kbtter4
# 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