mermaidjs-discord
is a discord bot that allows you to render Mermaid.js diagrams in your discord chats.
Click here to invite the bot to your server.
Type in !mermaid-help
for help on how to use this bot.
This installation asumes you have python3
installed on your machine and know how to use pip
.
Run the following in the project root directory to get all the dependencies
pip install poetry poetry install
After we have that installed, we need to grab a bot token from Discord.
Go to this url and create a new application.
Add a name for your local bot, something like: your-username-test-bot
.
After you've made an application, you should be redirected to a page with all of the app's details on it. Scroll to the bottom of this page and press "create a bot user". You will then have a "click to reveal" link that shows you your bot's token.
Run the following in your terminal:
export TOKEN=[the token you copied above]
Make sure you make that bot private in that page.
-
On the side tab go to
OAuth2>URL Generator
. -
Under scopes, select bot.
-
Under permissions, select admin.
-
Use the generated URL to add it to your personal discord server to test out that your code is working correctly.