G'day's framework provides a number of "hooks" replicating React hooks to streamline development and ensure creation of new plugins and features is as simple as possible. G'day provides the following hooks:
useButton
useChatCommand
useClient
useEnv
useError
useEvent
useInteraction
useOpenAI
- Install npm and NodeJS
- Clone this repo
- Create a .env file with the following template:
DISCORD_CLIENT_ID="" DISCORD_TOKEN="" MONGO_URI="" OPENAI_KEY="" NODE_ENV="development"
- Run
npm install
in the root directory.- NB: You may need to resolve dependencies for node-canvas.
- Run
npm run dev
which will run the TypeScript directly with nodemon in watch mode.