1.0.1 • Published 2 years ago

djs-transcript v1.0.1

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
2 years ago

djs-transcript

NPM\ CodeQL\ Transcipt Generator for Discord.js\ Document: English / 日本語\ Sample Page: https://hiro527.jp/djs-transcript/sample.html

IMPORTANT / 重要

THIS PACKAGE IS EXTREMELY IMMIDIATELY UNSTABLE. ALSO, I'M REWORKING SO PLEASE WAIT FOR NEXT ONE. このパッケージは現在非常に不安定です。また、現在リワーク中ですので次期リリースまでお待ち下さい。

User Disclaimer / ユーザー免責事項

Before you use this library in your own Discord bot, you must let server members know that their messages can be transcriped as an file. This is very important to secure their privacy. You will be treated as you've agreed since download this library. And also, I won't be responsible about trouble that is caused by against this agreement.\ このライブラリをDiscord botで使用する前に、サーバーメンバーに対してメッセージがログファイルとして転写されることを知らせておく必要があります。これは彼らのプライバシーを守るために非常に重要なことです。このライブラリをダウンロードした時点であなたはこれに同意したものと扱われます。また、開発者はこれに反したことにより発生するトラブルに関して一切の責任を負いかねます。

v1.0.0

  • Quote and italic are supported. / 引用と斜体に対応しました。
  • Fixed an issue where both color of code block and embed are same. / Embedとコードブロックで背景色が被っている問題を修正しました。

Requirements / 必要事項

  • Node.js: >= 16.6.0
  • Discord.js: >= 13.0.0

Installation / インストール方法

npm i djs-transcript

Code Example / コード例

JavaScript

const Discord = require('discord.js');
const { transcript } = require('djs-transcript');

const client = new Discord.Client({
    intents: Discord.Intents.FLAGS.GUILDS | Discord.Intents.FLAGS.GUILD_MESSAGES | Discord.Intents.FLAGS.GUILD_MEMBERS
});

client.on('ready', async () => {
    console.log('Ready')
    const channel = client.channels.cache.get('ChannelID');
    const path = await transcript(client, channel, 'Path-to-output-directory', 'Locale');
    console.log(path);
})

client.login('DISCORD_TOKEN');

TypeScript

import { Client, Intents } from 'discord.js';
import transcript from 'djs-transcript';

const client = new Client({
    intents: Intents.FLAGS.GUILDS | Intents.FLAGS.GUILD_MESSAGES | Intents.FLAGS.GUILD_MEMBERS
});

client.on('ready', async () => {
    console.log('Ready')
    const channel = client.channels.cache.get('ChannelID');
    const path = await transcript(client, channel, 'Path-to-output-directory', 'Locale');
    console.log(path);
})

client.login('DISCORD_TOKEN');
  • Locale must be Unicode Locale Identifier. / 指定するロケールはUnicodeロケール識別子である必要があります。
  • Path-To-Output should be full path. / Path-to-Outputはフルパスを指定することをおすすめします。

Contact / コンタクト

You can contact to me in both English and Japanese.\ 連絡の際は日本語と英語のどちらでも大丈夫です。\ Discord: Hiro527#7777\ Twitter: @fps_Hiro527

1.0.1

2 years ago

1.1.0-beta.1

2 years ago

1.0.0

2 years ago

1.0.0-beta.2

2 years ago

1.0.0-beta.1

2 years ago

0.4.2

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.6

2 years ago

0.3.5

2 years ago

0.3.4

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.1-beta.4

2 years ago

0.1.1-beta.3

2 years ago

0.1.1-beta.2

2 years ago

0.1.1-beta.1

2 years ago