Chuncord

提供: ArchWiki
2023年6月1日 (木) 14:15時点におけるKgx (トーク | 投稿記録)による版 (英語版から転載)
(差分) ← 古い版 | 最新版 (差分) | 新しい版 → (差分)
ナビゲーションに移動 検索に移動

関連記事

Chuncord is a free and open source command line tool, licensed under EUPLv1.2 (European Union Public License) which allows uploading files larger than the 25MB upload limit to Discord's content delivery network (CDN) by splitting them into parts. These files can be downloaded using Chuncord as well.

警告: Chuncord indirectly bypasses the upload limit and thus likely violates the Discord Terms of Service. Use at your own risk.

Installation

Install the chuncordAUR package.

A prebuilt version of Chuncord is also available in PolarRepo unofficial repositories.

Configuration

Configuration for Chuncord is stored under $HOME/.config/chuncord/config.toml, in TOML format.

ノート: All configuration options can be modified via the command line interface, upstream has not documented the format of the configuration file, therefore implying this file should not be modified directly.

Usage

Chuncord uploads file parts using webhooks. Then, it uploads an index file that contains the filename, file size, and a list of all the file parts. Chuncord can then download the file using that index.

Adding a Discord webhook

Chuncord allows you to add and manage Discord webhooks to upload files to different channels. Before you are able to upload, you must add a webhook:

$ chuncord webhook add <webhook name> <webhook url>

Default webhook

You can also select a default webhook to use when no webhook is specified.

$ chuncord webhook default <webhook name>

The default webhook can be changed at any time.

Uploading files to Discord

Simply run this command:

$ chuncord upload -w <webhook name> <file path>

Or, if you have set a default webhook, you can omit the -w flag:

$ chuncord upload <file path>

Once the file is uploaded, Chuncord will print index file URL and the MID (message ID). The MID is used to delete an uploaded file. If you want to share the file with someone, you only need to provide the index URL.

Downloading uploaded files

$ chuncord download -o <file path> <index URL>

You can omit the file path in order to use the original filename.

Note that to download, you do not need to specify any webhook.

Deleting uploaded files

$ chuncord delete -w <webhook name> <message ID>

As with uploading, you can omit the webhook in order to use the default one. You need to use the same webhook that the file was uploaded with.

See also