a trial of writing a simple discord bot: Pica pica is the scientific name of the Eurasian magpie (歐亞喜鵲).
Place a bot token obtained from https://discord.com/developers/ in a new file called config.json
.
{
"token": "your-token-goes-here"
}
Read these guides on how to obtain a token and how to configure a dotenv file to learn more.
In the git directory run npm install
to install the necessary prerequisites. If this does not work, you need to install node.js. Or, you may use pnpm install
if you have pnpm installed.