mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 19:22:40 +01:00
data/factoids: replace some /code factoids with func commands
This commit is contained in:
parent
7a3f64b45c
commit
9cadae88e5
8
data/factoids
vendored
8
data/factoids
vendored
@ -10543,7 +10543,7 @@
|
|||||||
},
|
},
|
||||||
"lc" : {
|
"lc" : {
|
||||||
"_name" : "lc",
|
"_name" : "lc",
|
||||||
"action" : "/code bash echo ${*,,}",
|
"action" : "/call func lc",
|
||||||
"created_on" : "1511922349.23886",
|
"created_on" : "1511922349.23886",
|
||||||
"enabled" : "1",
|
"enabled" : "1",
|
||||||
"last_referenced_in" : "##c-offtopic",
|
"last_referenced_in" : "##c-offtopic",
|
||||||
@ -16891,7 +16891,7 @@
|
|||||||
},
|
},
|
||||||
"sed" : {
|
"sed" : {
|
||||||
"_name" : "sed",
|
"_name" : "sed",
|
||||||
"action" : "/code perl\r\n\r\nno warnings;\r\n\r\nif (\"@ARGV\" =~ /^s(.)(.*?)(?<!\\\\)\\1(.*?)(?<!\\\\)\\1(\\S*)\\s+(.*)/p) {\r\n ($_a, $_r, $_g, $_m, $_t) = ($5,\"'\\\"$3\\\"'\", index($4,\"g\") != -1, $4, $2);\r\n\r\n if ($_m=~/P/) {\r\n $_r =~ s/^'\"(.*)\"'$/$1/;\r\n $_m=~s/P//g;\r\n\r\n if($_g) {\r\n $_a =~ s|(?$_m)($_t)|$1=~/^[A-Z][^A-Z]/?ucfirst$_r:($1=~/^[A-Z]+$/?uc$_r:$_r)|gie;\r\n } else {\r\n $_a =~ s|(?$_m)($_t)|$1=~/^[A-Z][^A-Z]/?ucfirst$_r:($1=~/^[A-Z]+$/?uc$_r:$_r)|ie;\r\n }\r\n } else {\r\n if ($_g) {\r\n $_a =~ s/(?$_m)$_t/$_r/geee;\r\n } else {\r\n $_a=~s/(?$_m)$_t/$_r/eee;\r\n }\r\n }\r\n print $_a;\r\n} else {\r\n print \"syntax error\";\r\n}\r\n\n",
|
"action" : "/call func sed",
|
||||||
"created_on" : "1511483645.01936",
|
"created_on" : "1511483645.01936",
|
||||||
"edited_by" : "k!~krok@unaffiliated/krok",
|
"edited_by" : "k!~krok@unaffiliated/krok",
|
||||||
"edited_on" : "1512587894.92103",
|
"edited_on" : "1512587894.92103",
|
||||||
@ -20500,7 +20500,7 @@
|
|||||||
},
|
},
|
||||||
"uc" : {
|
"uc" : {
|
||||||
"_name" : "uc",
|
"_name" : "uc",
|
||||||
"action" : "/code bash echo ${*^^}",
|
"action" : "/call func uc",
|
||||||
"created_on" : "1511922423.91118",
|
"created_on" : "1511922423.91118",
|
||||||
"enabled" : "1",
|
"enabled" : "1",
|
||||||
"last_referenced_in" : "pragma-",
|
"last_referenced_in" : "pragma-",
|
||||||
@ -20770,7 +20770,7 @@
|
|||||||
},
|
},
|
||||||
"unquote" : {
|
"unquote" : {
|
||||||
"_name" : "unquote",
|
"_name" : "unquote",
|
||||||
"action" : "/code perl print \"@ARGV\"",
|
"action" : "/call func unquote",
|
||||||
"created_on" : 1565882489.74915,
|
"created_on" : 1565882489.74915,
|
||||||
"enabled" : 1,
|
"enabled" : 1,
|
||||||
"last_referenced_in" : "##c-offtopic",
|
"last_referenced_in" : "##c-offtopic",
|
||||||
|
Loading…
Reference in New Issue
Block a user