「Phrik」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(→‎Factoids: 翻訳)
(→‎Quotes: 翻訳)
124行目: 124行目:
 
!rmfact ''factoid_key''
 
!rmfact ''factoid_key''
   
== Quotes ==
+
== 引用 ==
   
  +
phrik は、QuoteGrabs プラグインを使用して、ユーザーの発言を保存および取得するための使いやすいシステムを提供します。引用符を取得/取得するために phrik で識別される必要はありません。すべての QuoteGrabs コマンドは、コマンド {{ic|!list QuoteGrabs}} を使用してリストできます。
phrik uses the QuoteGrabs plugin to provide an easy to use system for storing and retrieving things users say. You do not need to be identified with phrik to grab/retrieve quotes. All the QuoteGrabs commands can be listed using the command {{ic|!list QuoteGrabs}}.
 
   
  +
({{ic|''channel''}} 引数は、以下にリストされているコマンドの結果に何の違いも生じないようです。)
(The {{ic|''channel''}} argument does not seem to make any difference to the result of any of the commands listed below.)
 
   
  +
{{Warning|多くの引用はトピックから外れたチャンネルやローカルなチャンネルでキャプチャされたものであるため、それらは不適切であるか、仕事に安全でさえない可能性があります (NSFW) 表示結果が混乱を招く可能性があるため、トピック以外のチャネルではランダムな引用を表示しないでください。}}
{{Warning|Because many quotes were captured in offtopic or localized channels they may be inappropriate or even not safe for work (NSFW). Do not display a random quote in non-offtopic channels because the displayed result may be disruptive.}}
 
   
 
=== Grab ===
 
=== Grab ===
   
  +
{{ic|!grab ''nickname''}} コマンドは、引用を ''取得'' するために使用されます。これは、{{ic|''nickname''}} が最後に言ったことは phrik の内部データベースに保存されることを意味します 例:
The {{ic|!grab ''nickname''}} command is used to "grab" a quote. This means that the last thing {{ic|''nickname''}} said will be stored in phrik's internal database. Example:
 
   
 
!grab Arch-TK
 
!grab Arch-TK
   
{{ic|!grab}} is synonymous to {{ic|!QuoteGrabs grab}}.
+
{{ic|!grab}} {{ic|!QuoteGrabsgrab}} と同義です。
   
=== Quote ===
+
=== 引用 ===
   
The {{ic|!quote ''nickname''}} command is used to view the last grabbed quote.
+
{{ic|!quote ''nickname''}} コマンドは、最後に取得した引用を表示するために使用されます。
   
{{ic|!quote}} is synonymous to {{ic|!QuoteGrabs quote}}, and so is {{ic|!q}}
+
{{ic|!quote}} {{ic|!QuoteGrabs quote}} と同義であり、{{ic|!q}} も同様です
   
=== Random ===
+
=== ランダム ===
   
The {{ic|!QuoteGrabs random ''nickname''}} command is used to view a random selection of quotes. Given a {{ic|''<nickname>''}} the selection is narrowed to just one user.
+
{{ic|!QuoteGrabs random ''nickname''}} コマンドは、ランダムに選択された引用符を表示するために使用されます。 {{ic|''<nickname>''}} を指定すると、選択は 1 人のユーザーのみに絞り込まれます。
   
The alias {{ic|!rq}} can be used in place of {{ic|!QuoteGrabs random}} and the alias {{ic|!multirq}} gives a selection of 5 random quotes instead of just 1.
+
エイリアス {{ic|!rq}} {{ic|!QuoteGrabs random}} の代わりに使用でき、エイリアス {{ic|!multirq}} 1 つだけではなく 5 つのランダムな引用符を選択します。
   
=== Search ===
+
=== 検索 ===
   
  +
{{ic|!QuoteGrabs search ''[channel]'' ''text''}} コマンドは、phrik の引用データベースで指定された文字列を含む引用を検索するために使用されます。このコマンドはリテラル検索を実行します。これは、"Arch-TK broken" を検索しても、そのリテラル結果が見つからない限り、検索結果が返されないことを意味します。例えば:
The {{ic|!QuoteGrabs search ''[channel]'' ''text''}} command is used to search phrik's quote database for a quote containing a given string. This command does a literal search, this means that searching for "Arch-TK broken" will not return any search results unless that literal result is found. For example:
 
   
 
!QuoteGrabs search "Arch-TK Windows"
 
!QuoteGrabs search "Arch-TK Windows"
   
Will not return {{ic|#35732: Windows ME, best windows.}}.
+
{{ic|#35732: Windows ME, best windows}} は返されません。
   
The alias {{ic|!qfind}} can be used in place of {{ic|!QuoteGrabs search}}.
+
エイリアス {{ic|!qfind}} は、{{ic|!QuoteGrabs search}} の代わりに使用できます。
   
=== List ===
+
=== リスト ===
   
The {{ic|!QuoteGrabs list ''[channel]'' ''nickname''}} command is used to list all the quotes for a given user.
+
{{ic|!QuoteGrabs list ''[channel]'' ''nickname''}} コマンドは、特定のユーザーのすべての引用をリストするために使用されます。
   
The alias {{ic|!qlist}} can be used in place of {{ic|!QuoteGrabs list}}.
+
エイリアス {{ic|!qlist}} は、{{ic|!QuoteGrabs list}} の代わりに使用できます。
   
 
=== Say ===
 
=== Say ===
   
  +
{{ic|!QuoteGrabssay ''[channel]'' ''id''}} コマンドは、検索関数とリスト関数によって返された ID を使用して引用テキスト全体を表示するために使用されます。
The {{ic|!QuoteGrabs say ''[channel]'' ''id''}} command is used to view the full quote text using an ID returned by the search and list functions.
 
   
  +
例えば:
For example:
 
   
 
!QuoteGrabs say 34656
 
!QuoteGrabs say 34656
   
  +
返し:
Will return:
 
   
 
<sudokode> ew you might as well be using windows
 
<sudokode> ew you might as well be using windows
   
  +
エイリアス {{ic|!qsay}} は、{{ic|!QuoteGrabssay}} の代わりに使用できます。
The alias {{ic|!qsay}} can be used in place of {{ic|!QuoteGrabs say}}.
 
   
 
=== Get ===
 
=== Get ===
   
The {{ic|!QuoteGrabs get ''[channel]'' ''id''}} command is very similar to the ''Say'' command. It returns the full text of the quote along with additional information.
+
{{ic|!QuoteGrabs get ''[channel]'' ''id''}} コマンドは ''Say'' コマンドとよく似ています。追加情報とともに引用文の全文が返されます。
   
  +
例えば:
For example:
 
   
 
!QuoteGrabs get 34656
 
!QuoteGrabs get 34656
   
  +
返し:
Will return:
 
   
 
<sudokode> ew you might as well be using windows (Said by: sudokode!~ponies@unaffiliated/sudokode; grabbed by quantum-mechanic!~neutrino@unaffiliated/electron/x-8286743 at 11:21 AM, November 12, 2014
 
<sudokode> ew you might as well be using windows (Said by: sudokode!~ponies@unaffiliated/sudokode; grabbed by quantum-mechanic!~neutrino@unaffiliated/electron/x-8286743 at 11:21 AM, November 12, 2014
   
The alias {{ic|!qget}} can be used in place of {{ic|!QuoteGrabs get}} but does not permit using a {{ic|''channel''}} argument.
+
エイリアス {{ic|!qget}} {{ic|!QuoteGrabs get}} の代わりに使用できますが、{{ic|''channel''}} 引数の使用は許可されません。
   
 
== See also ==
 
== See also ==

2024年2月20日 (火) 07:10時点における版

phrik は、ほとんどの IRC チャンネル に存在する IRC ボットです。これは Limnoria (以前は [1]) であり、頻繁に繰り返される引用などの便利なfactoids とユーティリティが満載されています。フレーズを作成したり、人々に役立つリンクやその他の管理タスクを迅速に提供します。factoids と呼ばれるカスタム コマンド は、登録後に編集または追加できます (NickServ 登録と混同しないでください)

アカウント

警告: アカウントに関連する操作については、プライベートメッセージで /msg phrik を使用して phrik をクエリすることを忘れないでください。この場合、コマンドの前に ! を付ける必要はありません。

登録する

新しい factoids を作成したり、既存の factoids を変更するには、phrik アカウントが必要です。IRC ニックネームと同じ名前である必要はありません。

register name password

例: register demize thing は、demize という名前のアカウントをパスワード stuff で登録します。

識別する

現在のセッション中、または unidentify するまで phrik で識別するには、次のコマンドを実行する必要があります:

identify name password

例: identify demize stuff

ホスト名で識別する

接続するたびに phrik で識別する必要がない場合は、phrik アカウントにホストマスクを追加すると、そのホストから接続するたびに自動的に識別されるようになります。これらは、nick!ident@host の形式です。

ただし、追加するホストマスクには注意してください。そのホストマスクで接続している人は誰でもあなたとして識別されるため、大幅に変更される可能性が高いため、ISP からホストを追加しないでください。ホストマスクで自動識別するには、サーバーから IRC するか、クロークを使用する必要があります。そうしないと、ホストが大幅に変更される可能性が高く、他のユーザーがあなたであると識別される可能性があります。ホストで識別される場合は、同じサーバーから接続している他のユーザーがあなたであることを偽ることができないように、ident サーバーを実行することもできます。

2 つの良い例は、demize!kyrias@theos.kyriasis.com または *!*@archlinux/op/demize です。

新しいホストマスクの追加

ホストマスクを追加するには、次のコマンドをプライベートで phrik に送信します:

hostmask add hostmask

例: !hostmask add demize!kyrias@theos.kyriasis.com

ホストマスクの削除

hostmask remove name hostmask
hostmask remove demize demize!kyrias@theos.kyriasis.com

ホストマスクの一覧表示

hostmask list

Factoids

phrik には MoobotFactoids プラグインがあり、ユーザーは小さなメッセージである factoids を作成、呼び出し、他の人に与えることができます。

phrik factoids を呼び出すようにするには、次のように、感嘆符をプレフィックスとして付けた factoids のキーを、そのキーが存在するチャネルまたはプライベートなチャネルに送信します。

!welcome

factoids の検索

既存の factoids を検索するには、listkeys および listvalues コマンドを使用できます。

!listkeys welcome

もしくは

!listvalues welcome

作成者ごとの factoids のリスト

!listauth を使用して、ニックが作成したすべての factoids を検索します。phrik は作成された factoids の名前を返さないため、誰かが誤って factoids を作成した場合にこれは最適です。

!listauth phrik

factoids に関する情報を調べる

factoids の作成者と作成時刻を調べたい場合は、factinfo コマンドを使用できます:

!factinfo welcome

新しい factoids の作成

新しい factoids の作成は、factoids を呼び出すキー、is を入力してからメッセージを入力するだけで簡単です。多くの場合、メッセージの先頭に <reply> を付加して、phrik が <key> is <value> を出力するのではなく、指定したとおりにメッセージを書き込むようにしたい場合

次のような factoids を作成します:

!example is "<reply>This is an example factoid"

チャンネル内で誰かが !example と言ったときに、phrik がチャンネルまたは PM に This is an example factoid を送信します。<reply> が省略された場合、phrik は代わりに example is This is an example fatoid と言います。

Factoid ロック

factoids をロックして、他の人が factoids を削除または上書きできないようにすることもできますが、factoids が変更される正当な理由がある場合には邪魔になるだけなので、通常はその必要はありません。通常、ロックとロック解除は MoobotFactoids プラグインからコマンドを呼び出すことによって行われますが、便宜上、!fact!MoobotFactoids というエイリアスが付けられています。

変更する必要があると思われる factoids がロックされている場合は、まずロックした人に連絡してください (!factinfo が教えてくれます) その人と連絡が取れない、または変更することを拒否したが、それでも変更する必要があると思われる場合は、ルール違反などによる場合は、運営に連絡してください。(ops のリストを取得するには、!listops を phrik に送信します。)

!fact lock factoid_key

もしくは

!fact unlock factoid_key

factoids の変更

Factoid を変更するには 2 つの方法があります。1 つ目は正規表現の代替を使用する方法で、2 つ目は正規表現を完全に置き換える方法です。正規表現置換には、元の作成者情報と最後に変更した人に関する情報が保持されるという優れた特性があります。

正規表現の代替

ファクトイド例の単語 "This" を "That" に置き換えるには、次のように正規表現置換を使用できます:

!example =~ s/This/That/

factoids の置き換え

factoids を新しいものに完全に置き換えるには、次のように no コマンドを使用します:

!no example is "<reply>a really bad example factoid"

factoids の削除

ファクトイドの削除は !MoobotFactoids delete factoid_key で行いますが、これでは長すぎるため、!rmfact という便宜上のエイリアスが存在します。正当な理由なく他の factoids を削除しないでください。不明な点がある場合は、まず質問してください。

!rmfact factoid_key

引用

phrik は、QuoteGrabs プラグインを使用して、ユーザーの発言を保存および取得するための使いやすいシステムを提供します。引用符を取得/取得するために phrik で識別される必要はありません。すべての QuoteGrabs コマンドは、コマンド !list QuoteGrabs を使用してリストできます。

(channel 引数は、以下にリストされているコマンドの結果に何の違いも生じないようです。)

警告: 多くの引用はトピックから外れたチャンネルやローカルなチャンネルでキャプチャされたものであるため、それらは不適切であるか、仕事に安全でさえない可能性があります (NSFW) 表示結果が混乱を招く可能性があるため、トピック以外のチャネルではランダムな引用を表示しないでください。

Grab

!grab nickname コマンドは、引用を 取得 するために使用されます。これは、nickname が最後に言ったことは phrik の内部データベースに保存されることを意味します 例:

!grab Arch-TK

!grab!QuoteGrabsgrab と同義です。

引用

!quote nickname コマンドは、最後に取得した引用を表示するために使用されます。

!quote!QuoteGrabs quote と同義であり、!q も同様です

ランダム

!QuoteGrabs random nickname コマンドは、ランダムに選択された引用符を表示するために使用されます。 <nickname> を指定すると、選択は 1 人のユーザーのみに絞り込まれます。

エイリアス !rq!QuoteGrabs random の代わりに使用でき、エイリアス !multirq は 1 つだけではなく 5 つのランダムな引用符を選択します。

検索

!QuoteGrabs search [channel] text コマンドは、phrik の引用データベースで指定された文字列を含む引用を検索するために使用されます。このコマンドはリテラル検索を実行します。これは、"Arch-TK broken" を検索しても、そのリテラル結果が見つからない限り、検索結果が返されないことを意味します。例えば:

!QuoteGrabs search "Arch-TK Windows"

#35732: Windows ME, best windows は返されません。

エイリアス !qfind は、!QuoteGrabs search の代わりに使用できます。

リスト

!QuoteGrabs list [channel] nickname コマンドは、特定のユーザーのすべての引用をリストするために使用されます。

エイリアス !qlist は、!QuoteGrabs list の代わりに使用できます。

Say

!QuoteGrabssay [channel] id コマンドは、検索関数とリスト関数によって返された ID を使用して引用テキスト全体を表示するために使用されます。

例えば:

!QuoteGrabs say 34656

返し:

<sudokode> ew you might as well be using windows

エイリアス !qsay は、!QuoteGrabssay の代わりに使用できます。

Get

!QuoteGrabs get [channel] id コマンドは Say コマンドとよく似ています。追加情報とともに引用文の全文が返されます。

例えば:

!QuoteGrabs get 34656

返し:

<sudokode> ew you might as well be using windows (Said by: sudokode!~ponies@unaffiliated/sudokode; grabbed by quantum-mechanic!~neutrino@unaffiliated/electron/x-8286743 at 11:21 AM, November 12, 2014

エイリアス !qget!QuoteGrabs get の代わりに使用できますが、channel 引数の使用は許可されません。

See also