A quick an easy tutorial on how to make a chat logger in your game post messages to Discord! Watch the video below for a step-by-step tutorial. The steps are outlined here:
- Create the Discord webhook that you want chat messages to be sent to.
- In your Modd.io game, create 4 global variables with the following data types and values:
- post request: object,
{}
- post request timestamps: string,
[]
- post response: string, (empty)
- queued post request content: string, (empty)
- Copy and paste the scripts “chat logs” and “clear queued requests” from this game
Step-by-step: