Quote allows you to quote messages in a better way
Quote a message that contains text
from the same channel and replace your message with an embed.
Quote a message by the URL and replace your message with an embed.
Shows this help
- Manage Webhooks
- Read Messages
- Send Messages
- Manage Messages
- Embed Links
- Read Message History
Quote uses Discord's Webhook API to send messages with a customised username and an avatar. We delete the original message and use this technique to pretend the message as if it was sent by another user.
Due to Discord's API limitation, the number of messages you can go back is restricted up to 100. Alternatively, we provide another way that uses URL to quote so you can use it to avoid the issue.
There's several possible scenarios. Check the following cases:
See Required Permissions section above and give enough permissions for running Quote.
Since Quote using some admin-level features such as "Manage Messages", you need to disable 2FA otherwise it will not work properly.
Since Quote uses Discord's Webhook API to replace your message, the embed was actually sent by the bot though it is pretended as if you sent it.
I don't know ¯\_(ツ)_/¯ Tell them to hire me.
- Node.js >= 12
- Yarn
- Git
First of all, clone this repository using git.
git clone https://github.com/nakayoshi/quote.git
Copy the example of configuration file then edit it
cp .env.example .env
vim .env
Here's the detail of the environment variables
env | nullability | description |
---|---|---|
DISCORD_TOKEN |
required | Access token of your Discord bot |
DISCORD_WEBHOOK_NAME |
optional | Namespace of Webhook API which will be used for identifying channels. Defaults to quote |
NODE_ENV |
optional | You can set production to enable some optimisations |
Then create a storage file
touch persistence.json
echo "{}" > persistence.json
Then, install Node.js dependencies with Yarn
yarn
Then build the programme written in TypeScript into runnable JavaScript
yarn run build
Finally, you can start the bot by the following command:
node ./dist/index.js