Skip to content

Latest commit

 

History

History
22 lines (14 loc) · 870 Bytes

README.md

File metadata and controls

22 lines (14 loc) · 870 Bytes

picapica-bot

a trial of writing a simple discord bot: Pica pica is the scientific name of the Eurasian magpie (歐亞喜鵲).

How to use

Setting up a token

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.

npm, pnpm setup

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.