pretty-format `i:am:list` & make output local-only
parent
d3357a90fe
commit
6cb00bc91d
|
@ -390,10 +390,11 @@ class Bangtags
|
||||||
next
|
next
|
||||||
elsif who == 'list'
|
elsif who == 'list'
|
||||||
@status.visibility = :direct
|
@status.visibility = :direct
|
||||||
|
@status.local_only = true
|
||||||
@status.content_type = 'text/markdown'
|
@status.content_type = 'text/markdown'
|
||||||
names = @vars.keys.select { |k| k.start_with?('_they:are:') }
|
names = @vars.keys.select { |k| k.start_with?('_they:are:') }
|
||||||
names.map! { |k| " <code>#{k[10..-1]}</code> is <em>#{@vars[k]}</em>" }
|
names.map! { |k| "<code>#{k[10..-1]}</code> is <em>#{@vars[k]}</em>" }
|
||||||
@chunks << (['`i:am:list`:'] + names).join("\n") + "\n"
|
@chunks << (["\n# <code>#!</code><code>i:am:list</code>:\n<hr />\n"] + names).join("\n") + "\n"
|
||||||
next
|
next
|
||||||
end
|
end
|
||||||
name = who.downcase.gsub(/\s+/, '').strip
|
name = who.downcase.gsub(/\s+/, '').strip
|
||||||
|
|
Loading…
Reference in New Issue