File: set_input.rb

package info (click to toggle)
mikutter 5.1.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,780 kB
  • sloc: ruby: 22,912; sh: 186; makefile: 21
file content (15 lines) | stat: -rw-r--r-- 611 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- coding:utf-8 -*-

Plugin.create :set_input do
  settings _('入力') do
    adjustment _('投稿をリトライする回数'), :message_retry_limit, 1, 99
    settings _('短縮URL') do
      boolean _('常にURLを短縮する'), :shrinkurl_always
    end
    settings _('フッタ') do
      input _('デフォルトで挿入するフッタ'), :footer
      boolean(_('リプライの場合はフッタを付与しない'), :footer_exclude_reply)
        .tooltip(_('リプライの時に[試験3日前]とか入ったらアレでしょう。そんなのともおさらばです。'))
    end
  end
end