disnake

Форк
0
/
quickstart.po 
90 строк · 5.9 Кб
1
msgid ""
2
msgstr ""
3
"Project-Id-Version: discordpy\n"
4
"Report-Msgid-Bugs-To: \n"
5
"POT-Creation-Date: 2019-06-22 09:35-0400\n"
6
"PO-Revision-Date: 2020-10-24 02:41\n"
7
"Last-Translator: \n"
8
"Language-Team: Japanese\n"
9
"MIME-Version: 1.0\n"
10
"Content-Type: text/plain; charset=UTF-8\n"
11
"Content-Transfer-Encoding: 8bit\n"
12
"Plural-Forms: nplurals=1; plural=0;\n"
13
"X-Crowdin-Project: discordpy\n"
14
"X-Crowdin-Project-ID: 362783\n"
15
"X-Crowdin-Language: ja\n"
16
"X-Crowdin-File: quickstart.pot\n"
17
"X-Crowdin-File-ID: 50\n"
18
"Language: ja_JP\n"
19

20
#: ../../quickstart.rst:6
21
msgid "Quickstart"
22
msgstr "クイックスタート"
23

24
#: ../../quickstart.rst:8
25
msgid "This page gives a brief introduction to the library. It assumes you have the library installed, if you don't check the :ref:`installing` portion."
26
msgstr "ここでは、ライブラリの概要を説明します。ライブラリがインストールされていることを前提としているので、インストールを終えていない人は :ref:`installing` を参照してください。"
27

28
#: ../../quickstart.rst:12
29
msgid "A Minimal Bot"
30
msgstr "最小限のBot"
31

32
#: ../../quickstart.rst:14
33
msgid "Let's make a bot that replies to a specific message and walk you through it."
34
msgstr "では早速、特定のメッセージに対して、返事をするBotを作ってみましょう。"
35

36
#: ../../quickstart.rst:16
37
msgid "It looks something like this:"
38
msgstr "結論から書くと、このように書くことができます。"
39

40
#: ../../quickstart.rst:38
41
msgid "Let's name this file ``example_bot.py``. Make sure not to name it ``disnake`` as that'll conflict with the library."
42
msgstr "ファイルの名前を ``example_bot.py`` としましょう。ライブラリと競合してしまうので、 ``disnake`` というファイル名にはしないでください。"
43

44
#: ../../quickstart.rst:41
45
msgid "There's a lot going on here, so let's walk you through it step by step."
46
msgstr "さて、では順を追って一つづつ説明していきます。"
47

48
#: ../../quickstart.rst:43
49
msgid "The first line just imports the library, if this raises a `ModuleNotFoundError` or `ImportError` then head on over to :ref:`installing` section to properly install."
50
msgstr "最初の行は、ただライブラリをインポートしただけです。 `ModuleNotFoundError` や `ImportError` が発生した場合は :ref:`installing` を見て、ライブラリをきちんとインストールしましょう。"
51

52
#: ../../quickstart.rst:45
53
msgid "Next, we create an instance of a :class:`Client`. This client is our connection to Discord."
54
msgstr "次に、 :class:`Client` のインスタンスを作成します。クライアントはDiscordへの接続を行います。"
55

56
#: ../../quickstart.rst:46
57
msgid "We then use the :meth:`Client.event` decorator to register an event. This library has many events. Since this library is asynchronous, we do things in a \"callback\" style manner."
58
msgstr "続いて、 :meth:`Client.event` デコレータを使用してイベントを登録します。ライブラリにはたくさんのイベントが用意されています。このライブラリは非同期のため、「コールバック」のスタイルで処理を行います。"
59

60
#: ../../quickstart.rst:49
61
msgid "A callback is essentially a function that is called when something happens. In our case, the :func:`on_ready` event is called when the bot has finished logging in and setting things up and the :func:`on_message` event is called when the bot has received a message."
62
msgstr "コールバックは基本的に、何かが発生した場合に呼び出される関数です。今回の場合だと、Botがログインして、設定などを終えたときに :func:`on_ready` が、メッセージを受信したときに :func:`on_message` が呼び出されます。"
63

64
#: ../../quickstart.rst:52
65
msgid "Since the :func:`on_message` event triggers for *every* message received, we have to make sure that we ignore messages from ourselves. We do this by checking if the :attr:`Message.author` is the same as the :attr:`Client.user`."
66
msgstr ":func:`on_message` イベントは受信したメッセージすべてに対して呼び出されるため、Bot自身からのメッセージは無視するように設定する必要があります。これは、メッセージの送信者である :attr:`Message.author` と、Bot自身を表す :attr:`Client.user` が等しいか比較することで実装できます。"
67

68
#: ../../quickstart.rst:55
69
msgid "Afterwards, we check if the :class:`Message.content` starts with ``'$hello'``. If it is, then we reply in the channel it was used in with ``'Hello!'``."
70
msgstr "その後、 :class:`Message.content` が ``'$hello'`` から始まるかどうかを確認し、当てはまればそのチャンネルに ``'Hello!'`` という返事を送信します。"
71

72
#: ../../quickstart.rst:57
73
msgid "Finally, we run the bot with our login token. If you need help getting your token or creating a bot, look in the :ref:`disnake-intro` section."
74
msgstr "最後に、ログイン用トークンを用いてBotを起動します。トークンの取得やBotの作成について分からないことがあれば、 :ref:`disnake-intro` を参照してください。"
75

76
#: ../../quickstart.rst:61
77
msgid "Now that we've made a bot, we have to *run* the bot. Luckily, this is simple since this is just a Python script, we can run it directly."
78
msgstr "さて、これでBotは完成なので、Botを *実行* してみましょう。幸いにも、これはただのPythonスクリプトなので実行は簡単です。直接実行が可能です。"
79

80
#: ../../quickstart.rst:64
81
msgid "On Windows:"
82
msgstr "Windowsの場合:"
83

84
#: ../../quickstart.rst:70
85
msgid "On other systems:"
86
msgstr "その他のシステムの場合:"
87

88
#: ../../quickstart.rst:76
89
msgid "Now you can try playing around with your basic bot."
90
msgstr "これで、あなたが作ったBotと遊ぶことができます。"
91

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.