Skip to main content

Prerequisites

Platform registration

warning

Before developing, please prepare a platform account.

Registered tutorial

Use the robot needs to get the account and Token key of the open platform in order to communicate with the message platform and then send and receive messages.

Here are some commonly used instructions or tutorials for the use of robot open platforms. Please choose according to your needs.

Robot nameLink
QQ/QQ-Guild Official BotOfficial documentation
WeChat BotOfficial documentation
Telegram BotOfficial documentationOther tutorials
Discord BotOfficial documentation
kook BotOfficial documentation

Environmental preparation

The system version must be at least MacOS12.

Older versions of the system are not guaranteed to work successfully.

Check git version; will prompt to download common toolkits if not installed
git --version

Brew Official Website

Doownload Brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Add environment variable
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.bash_profile
Add environment variable
echo 'export PATH="/opt/homebrew/bin:$PATH"' >> ~/.zshrc
Refresh environment variable
source ~/.bash_profile && source ~/.zshrc

Use nvm to install and manage Node.js versions, which makes it easier to switch versions for development.

Install nvm
brew install nvm
Add environment variable for nvm
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.bash_profile
echo '[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"' >> ~/.bash_profile
echo '[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"' >> ~/.bash_profile
Add environment variable for zshrc
echo 'export NVM_DIR="$HOME/.nvm"' >> ~/.zshrc
# This loads nvm
echo '[ -s "/opt/homebrew/opt/nvm/nvm.sh" ] && \. "/opt/homebrew/opt/nvm/nvm.sh"' >> ~/.zshrc
# This loads nvm bash_completion
echo '[ -s "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm" ] && \. "/opt/homebrew/opt/nvm/etc/bash_completion.d/nvm"' >> ~/.zshrc
Refresh environment variable
source ~/.bash_profile && source ~/.zshrc
Install NodeJS@18.20.3
nvm install 18.20.3
nvm use 18.20.3
node -v
npm -v